diff --git a/arkoala-arkts/arkui/src/ComponentBase.ts b/arkoala-arkts/arkui/src/ComponentBase.ts index 14b878f91101d796681f3b8186cda56cdf7d201c..fe845d28029f54f51dc7fc04d80006c93619882f 100644 --- a/arkoala-arkts/arkui/src/ComponentBase.ts +++ b/arkoala-arkts/arkui/src/ComponentBase.ts @@ -34,10 +34,11 @@ export class ComponentBase { _animationStart(param, this.isFirstBuild) return this } + public animationEnd(): this { _animationEnd(this.isFirstBuild, () => { - this.isFirstBuild = false; + this.isFirstBuild = false }) - return this + return this; } } diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts index 39d9315b7a1c448a3e2e4d23feb0be1a2decd358..a44139f7b4cd8c4a743b2891081dce1974dd2add 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index eab2ea27c83324d23853e135adb0b8e621091f19..33c37f2879adfe5614763fbe76ca399dd7e74bde 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -20,7 +20,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -155,7 +155,7 @@ export class AccessibilityHoverEventInternal extends BaseEventInternal implement throw new Error("Object deserialization is not implemented.") } private setType_serialize(type: AccessibilityHoverType): void { - ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setType(this.peer!.ptr, (type.valueOf() as int32)) + ArkUIGeneratedNativeModule._AccessibilityHoverEvent_setType(this.peer!.ptr, ((type as AccessibilityHoverType) as int32)) } private getX_serialize(): number { const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_getX(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts index c71fca935d0e8ab5f076cbd5e96e23dcd85e0b16..967abdc19e9eb2409801ab0af1e840fb3c2ca03f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -18,7 +18,7 @@ import { ActionSheetOptions } from "./ArkActionSheetInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts index f133c4785b5611d0438fd1f5af201adab4894faf..6200c090fa4ab49a3f1d3c01292b62e6750ee15b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -18,7 +18,7 @@ import { AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./ArkAlertDialogInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts index 6683c468dffba0941b6e070ab76964167fdad782..a1533c03bea889f53b1f9bd84dd2e25437d61fd0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 5ab4213c47de82c896554a1e5178932ff49f3da7..fcfa3cbe14e66c6eb8e696b66558b1078809f4f4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -19,7 +19,7 @@ import { AnimateParam, TranslateOptions } from "./ArkCommonInterfaces" import { DoubleAnimationParam } from "./ArkAnimationExtenderInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts index 79a4084c493615159f29954b3755e0d222b61fc3..65a317b74f893a13291e3f3c2f6781e893c335f8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts index 71952a2d844accd0b3bd7807292476d85b65d11b..316745daa329c4b240f760e1ff480c91368cf4b6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -18,7 +18,7 @@ import { SymbolEffect, EffectScope } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -50,7 +50,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { thisSerializer.writeInt8(scope_type as int32) if ((RuntimeType.UNDEFINED) != (scope_type)) { const scope_value = (scope as EffectScope) - thisSerializer.writeInt32((scope_value.valueOf() as int32)) + thisSerializer.writeInt32(((scope_value as EffectScope) as int32)) } const retval = ArkUIGeneratedNativeModule._AppearSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -76,6 +76,6 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { throw new Error("Object deserialization is not implemented.") } private setScope_serialize(scope: EffectScope): void { - ArkUIGeneratedNativeModule._AppearSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + ArkUIGeneratedNativeModule._AppearSymbolEffect_setScope(this.peer!.ptr, ((scope as EffectScope) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts index dea2420691807530f5237a7282cc2a6a50ab300d..d378ba23e008e41e1fcd32c7e52b7b97ada32bfb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -18,7 +18,7 @@ import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkBadge.ts b/arkoala-arkts/arkui/src/generated/ArkBadge.ts index 77cbb74850ab649b2aeabd54150d27a1fc054854..642898306126e819f7f10f2cc75493abc13c17f3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBadge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBadge.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts index 153b972f0a0f28b333f755a44045dc999b5ba87a..617039589d61da91011006778368a0f347aad094 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -18,7 +18,7 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -226,7 +226,7 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { throw new Error("Object deserialization is not implemented.") } private setSource_serialize(source: SourceType): void { - ArkUIGeneratedNativeModule._BaseEvent_setSource(this.peer!.ptr, (source.valueOf() as int32)) + ArkUIGeneratedNativeModule._BaseEvent_setSource(this.peer!.ptr, ((source as SourceType) as int32)) } private getAxisHorizontal_serialize(): number { const retval = ArkUIGeneratedNativeModule._BaseEvent_getAxisHorizontal(this.peer!.ptr) @@ -268,7 +268,7 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { throw new Error("Object deserialization is not implemented.") } private setSourceTool_serialize(sourceTool: SourceTool): void { - ArkUIGeneratedNativeModule._BaseEvent_setSourceTool(this.peer!.ptr, (sourceTool.valueOf() as int32)) + ArkUIGeneratedNativeModule._BaseEvent_setSourceTool(this.peer!.ptr, ((sourceTool as SourceTool) as int32)) } private getDeviceId_serialize(): number { const retval = ArkUIGeneratedNativeModule._BaseEvent_getDeviceId(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index 6d93c334e815b495910eae3eb6bf17d340e362b2..5b78ad03cd3b5ef9bd157c4479b7313a886c6074 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -20,7 +20,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -62,7 +62,14 @@ export class BaseGestureEventInternal extends BaseEventInternal implements Mater } private getFingerList_serialize(): Array { const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_getFingerList(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readFingerInfo() + } + const returnResult : Array = buffer + return returnResult } private setFingerList_serialize(fingerList: Array): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseShapeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseShapeMaterialized.ts index 3c43b31f81c68a473a3a5e49998873b477dc7f1c..38a9f86b4b7d57ac55f4f2f9b4171741161b5996 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseShapeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseShapeMaterialized.ts @@ -19,7 +19,7 @@ import { Length, SizeOptions } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts index 584450e4bf09948016a10eff6bbf9ec747e67322..dc204d0b38983a471f1f87150a032d15e2f56252 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts @@ -18,7 +18,7 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkBlank.ts b/arkoala-arkts/arkui/src/generated/ArkBlank.ts index b94eef951068b38b84e3da03be0d27a9ec581278..e4263739065f5b7c5c8cde1f470c4c7b297adda6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlank.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlank.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts index db4df6f85f7076782880f6715a51f3f6c727f81e..8034461553f380c82dd3b38e67bd6a009a204fa9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -18,7 +18,7 @@ import { SymbolEffect, EffectScope, EffectDirection } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -57,14 +57,14 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { thisSerializer.writeInt8(scope_type as int32) if ((RuntimeType.UNDEFINED) != (scope_type)) { const scope_value = (scope as EffectScope) - thisSerializer.writeInt32((scope_value.valueOf() as int32)) + thisSerializer.writeInt32(((scope_value as EffectScope) as int32)) } let direction_type : int32 = RuntimeType.UNDEFINED direction_type = runtimeType(direction) thisSerializer.writeInt8(direction_type as int32) if ((RuntimeType.UNDEFINED) != (direction_type)) { const direction_value = (direction as EffectDirection) - thisSerializer.writeInt32((direction_value.valueOf() as int32)) + thisSerializer.writeInt32(((direction_value as EffectDirection) as int32)) } const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -98,13 +98,13 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { throw new Error("Object deserialization is not implemented.") } private setScope_serialize(scope: EffectScope): void { - ArkUIGeneratedNativeModule._BounceSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + ArkUIGeneratedNativeModule._BounceSymbolEffect_setScope(this.peer!.ptr, ((scope as EffectScope) as int32)) } private getDirection_serialize(): EffectDirection { const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_getDirection(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } private setDirection_serialize(direction: EffectDirection): void { - ArkUIGeneratedNativeModule._BounceSymbolEffect_setDirection(this.peer!.ptr, (direction.valueOf() as int32)) + ArkUIGeneratedNativeModule._BounceSymbolEffect_setDirection(this.peer!.ptr, ((direction as EffectDirection) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkButton.ts b/arkoala-arkts/arkui/src/generated/ArkButton.ts index f385dfb36fec8d79602f28e4f8c7fedcc940513c..9e646095eb8243f1f5e3eaa35acc4c80e3684ae9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButton.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts index d1ae7360e8261206dc7032196b1492f904bf5a92..1995088355e02b3f541ace267821770fec820554 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" -import { UseEventsProperties } from "./use_properties" import { Axis } from "./ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute } from "./ArkCalendarInterfaces" import { Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Type_CalendarInterface_value, Literal_Number_day_month_year } from "./SyntheticDeclarations" diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts index d67c7ff2dffc4ad51147a10cf17c9a4a0a4fca33..ac6dea57eebc2c344af00e0e0e7dfbbd3124f09a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -18,7 +18,7 @@ import { Literal_Number_day_month_year } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts index b3cae1eab4f1b4116729a93cb9a1221dafb85d44..7706752d573ff2280429bbd7eaf8fa645ff5bda4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index 1e3560b3162908dc78aa3a7a57312a12cf16c182..200c2e9233698ffe000d27bc0a1a4167b4bb0c12 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -18,7 +18,7 @@ import { CalendarDialogOptions } from "./ArkCalendarPickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts index f1a27acb3fb1789383478b2f088a072b057ab80b..44d1a954d909e1739ecc02b9226b7cc650d6457c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts index 1ce2e4aadc37e600492710bb708e1bd41dfdf7ba..8da8c98b9db1caeebd52b39b22e29595ebb22167 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts index 51ecb7b9ace9c8a42c4eb48f5ca449dda9a3c58b..8408a0e1c626cf4d5cc2bb8e3e2c381fd2505cb3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts index cac4d368323e94475788ad6bf878e71c2c4c381f..fec802d55f504f32dfc791f0b8174295eb4bdcc1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -18,7 +18,7 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts index d2420c0137d47b61b3e07d27c0034d3be4f19884..171804fe2dc4c90bd384cf17493b73da4668944e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -26,7 +26,7 @@ import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -907,7 +907,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private getLineDash_serialize(): Array { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_getLineDash(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readNumber() as number) + } + const returnResult : Array = buffer + return returnResult } private setLineDash_serialize(segments: Array): void { const thisSerializer : Serializer = Serializer.hold() @@ -948,7 +955,9 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - return new Deserializer(retval, retval.length).readTextMetrics() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : TextMetrics = retvalDeserializer.readTextMetrics() + return returnResult } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index 99e3d034de6805bf41fae5ff3fa5f12cb5277031..62097b38b38d5b6684d842df703d77f706addaa7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -32,7 +32,7 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts index bb22d0554db80aaf17611e647d42a76c36581adb..4862550463653be7853c0743c716f594ce391ea1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts index 4285dcbb097d90d476c2d1d19622856b6b050980..0329f5ccfa191aec1e07da5f5523627ba1ca69fb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index b9b546a4caba5af480e90eb48eef5d92cbab9017..10f83fe26db3ddd379e69d5f71bcbad5e053a15b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCircle.ts b/arkoala-arkts/arkui/src/generated/ArkCircle.ts index 48c710aa86e25690883817f7ab6c46cab2db96cb..627f232070eda5e173e1be0f41c25ab36695a06c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircle.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkCircleShapeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCircleShapeMaterialized.ts index 3e8deb7182bbcc07f1ceefe234eb794aa95d6d8f..aeaaf362ab0fce7fbec66f8ad41c02ef15cfde24 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircleShapeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircleShapeMaterialized.ts @@ -21,7 +21,7 @@ import { Position, ResourceColor, Length, SizeOptions } from "./ArkUnitsInterfac import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -98,7 +98,7 @@ export class CircleShape implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts index d4daadfde1555c2b63788004c70933ef9b53ccb5..4d1444b5115a6b97d701b6946d0231cf1eeaabe5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts @@ -20,7 +20,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index 512ef96b00268ff1c9d77302c2f1e7b123ef30c5..474e1e7171bd2a377d0d0e30eb3d3608105880bb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts index fdd30d9f896e7ef5bc4c93ca5ba51d1e4efb04cf..4f1f99c8a6e3e4b55a2decf88a70db64e1cfe50a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkColorMetricsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkColorMetricsMaterialized.ts index 41b4fb301dd924a31a26ee6983cebfc4b98a7a54..3ac1f0343023d04692cb26ec08865126f7775bdd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColorMetricsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColorMetricsMaterialized.ts @@ -20,7 +20,7 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -127,7 +127,7 @@ export class ColorMetrics implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkColumn.ts b/arkoala-arkts/arkui/src/generated/ArkColumn.ts index 9138d7716920fc00b4f9476d5f83174b8c39655f..7429c739aee283cdc5fbbfbba89aeced4f39a4ef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumn.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumn.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts index 2f15e20e3f941b33ce8e1fae0231905187bd9f26..1d95eac802b85f1113d92a729a55a0c377e4f12c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkCommon.ts b/arkoala-arkts/arkui/src/generated/ArkCommon.ts index 8091b91fe6a9c2793677ca93011185c8939ccf91..9cb630d2dd131b5407dabce2bdbef359df15fd73 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommon.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" -import { UseEventsProperties } from "./use_properties" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" import { Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts index 722cacf8ee17a75df946c0927af35c8321d955ae..5f3c6fcbfe7f582a86709cc634b1a7de78834968 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts @@ -1079,6 +1079,8 @@ export interface OnWillScrollCallback { } export type OnScrollCallback = (scrollOffset: number, scrollState: ScrollState) => void; export type OnMoveHandler = (from: number, to: number) => void; +export interface DynamicNode { +} export interface EdgeEffectOptions { alwaysEnabled: boolean; } diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonShapeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCommonShapeMaterialized.ts index 815c9489a1978088e321b1a5a6ff4662cb4907be..1cb693c7ac800d1a8ce0e7dc53baf22cd3684113 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonShapeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonShapeMaterialized.ts @@ -20,7 +20,7 @@ import { Position, ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -76,7 +76,7 @@ export class CommonShape implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts index ff5ef23682a000c078c36a2b6a2a002d7121989c..0af23c10262e8735a762d50a297a9b92531601a6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts index dbbd4c3633524dcfca18adfc601b61fdf1fbc9d7..350130c89ca5835deb1fa799feac027b78dd05d8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -18,7 +18,7 @@ import { MessageLevel } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -37,7 +37,7 @@ export class ConsoleMessage implements MaterializedBase { return this.peer } static ctor_consolemessage(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { - const retval = ArkUIGeneratedNativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, (messageLevel.valueOf() as int32)) + const retval = ArkUIGeneratedNativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, ((messageLevel as MessageLevel) as int32)) return retval } constructor(message?: string, sourceId?: string, lineNumber?: number, messageLevel?: MessageLevel) { diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts index b535e7ac492bcbeb71ecc41bd2e764c99fdf2421..b2c7fff17d237e3c4ca6c0bf6923723995880f01 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts index b69532d82a9db623341bd0172d9f5851531a840d..ea76217672fd6fb7cf5ab9d62faa4e1f754bd73f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts index 6c3b96a6cdc1c9790c768b94bd0b3e783bb13a28..7a6a1e81e34a86676015f84c41f571473d3cc76e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -18,7 +18,7 @@ import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCounter.ts b/arkoala-arkts/arkui/src/generated/ArkCounter.ts index 791a8770b0e222f7afa029b2d8dfe9e83da6df40..4cb6af73fcfec6e283b0430e5754698d704a99a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCounter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCounter.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index eee5fa2d49d5056b15872aa6e72904cdc50b1453..9a804f54847cc830e3d5bbf6377bd08e3d372939 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -18,7 +18,7 @@ import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts index f5ff78ef868fad5f4ef1a05d9fefb3166de39b5c..16c0bdbd4e3232d78aee12e705a6a86866ac511b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -19,7 +19,7 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -67,7 +67,9 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval, retval.length).readCustomSpanMetrics() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : CustomSpanMetrics = retvalDeserializer.readCustomSpanMetrics() + return returnResult } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts index 374e9a841215e87486e8f5abdf9c24ca06038de4..fb840486102b3fb7562e417e78e818ecd8f0b313 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index 8950b2d6078c22ef2cd29eecaf31d7a0f49ad9f0..aa9bdc7c288487752d9ad6f6492c9c3a5a27ceab 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts index d6ea34f2d6070c2e0f4e216ed86a345eee6382e7..048ab55867f0e43080ba74c651e1b1d1552d845b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index b3781b55d9f80d62db642c6a8145f26f2c2c533c..5dba9aa198f54328b5896d5d1d5c90a04d89f336 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -18,7 +18,7 @@ import { DatePickerDialogOptions } from "./ArkDatePickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts index 981c84ee6738bdeb1f1603797b0be192324e2ca3..bf84b7a6a5a0977f460e44e5277156467c9b547e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -21,7 +21,7 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts index d8a69c6a59b6b380c2a6b7bc5f3c0df44871e69e..5d513764b0b66761a3431aa5e246d9c59206a619 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -18,7 +18,7 @@ import { SymbolEffect, EffectScope } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -50,7 +50,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { thisSerializer.writeInt8(scope_type as int32) if ((RuntimeType.UNDEFINED) != (scope_type)) { const scope_value = (scope as EffectScope) - thisSerializer.writeInt32((scope_value.valueOf() as int32)) + thisSerializer.writeInt32(((scope_value as EffectScope) as int32)) } const retval = ArkUIGeneratedNativeModule._DisappearSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -76,6 +76,6 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { throw new Error("Object deserialization is not implemented.") } private setScope_serialize(scope: EffectScope): void { - ArkUIGeneratedNativeModule._DisappearSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + ArkUIGeneratedNativeModule._DisappearSymbolEffect_setScope(this.peer!.ptr, ((scope as EffectScope) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkDivider.ts b/arkoala-arkts/arkui/src/generated/ArkDivider.ts index 2e1e195fbd81ee9e6c88266fe9038d72bac4e027..e91269f0937e7ed6b3fc67fe8d58b8c3bdfb2c6b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDivider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDivider.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts index a4f33c443eedbf07fb28179e400e8ecc10c12dee..73877d8c27aabe0a49b9273c99b7e2ee7e0a5af6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts @@ -19,7 +19,7 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -176,10 +176,12 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - return new Deserializer(retval, retval.length).readSummary() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : Summary = retvalDeserializer.readSummary() + return returnResult } private setResult_serialize(dragResult: DragResult): void { - ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, (dragResult.valueOf() as int32)) + ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, ((dragResult as DragResult) as int32)) } private getResult_serialize(): DragResult { const retval = ArkUIGeneratedNativeModule._DragEvent_getResult(this.peer!.ptr) @@ -187,7 +189,9 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - return new Deserializer(retval, retval.length).readRectangle() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : Rectangle = retvalDeserializer.readRectangle() + return returnResult } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) @@ -217,7 +221,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { throw new Error("Object deserialization is not implemented.") } private setDragBehavior_serialize(dragBehavior: DragBehavior): void { - ArkUIGeneratedNativeModule._DragEvent_setDragBehavior(this.peer!.ptr, (dragBehavior.valueOf() as int32)) + ArkUIGeneratedNativeModule._DragEvent_setDragBehavior(this.peer!.ptr, ((dragBehavior as DragBehavior) as int32)) } private getUseCustomDropAnimation_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._DragEvent_getUseCustomDropAnimation(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts index b4b7cd57ec097c7d979f8514d4504b1555661db7..10a7b19e10f20596d2542780bf4264d97c5ab67c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -18,7 +18,7 @@ import { DrawContext } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index 676ed5a7c2b3e8e217c1e2988aafc77ed1c1b7c7..371717d91ca951630b04decadf44533ffdd7fbb9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -18,7 +18,7 @@ import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index a273ffed636b969c2d26bf5866065bbf4b7f1bdb..d61995492a4657b6b0df3272f69a08fc6754148b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -20,7 +20,7 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts deleted file mode 100644 index 7f35949eaa0f710aad23792f454bf17ad093b64d..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts +++ /dev/null @@ -1,67 +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 { OnMoveHandler } from "./ArkCommonInterfaces" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" -import { unsafeCast, int32, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -export class DynamicNodeInternal { - public static fromPtr(ptr: KPointer): DynamicNode { - const obj : DynamicNode = new DynamicNode() - obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) - return obj - } -} -export class DynamicNode implements MaterializedBase { - peer?: Finalizable | undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - static ctor_dynamicnode(): KPointer { - const retval = ArkUIGeneratedNativeModule._DynamicNode_ctor() - return retval - } - constructor() { - const ctorPtr : KPointer = DynamicNode.ctor_dynamicnode() - this.peer = new Finalizable(ctorPtr, DynamicNode.getFinalizer()) - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._DynamicNode_getFinalizer() - } - public onMove(handler?: OnMoveHandler): T { - const handler_casted = handler as (OnMoveHandler | undefined) - return this.onMove_serialize(handler_casted) - } - private onMove_serialize(handler?: OnMoveHandler): T { - const thisSerializer : Serializer = Serializer.hold() - let handler_type : int32 = RuntimeType.UNDEFINED - handler_type = runtimeType(handler) - thisSerializer.writeInt8(handler_type as int32) - if ((RuntimeType.UNDEFINED) != (handler_type)) { - const handler_value = handler! - thisSerializer.holdAndWriteCallback(handler_value) - } - const retval = ArkUIGeneratedNativeModule._DynamicNode_onMove(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - throw new Error("Object deserialization is not implemented.") - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index 13844aeb248d518df3c679e49f3de494614b7811..43784458104be405aa695c9ee06f55caadaed3dd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -18,7 +18,7 @@ import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -62,7 +62,14 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions } const retval = ArkUIGeneratedNativeModule._EditMenuOptions_onCreateMenu(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTextMenuItem() + } + const returnResult : Array = buffer + return returnResult } private onMenuItemClick_serialize(menuItem: TextMenuItem, range: TextRange): boolean { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts index 09b234c7110a420d0d248ff1ae415856f2021cc5..388015a011707ada838debc45c736192d3785661 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts index 405f86b04d99a777aa1245f12e1b644009fa2690..70bffc243a8c829a0a1e6e52a63df859c672175a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipseShapeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEllipseShapeMaterialized.ts index 1f020f653a456f817f10e47368c2ecfc6434a2b6..42f6a2b129e8466b4bff1fe51d0f6782069264ea 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipseShapeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipseShapeMaterialized.ts @@ -21,7 +21,7 @@ import { Position, ResourceColor, Length, SizeOptions } from "./ArkUnitsInterfac import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -98,7 +98,7 @@ export class EllipseShape implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts index db16d420b7833a9fa40d7bcd291a3c3581c2983e..cc73c4ad697d2c7224883514349c73172b0ae272 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 18c75a2894e190c7e371787f9d3e09ffa2157a93..b70b6a0527f75e09a7afb7a102de9fed41649375 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -18,7 +18,7 @@ import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts index a20635f0ceecef2f705940a586059439dda845aa..5c53891fdfb538fa80cbee733839ce39259a2c80 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index 99420fe69456deb20b70ad315022f20e721822a5..236938301129aa13eee7b3de29b8a422264c4589 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index 96c58695c5a4ccd9c66b39dbe0a7b19bd0086785..2adf653aad6153123283cf870f825bf68282d2fa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -18,7 +18,7 @@ import { FileSelectorMode } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -69,7 +69,14 @@ export class FileSelectorParam implements MaterializedBase { } private getAcceptType_serialize(): Array { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_getAcceptType(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult : Array = buffer + return returnResult } private isCapture_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_isCapture(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index 4e0eab6a987dd418580fd0cec3019dc3a180afd8..b391da010c1ac9c0ca219920ec848f9e226006b8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkFlex.ts b/arkoala-arkts/arkui/src/generated/ArkFlex.ts index 8f5ad9f9cc5bb18faf3f9b084db47667dec43983..37baf22991f52a774ef9c5d0acedc75970244137 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlex.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlex.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts index 461669264dd1d45dd81e948e19b6730acec73b2d..34bd48f7e9559c31badc4e760d04f8b5e1bd64fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts index 691b5b39a41329bd8d7648b6bdfa70093f2097f2..07e6f759fd6cb1274e9d5af81427965e7455ec0f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts index d7bcaa0f3210ab973b247e9c269e00caf32a0506..48b90f33511b9ec414b982b8f8b2418c6c65db2b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts index 94ea02f5fb9284b558398cba09b8132a3fd865fc..b31d14615a4eda3f5a7255564fe899d7488108fe 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts index f2a7723c64f99f04c9b3c5a39b5e55c21a331539..65eafed2543e21420d8be79fad0d6ec56d8b91bc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -19,7 +19,7 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -160,6 +160,8 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - return new Deserializer(retval, retval.length).readPosition() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : Position = retvalDeserializer.readPosition() + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts index 5fe86c688574eb1cbe9f13822125217ce87aacb9..1edd0f17c782976064d5bab2c1aabe2a5000fe73 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts index 9aff6189d9c20b7f7e4d1b88c524963eaa8aa0eb..a060146d854ad615705d7313c4c3c4beadaaa96c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkGauge.ts b/arkoala-arkts/arkui/src/generated/ArkGauge.ts index 89e5ae8cb31a852856c80e5925380620d020f773..fc0819b00eec89fd489ade5919d39463a7568672 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGauge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGauge.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts index 85b6b7e63a0ad8bf783c10762b2ba433850c1684..556e2c3dc7ea30def4260a547207a3105c7eb2b1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -20,7 +20,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -234,7 +234,14 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali } private getFingerList_serialize(): Array { const retval = ArkUIGeneratedNativeModule._GestureEvent_getFingerList(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readFingerInfo() + } + const returnResult : Array = buffer + return returnResult } private setFingerList_serialize(fingerList: Array): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts index fdfa293ea2126d7df6b591bf0c8148a32be406bd..05d66d7cd78de1d790a9d93219ea7bfdb443a3b6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -18,7 +18,7 @@ import { UIGestureEvent } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index b05c1de1273835818b1546403a631f0b5c46746d..d0be3e9d52fc5711e4476a1e7c91f6c3c7513287 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -20,7 +20,7 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts index 303ed7d187b84d618b65ed882ff1ecaec9703fb7..ef70e064848c0160328efafe9dda93817214c6f6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -18,7 +18,7 @@ import { GestureStyleInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index 5a4425c77a2dc418e289a1e8f28314a8ce3a55cf..941c100950492148587bb7a616089ceab7525b82 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -20,7 +20,7 @@ import { AsyncCallback_image_PixelMap_Void } from "./SyntheticDeclarations" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 0da9450f7e46e5398a3c8c9c485e33ca31b0579f..c2356cddfb82598392bde0190d86f104a71b5591 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -18,7 +18,7 @@ import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -78,13 +78,13 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa const note_value = note! thisSerializer.writeString(note_value) } - ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_begin(scene, (startInputType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_begin(scene, ((startInputType as PerfMonitorActionType) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static end_serialize(scene: string): void { ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_end(scene) } private static recordInputEventTime_serialize(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { - ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime((actionType.valueOf() as int32), (sourceType.valueOf() as int32), time) + ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(((actionType as PerfMonitorActionType) as int32), ((sourceType as PerfMonitorSourceType) as int32), time) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts index 1bbb046df61a33938fb206e335fa94c8d28b153e..3285c2369d60bddc5109f64591cffaa19b4c7797 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts @@ -18,7 +18,7 @@ import { FontOptions } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -66,6 +66,13 @@ export class GlobalScope_ohos_font implements MaterializedBase { } private static getSystemFontList_serialize(): Array { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_font_getSystemFontList() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult : Array = buffer + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkGrid.ts b/arkoala-arkts/arkui/src/generated/ArkGrid.ts index 36a4521f643079ea6f163422b0aa0cfd5f56ae7a..a90ce6d4a760b49da37b27fadf5cc22e5591430d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGrid.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGrid.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts index 39f06b6ab2a7b7ad1b27347f2688d7bca3fe9578..a024209c457540592c75b5a7d3853b38701b6df4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts index 8df7b2a665b8558446f2e59fa4508a29d8be7590..8c81fb5325756de4e7ffe9695b791bdfe5ef9299 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts index 7febd2a7c9d7e43af367899c070b4fe5cfc48c83..7090eed03005470de00ca6a9eb61ad5641f70a30 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts index ba3b34d572556bd1d12ca86aeadef5e6039c211a..ba2bdf7a40cd53bfe56397ed65e61c80cb8fb43b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts index 14cb5c8292a340df97c09d3eb27e863030475a7c..66d21026886f4066471e8a814e743d2a531f2c71 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -19,7 +19,7 @@ import { SymbolEffect } from "./ArkArkuiExternalInterfaces" import { EffectFillStyle } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -51,7 +51,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { thisSerializer.writeInt8(fillStyle_type as int32) if ((RuntimeType.UNDEFINED) != (fillStyle_type)) { const fillStyle_value = (fillStyle as EffectFillStyle) - thisSerializer.writeInt32((fillStyle_value.valueOf() as int32)) + thisSerializer.writeInt32(((fillStyle_value as EffectFillStyle) as int32)) } const retval = ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -77,6 +77,6 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { throw new Error("Object deserialization is not implemented.") } private setFillStyle_serialize(fillStyle: EffectFillStyle): void { - ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_setFillStyle(this.peer!.ptr, (fillStyle.valueOf() as int32)) + ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_setFillStyle(this.peer!.ptr, ((fillStyle as EffectFillStyle) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts index 4c640c5cb54e47a38e5e1aba5f5c94b87d60ea31..f0e89c98e57d9453df5b015a9a6b09a459cadadd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts @@ -20,7 +20,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index 617db6d0ecaa7b18ad47d4fa74e04813ce5e1a5d..0b3b2bc2bae1326652a607f7398f022f34120ea2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts index 75671691cb50aca6e416f517eb556f5f1776f0c8..16db263988100fdbddf53053672a45b6677eb81b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts index 3f0ed0b741bc8ec2ac23816776833b5543f78f1d..0b425e1f201e345e7165fbc593ea86b57c9f2270 100644 --- a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkImage.ts b/arkoala-arkts/arkui/src/generated/ArkImage.ts index 115abb789e70fcb9d5f1cdf16996aa89ed02259b..74b12b77dee79ed7955efc07ee3244ed12e7ea16 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImage.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index a626e1156305bb4e42d650fe75f47533a3c92858..49cc5aad0c4149a7ae8be66bbf0ef2dfce5d6fab 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -18,7 +18,7 @@ import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -52,6 +52,13 @@ export class ImageAnalyzerController implements MaterializedBase { } private getImageAnalyzerSupportTypes_serialize(): Array { const retval = ArkUIGeneratedNativeModule._ImageAnalyzerController_getImageAnalyzerSupportTypes(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readInt32() as ImageAnalyzerType) + } + const returnResult : Array = buffer + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts index a51693fae0d2e2e6e08d46441a8c5f805cc10538..33cb8012e3556ce806b0613f0d6be21048bd169f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts index bc7dfd6c4e0130e8928fe81fc5f45df0dc689788..8e7b3c1daf548b44f4f1efcdadf622788aa9d597 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -21,7 +21,7 @@ import { SizeOptions } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts index 0590b3fc6d163f6ca4efbf0b482f9a31667820bb..31b506e7b0c27befcbdac510ebe031c77a014e50 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -19,7 +19,7 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts index 76d7e82838890520e803d7d6c4ccdab469fbb7a9..19e3d0b1357d22b51986fa4d6d92bd2ff7a33f13 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts @@ -18,7 +18,7 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts index f2ccea5bfb57037f412f6232e2c1e989b52c7f42..2161df4b92972ed2af6f6e7ab57613f455be0a3b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" -import { UseEventsProperties } from "./use_properties" import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index 34bce7fdfc59f170eeb48d967c2ecde2a2cf0396..de842a3398741eb31dd660155f03e844f04e74a4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts index 3bb011bb875fb8f4ed1f92c1224d8bd17db1e1a3..090ae6d77dbf5db8c7bea5d7da5b3b40091b3115 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts index c7eca8f66926b62bdbbf630a68d1a32bc9e7e022..cca5accd62cff3085ebe8e8f8aac78baaddd3afb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts index 114eb6ad6652fdde718414749e8055d818c5a295..632c26dbd21c0c8e8bd1c65211c77b4ad068110c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts index e0c148ceef2c6a12df4326fa53a8c2d538e99857..ed178df7bd37bc6df1d8322c5145b9cc9e7074d2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -20,7 +20,7 @@ import { KeyType, KeySource } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { IntentionCode } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -213,7 +213,7 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { throw new Error("Object deserialization is not implemented.") } private setType_serialize(type: KeyType): void { - ArkUIGeneratedNativeModule._KeyEvent_setType(this.peer!.ptr, (type.valueOf() as int32)) + ArkUIGeneratedNativeModule._KeyEvent_setType(this.peer!.ptr, ((type as KeyType) as int32)) } private getKeyCode_serialize(): number { const retval = ArkUIGeneratedNativeModule._KeyEvent_getKeyCode(this.peer!.ptr) @@ -234,7 +234,7 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { throw new Error("Object deserialization is not implemented.") } private setKeySource_serialize(keySource: KeySource): void { - ArkUIGeneratedNativeModule._KeyEvent_setKeySource(this.peer!.ptr, (keySource.valueOf() as int32)) + ArkUIGeneratedNativeModule._KeyEvent_setKeySource(this.peer!.ptr, ((keySource as KeySource) as int32)) } private getDeviceId_serialize(): number { const retval = ArkUIGeneratedNativeModule._KeyEvent_getDeviceId(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts index 98fe21d8ff91e95983be0de4f23ee7f4b35ee781..7c1595af4d07b2589f32da1af304ff060010669b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -19,7 +19,7 @@ import { PositionWithAffinity, LineMetrics, TextRange, TextBox } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -71,18 +71,29 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - return new Deserializer(retval, retval.length).readPositionWithAffinity() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : PositionWithAffinity = retvalDeserializer.readPositionWithAffinity() + return returnResult } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - return new Deserializer(retval, retval.length).readLineMetrics() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : LineMetrics = retvalDeserializer.readLineMetrics() + return returnResult } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeTextRange(range) - const retval = ArkUIGeneratedNativeModule._LayoutManager_getRectsForRange(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length(), (widthStyle.valueOf() as int32), (heightStyle.valueOf() as int32)) + const retval = ArkUIGeneratedNativeModule._LayoutManager_getRectsForRange(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length(), ((widthStyle as RectWidthStyle) as int32), ((heightStyle as RectHeightStyle) as int32)) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTextBox() + } + const returnResult : Array = buffer + return returnResult } public static fromPtr(ptr: KPointer): LayoutManagerInternal { const obj : LayoutManagerInternal = new LayoutManagerInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index fbd35581913c3e6dffa8e5a1a786419481c0954a..1d7002608cc2ffc0a184c8541df8f5b5ea978786 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -18,7 +18,7 @@ import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts index bbee9baa74a3e0365d319cb5169e002f511ad6a1..00765d498ccec31487d766d39df1f2c07e03e8c8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -19,7 +19,7 @@ import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -141,7 +141,7 @@ export class LengthMetrics implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } private setUnit_serialize(unit: LengthUnit): void { - ArkUIGeneratedNativeModule._LengthMetrics_setUnit(this.peer!.ptr, (unit.valueOf() as int32)) + ArkUIGeneratedNativeModule._LengthMetrics_setUnit(this.peer!.ptr, ((unit as LengthUnit) as int32)) } private getValue_serialize(): number { const retval = ArkUIGeneratedNativeModule._LengthMetrics_getValue(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts index aaffd441b5067e92b42f1053bb4eea5d929da268..db470b37b485c7157515d60da4da51e0e47a4b7c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts @@ -18,7 +18,7 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkLine.ts b/arkoala-arkts/arkui/src/generated/ArkLine.ts index a8a2cde0c2b7c474e6f8d2edcfad451f1c607a70..b47b2fd1b08fe0279abbe67a6ac14373ee8601df 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLine.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLine.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts index 8a417c33f982f0370d115fdc07fbde071e86a8a8..f7b77864f03c4a9c2acc809416dc9dc7c6730d5c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts @@ -18,7 +18,7 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts index 5501b56826a20247b04d9e03fe71cf3e7e6b771e..7c35ba719cc45928478ac71b3611a17c9d163934 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -18,7 +18,7 @@ import { ColorStop } from "./ArkDataPanelInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts index a91b45f07cd436a59c0bf450697025f4fe386089..c895864d70d134a7df56f301cf3950f7936536e2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -18,7 +18,7 @@ import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts index 883567dd6fa72674b9eff558de26d36e2a1a2233..b0c11c5045fba29878825aade00962250bfce263 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkList.ts b/arkoala-arkts/arkui/src/generated/ArkList.ts index 36142a0659602389ee1ca643de037ad8536e8834..9f03c9d8da5f7be6463148f8dc30ee976e8ae7e3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkList.ts +++ b/arkoala-arkts/arkui/src/generated/ArkList.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkListItem.ts b/arkoala-arkts/arkui/src/generated/ArkListItem.ts index 33e0da16fa156e3f2311c4a736a051467aa73bc2..a2135ec4759a0ac0dd5713725ee4374888499117 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItem.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts index 2aac38ed62499cc748471c19d4ff0868a1f524fc..3d1b6ecedda4b98456f211fbdcb22313c74bbe5c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts index 46f52c8a43f8c3d173400b3e61be401b49551e43..527156c3e2d34bce16b57ef2b70b4b99d002cc32 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -25,7 +25,7 @@ import { RectResult } from "./ArkCommonInterfaces" import { CloseSwipeActionOptions, VisibleListContentInfo } from "./ArkListInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -80,7 +80,9 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - return new Deserializer(retval, retval.length).readRectResult() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : RectResult = retvalDeserializer.readRectResult() + return returnResult } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer : Serializer = Serializer.hold() @@ -96,7 +98,7 @@ export class ListScroller extends Scroller implements MaterializedBase { thisSerializer.writeInt8(align_type as int32) if ((RuntimeType.UNDEFINED) != (align_type)) { const align_value = (align as ScrollAlign) - thisSerializer.writeInt32((align_value.valueOf() as int32)) + thisSerializer.writeInt32(((align_value as ScrollAlign) as int32)) } ArkUIGeneratedNativeModule._ListScroller_scrollToItemInGroup(this.peer!.ptr, index, indexInGroup, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -115,6 +117,8 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - return new Deserializer(retval, retval.length).readVisibleListContentInfo() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : VisibleListContentInfo = retvalDeserializer.readVisibleListContentInfo() + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts index f48ee4eb99b49cf67fec7e0a193c31df58303e62..a7083f9c2a81c577fd2d0b1c8b51bbafc2ec42ce 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts index 418c2860fecc29a80cf6af806971664ec2b4a1fe..320aacd0300cce81fda7e6df48fca028bd9adfae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" -import { UseEventsProperties } from "./use_properties" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index 1124958aacb90c1cb1c4f23c0a7edc2b3b475cdf..2425bca85b02249196569f4b69143812853c9fa6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -21,7 +21,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts index b7ac4a7d69defa5c909cfe2873139b65f9107dba..7ba9b7859d974f0dbc13b2ebfbca0c23788e24b0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts index ef7fc82ca7f85a7e4674aabff55066ab51cca910..0446f519edd67c1acb6a0118eb124997445d56ca 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -18,7 +18,7 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts index 451f6a36ee70ad4ef58e69cfbc116d3c667cc892..23d17b185b7d99aa1a192a13ff64d6e9af197a68 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -19,7 +19,7 @@ import { ConstraintSizeOptions, DirectionalEdgesT } from "./ArkUnitsInterfaces" import { MeasureResult } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -65,19 +65,27 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval, retval.length).readMeasureResult() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : MeasureResult = retvalDeserializer.readMeasureResult() + return returnResult } private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - return new Deserializer(retval, retval.length).readDirectionalEdgesT() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : DirectionalEdgesT = retvalDeserializer.readDirectionalEdgesT() + return returnResult } private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - return new Deserializer(retval, retval.length).readDirectionalEdgesT() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : DirectionalEdgesT = retvalDeserializer.readDirectionalEdgesT() + return returnResult } private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - return new Deserializer(retval, retval.length).readDirectionalEdgesT() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : DirectionalEdgesT = retvalDeserializer.readDirectionalEdgesT() + return returnResult } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj : MeasurableInternal = new MeasurableInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts index f182f97153ced7c9649ca70360aea550e8025814..e9c1967de663482031f0b1ededaa7f04e0b2c36d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkMenu.ts b/arkoala-arkts/arkui/src/generated/ArkMenu.ts index 150321b98bd9f87670c724b999e247c7a19fbc76..c289cafbab2d8254c1903cc0feda4375c147043a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenu.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenu.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts index a41c04910c1612986d6fa431a103c4afe7a50fcc..37800f9f1874544f3321dafa0aaf59b5e46f7a62 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts index f500df53e9d4ee7a5ef74d2d7fbd14bec2d0eae0..3ada4804eede96154351d363198700a4d3666096 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts index 30e5c00b849b7fa5f97d452f745c893ce57b7c8f..5e29c5b5dd08369af4c83ff54fd27f3e48a4de23 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -21,7 +21,7 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -216,14 +216,14 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize throw new Error("Object deserialization is not implemented.") } private setButton_serialize(button: MouseButton): void { - ArkUIGeneratedNativeModule._MouseEvent_setButton(this.peer!.ptr, (button.valueOf() as int32)) + ArkUIGeneratedNativeModule._MouseEvent_setButton(this.peer!.ptr, ((button as MouseButton) as int32)) } private getAction_serialize(): MouseAction { const retval = ArkUIGeneratedNativeModule._MouseEvent_getAction(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } private setAction_serialize(action: MouseAction): void { - ArkUIGeneratedNativeModule._MouseEvent_setAction(this.peer!.ptr, (action.valueOf() as int32)) + ArkUIGeneratedNativeModule._MouseEvent_setAction(this.peer!.ptr, ((action as MouseAction) as int32)) } private getDisplayX_serialize(): number { const retval = ArkUIGeneratedNativeModule._MouseEvent_getDisplayX(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 79b0eb942badf491e5b7ed5385d8dce18479b2b8..7d77a82d78a1b9950e3fc3a0713e9884abf27ffe 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -21,7 +21,7 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -137,7 +137,7 @@ export class MutableStyledString extends StyledString implements MaterializedBas thisSerializer.release() } private removeStyle_serialize(start: number, length: number, styledKey: StyledStringKey): void { - ArkUIGeneratedNativeModule._MutableStyledString_removeStyle(this.peer!.ptr, start, length, (styledKey.valueOf() as int32)) + ArkUIGeneratedNativeModule._MutableStyledString_removeStyle(this.peer!.ptr, start, length, ((styledKey as StyledStringKey) as int32)) } private removeStyles_serialize(start: number, length: number): void { ArkUIGeneratedNativeModule._MutableStyledString_removeStyles(this.peer!.ptr, start, length) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts index 3cb5e97fa73cad5298da24761deaa0a13caa5a11..7911f3c843d2ad64a05de6af6a68c63d30713113 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index 6363b24db7da9189bafe6625cd0c826fc8d1d552..412a832b957724de5d3e713a7d502b96d9b28856 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -20,7 +20,7 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts index b7fbb419f53c80153fdbe8f9127053fabd83cdc3..4625a607f5cf3aeb57d6e907ef9e9e7a10566037 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -19,7 +19,7 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts index 4e006e2a874c98c1bf27d54ca64f058a13d93da2..f39fe149e96fb6eb8a8b5aa3e6a56da3eeaa6406 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -19,7 +19,7 @@ import { Callback_PopInfo_Void } from "./SyntheticDeclarations" import { PopInfo } from "./ArkNavigationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index 02ea9e930b71db9b0ccefd4c61969c0a6e43fbce..883f8b80c655c568582928efb4a9a149298e65c9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -20,7 +20,7 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, PopInfo, NavigationInterception } from "./ArkNavigationInterfaces" import { Callback_PopInfo_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -452,8 +452,7 @@ export class NavPathStack implements MaterializedBase { } const retval = ArkUIGeneratedNativeModule._NavPathStack_pop0(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private pop1_serialize(result: Object, animated?: boolean): NavPathInfo | undefined { const thisSerializer : Serializer = Serializer.hold() @@ -467,8 +466,7 @@ export class NavPathStack implements MaterializedBase { } const retval = ArkUIGeneratedNativeModule._NavPathStack_pop1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private popToName0_serialize(name: string, animated?: boolean): number { const thisSerializer : Serializer = Serializer.hold() @@ -561,28 +559,44 @@ export class NavPathStack implements MaterializedBase { } private getAllPathName_serialize(): Array { const retval = ArkUIGeneratedNativeModule._NavPathStack_getAllPathName(this.peer!.ptr) - console.log("Object deserialization is not implemented for type: [object Object], return default value.") - return new Array() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult : Array = buffer + return returnResult } private getParamByIndex_serialize(index: number): object | undefined { const retval = ArkUIGeneratedNativeModule._NavPathStack_getParamByIndex(this.peer!.ptr, index) - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private getParamByName_serialize(name: string): Array { const retval = ArkUIGeneratedNativeModule._NavPathStack_getParamByName(this.peer!.ptr, name) - console.log("Object deserialization is not implemented for type: [object Object], return default value.") - return new Array() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readCustomObject("Any") as Object) + } + const returnResult : Array = buffer + return returnResult } private getIndexByName_serialize(name: string): Array { const retval = ArkUIGeneratedNativeModule._NavPathStack_getIndexByName(this.peer!.ptr, name) - console.log("Object deserialization is not implemented for type: [object Object], return default value.") - return new Array() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readNumber() as number) + } + const returnResult : Array = buffer + return returnResult } private getParent_serialize(): NavPathStack | undefined { const retval = ArkUIGeneratedNativeModule._NavPathStack_getParent(this.peer!.ptr) - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private size_serialize(): number { const retval = ArkUIGeneratedNativeModule._NavPathStack_size(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts index b0221ddbb22b05afbe03bd9dd53acbfed59319a3..488b0512346a425a579e84bac0fe89721cb43ece 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index 5fc286ea6f680bd30a47a90e2bd6ae055e927916..9d1951588775aebfc6727884183695354f4ccbad 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -18,7 +18,7 @@ import { NavContentInfo } from "./ArkNavigationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts index 400a3cf1180f7e5207529672d13adbdb52f420fa..cbccd5d94dd50a361bce8d4e76d4a7d5cfe1b085 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts index e301aeb931cd0b848c8c596a1313719de8ddb9c5..86c79c028b261b90a6d3b45e1bfbefccdec83e96 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts index eeebcee587de05080740875aba23b56b821889a8..f0c75b15914c376b12aa0154ac1531d4bb75ef11 100644 --- a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts @@ -21,7 +21,7 @@ import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./ArkOffscreenCanvasRenderingContext2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts index 8da9b4e1d2fe004609772549381c11c74505e639..39f941913465ef67aa446624beeacf8eb312049e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -29,7 +29,7 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 437853d7daee095f8e5cc4e66353df189e0e2c53..543011a41e659ee15237b3ca4d15536a50cb02f3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -21,7 +21,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index d6003d77c6483bec0bf9bd99d2407a4e41060846..4862daab9dcfcf20dd5e2f4f5e3583fb8fa2fe0e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -19,7 +19,7 @@ import { Literal_Number_distance_fingers_PanDirection_direction } from "./SyntheticDeclarations" import { PanDirection } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -58,7 +58,7 @@ export class PanGestureOptions implements MaterializedBase { thisSerializer.writeInt8(value_value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_value_direction_type)) { const value_value_direction_value = (value_value_direction as PanDirection) - thisSerializer.writeInt32((value_value_direction_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_value_direction_value as PanDirection) as int32)) } const value_value_distance = value_value.distance let value_value_distance_type : int32 = RuntimeType.UNDEFINED @@ -96,7 +96,7 @@ export class PanGestureOptions implements MaterializedBase { return this.getDirection_serialize() } private setDirection_serialize(value: PanDirection): undefined { - const retval = ArkUIGeneratedNativeModule._PanGestureOptions_setDirection(this.peer!.ptr, (value.valueOf() as int32)) + const retval = ArkUIGeneratedNativeModule._PanGestureOptions_setDirection(this.peer!.ptr, ((value as PanDirection) as int32)) return retval } private setDistance_serialize(value: number): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts index aad5ad66a450df9200231f119b036295622a9dbc..c9a78819c33a517827f6c27e0a61f86ab9245350 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -22,7 +22,7 @@ import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPanel.ts b/arkoala-arkts/arkui/src/generated/ArkPanel.ts index 56c8d0ff92519a706af1b15a2311b65214bd95a5..7ea6032397e74d0bec5625e55b096e6ed6394190 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanel.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts index ffed98c4643b3940788be859be013d6f1fda37f4..f0289051b208b26048fa0769b66d064123d499b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -20,7 +20,7 @@ import { TextAlign, TextOverflow, WordBreak } from "./ArkEnumsInterfaces" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" import { ParagraphStyleInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts index 9c777628aa3c41870d9ac2fc71fb2f476f63643d..bb5d6e0300fb940ed7859ed5765c02039f6d0485 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" -import { UseEventsProperties } from "./use_properties" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkPath.ts b/arkoala-arkts/arkui/src/generated/ArkPath.ts index a43481b94759b7fbbf85259d76048bc3dda6b289..10a11322e0875384c0c6c65340d491925724f035 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts index fb1cdf11e2c1d985ec5917adb05a32c234985463..5e5c5f68bf1f9cf9820bfb10bc1bfce19bd25088 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts @@ -20,7 +20,7 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPathShapeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPathShapeMaterialized.ts index 8534f889c1941ff73eb1705d452e120c066d9ec4..91e671db12b630ea835f497dd81fc553f1cae70d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPathShapeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPathShapeMaterialized.ts @@ -21,7 +21,7 @@ import { Position, ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -90,7 +90,7 @@ export class PathShape implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts index 75a0a309112b231c37bec498a1485f422138fc8a..bea95545ebff53236f7610d0fddc2f17e6012f55 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index ea2abcd84112076c95d8cda9d55cbcf0ea576706..3e63a5fde3e62da5026c34e9c22086761155f94b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -18,7 +18,7 @@ import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -60,6 +60,6 @@ export class PatternLockController implements MaterializedBase { return retval } private setChallengeResult_serialize(result: PatternLockChallengeResult): void { - ArkUIGeneratedNativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, (result.valueOf() as int32)) + ArkUIGeneratedNativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, ((result as PatternLockChallengeResult) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 2d205e21198a6ad3a7deeb2abbd087acd72c1dd4..5b3e1767caf55b739ec07e2e98c21f077a4ab2be 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -70,7 +70,14 @@ export class PermissionRequest implements MaterializedBase { } private getAccessibleResource_serialize(): Array { const retval = ArkUIGeneratedNativeModule._PermissionRequest_getAccessibleResource(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult : Array = buffer + return returnResult } private grant_serialize(resources: Array): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index 5bf56f1ec32fac2ab9722eda37deb591c62cdbd3..4ec56c2a6de9a3b412becf7ee313f7a5480826ca 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -21,7 +21,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts index 902488f182e3bf540bb2e9b8aded3db182bed3a9..4ad7f9d11261f38bc549bc970bfa6f20e1c2d18e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts index f85db0d9d282cf31186ffa33d99fa0718db9dc0c..0e3f2e59035b0502cff1638537bb0c785e95e32c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts index ae14712e08e903265675ead624822ac2fbb836a0..315e54c8ff76c621328402037c0d222bbf00668e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts index de9c22ef609285102130e1fbb6380a888a85a800..7af0fc134db3260f693e0735e7fe0057752b1664 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts index 5a245a662ff9cdd92821985e556b225e9a90ce82..4dab2b6b62f06112e3ca4187e4c2e2fe00e0bd01 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkProgress.ts b/arkoala-arkts/arkui/src/generated/ArkProgress.ts index 57a98fb25ab4411d7313ae19e680824e50f0b96f..6c65d12c0a42632a0f39cbc3a76bb383d561c49e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgress.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts index ca3c836df7952f200adbc85931dec76714d83d2d..bced3e27be95fa1cb7625400f728180642d04b6b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -20,7 +20,7 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -45,7 +45,7 @@ export class ProgressMask implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) @@ -101,7 +101,7 @@ export class ProgressMask implements MaterializedBase { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts index 592eb1780a77074d22f5cd6141f24caa434bf8d9..417fc051fd91c167b4752a4d15f5db7c4d282e6c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts +++ b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkRadio.ts b/arkoala-arkts/arkui/src/generated/ArkRadio.ts index 2e08adc140a0ff10a356f8bb64c9681fc2c073dc..8930d37c78f6f06d66ea8bf545df84625e4d9bdb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadio.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadio.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRating.ts b/arkoala-arkts/arkui/src/generated/ArkRating.ts index 1b0d2cd1c100bf40a76a19558f2072cce5609ed0..7962526a961ac11fcae9d05e3d8de28a0effe8cd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRating.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRating.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRect.ts b/arkoala-arkts/arkui/src/generated/ArkRect.ts index 6d450af7918438a09fa9fa613b9bbda66b219c16..cce2556090b00b1da7d65d4aa095f584341526c9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRect.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkRectShapeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRectShapeMaterialized.ts index 1b64903339ec38857ce8ef69d89f536da668b0e1..767f99f47eeb11f87c4e2cdd3babcf6309dd1dcd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRectShapeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRectShapeMaterialized.ts @@ -21,7 +21,7 @@ import { Position, ResourceColor, Length, SizeOptions } from "./ArkUnitsInterfac import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -121,7 +121,7 @@ export class RectShape implements MaterializedBase { if (TypeChecker.isColor(color)) { thisSerializer.writeInt8(0 as int32) const color_0 = color as Color - thisSerializer.writeInt32((color_0.valueOf() as int32)) + thisSerializer.writeInt32(((color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts index 96192a136d9a9dcb59572eb39b715af03afb4821..7afc08319083bd16259cba13d39b008ea426f830 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts index 8e33fa3bb2133c08cc189f2b1a4d105ef5ff8b77..4e31ddc238bc229abf33e2f1bf35608718de0f1e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts index 258443f25d42c3ec953f56d11baf9be31e6fdda9..1278b501243a0816cc66afd737e48802451a7a62 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts index eb94c8a999331a50351ab5902e6ca029572cddd5..058fa5a5b527f6b4ffb1289353d28731fd086db1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts index 98c57e1a495de6628477e8dd6c65bb19a314bdbf..5c20f3253d5281ea6b079ced0e48c74f99312b63 100644 --- a/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -18,7 +18,7 @@ import { SymbolEffect, EffectScope } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -50,7 +50,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { thisSerializer.writeInt8(scope_type as int32) if ((RuntimeType.UNDEFINED) != (scope_type)) { const scope_value = (scope as EffectScope) - thisSerializer.writeInt32((scope_value.valueOf() as int32)) + thisSerializer.writeInt32(((scope_value as EffectScope) as int32)) } const retval = ArkUIGeneratedNativeModule._ReplaceSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -76,6 +76,6 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { throw new Error("Object deserialization is not implemented.") } private setScope_serialize(scope: EffectScope): void { - ArkUIGeneratedNativeModule._ReplaceSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + ArkUIGeneratedNativeModule._ReplaceSymbolEffect_setScope(this.peer!.ptr, ((scope as EffectScope) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts index 1be8405a7273cf641d2b0f43cbfd6231dbb860e1..16e1ec079705cb6c8b98174d6c7fb2e468572853 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index 10d2636758de4a806ad74dd5def955e8f26a6db3..28db2a5e1645c17186f0b3c4597f69d8222c3a20 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -23,7 +23,7 @@ import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterial import { PreviewText } from "./ArkTextCommonInterfaces" import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -104,7 +104,9 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - return new Deserializer(retval, retval.length).readRichEditorTextStyle() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : RichEditorTextStyle = retvalDeserializer.readRichEditorTextStyle() + return returnResult } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer : Serializer = Serializer.hold() @@ -138,6 +140,8 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - return new Deserializer(retval, retval.length).readPreviewText() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : PreviewText = retvalDeserializer.readPreviewText() + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index 398d727b10391e540c316efe23d9d6ef5461ed47..fc591ff211f7274cbbf25e11c710877655b29c89 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -29,7 +29,7 @@ import { CustomNodeBuilder } from "./ArkCustomBuilderInterfaces" import { Resource } from "./ArkResourceInterfaces" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -241,7 +241,25 @@ export class RichEditorController extends RichEditorBaseController implements Ma } const retval = ArkUIGeneratedNativeModule._RichEditorController_getSpans(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + const buffer_buf_selector : int32 = retvalDeserializer.readInt8() + let buffer_buf : RichEditorImageSpanResult | RichEditorTextSpanResult | undefined + if (buffer_buf_selector == 0) { + buffer_buf = retvalDeserializer.readRichEditorImageSpanResult() + } + else if (buffer_buf_selector == 1) { + buffer_buf = retvalDeserializer.readRichEditorTextSpanResult() + } + else { + throw new Error("One of the branches for buffer_buf has to be chosen through deserialisation.") + } + buffer[buffer_i] = (buffer_buf as RichEditorImageSpanResult | RichEditorTextSpanResult) + } + const returnResult : Array = buffer + return returnResult } private getParagraphs_serialize(value?: RichEditorRange): Array { const thisSerializer : Serializer = Serializer.hold() @@ -254,15 +272,42 @@ export class RichEditorController extends RichEditorBaseController implements Ma } const retval = ArkUIGeneratedNativeModule._RichEditorController_getParagraphs(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readRichEditorParagraphResult() + } + const returnResult : Array = buffer + return returnResult } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - return new Deserializer(retval, retval.length).readRichEditorSelection() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : RichEditorSelection = retvalDeserializer.readRichEditorSelection() + return returnResult } private fromStyledString_serialize(value: StyledString): Array { const retval = ArkUIGeneratedNativeModule._RichEditorController_fromStyledString(this.peer!.ptr, toPeerPtr(value)) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + const buffer_buf_selector : int32 = retvalDeserializer.readInt8() + let buffer_buf : RichEditorImageSpanResult | RichEditorTextSpanResult | undefined + if (buffer_buf_selector == 0) { + buffer_buf = retvalDeserializer.readRichEditorImageSpanResult() + } + else if (buffer_buf_selector == 1) { + buffer_buf = retvalDeserializer.readRichEditorTextSpanResult() + } + else { + throw new Error("One of the branches for buffer_buf has to be chosen through deserialisation.") + } + buffer[buffer_i] = (buffer_buf as RichEditorImageSpanResult | RichEditorTextSpanResult) + } + const returnResult : Array = buffer + return returnResult } private toStyledString_serialize(value: RichEditorRange): StyledString { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index d932af2f9bf76a6988ca313c78b58006366d9cc5..8a7b71ffdbc8b0f717920cce375ec91cd97eeae1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -27,7 +27,7 @@ import { StyledStringController, StyledStringControllerInternal } from "./ArkSty import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -83,7 +83,9 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - return new Deserializer(retval, retval.length).readRichEditorRange() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : RichEditorRange = retvalDeserializer.readRichEditorRange() + return returnResult } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkRichText.ts b/arkoala-arkts/arkui/src/generated/ArkRichText.ts index 1df7d328bed3a0b08ca2bdbf2d1723f7d07428ff..7374b8f6405b06e3e65bd98fb52b0b007296839a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichText.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts index d9dceda35e8953ef4b030bf1e61509417c9e0caa..b99f699897b3f6bfc9b8c73376abbdfb3a047137 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index f12ae005edda9959a536b3bd4dc100b5c84f0748..a84132c3cb34a80d09d6d7620dd01c44f21df8c0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -21,7 +21,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkRow.ts b/arkoala-arkts/arkui/src/generated/ArkRow.ts index ff2373428969dfd3decef99d16dbf7ba7c1ce8ae..b05de0ed773a805af0b2bfebb84ae2640451c802 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRow.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts index f108eb414cda88a1af2b23569b1e2e041782a84a..bb3fb2401e2bc797951076f0af24c0e92233df0b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts index cf6a948d77b1c7d902deea36ba0eefaab1187b0c..c7cb9f9ff987ada4a6fc7c6712543cf9d5ff04eb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" -import { UseEventsProperties } from "./use_properties" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts index dc4154882e6f5313a126d7ad7e50d41c9edf37a6..3490ae23a65046215e2f0b8d0f07594eb224db57 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -18,7 +18,7 @@ import { SymbolEffect, EffectScope, EffectDirection } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -57,14 +57,14 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { thisSerializer.writeInt8(scope_type as int32) if ((RuntimeType.UNDEFINED) != (scope_type)) { const scope_value = (scope as EffectScope) - thisSerializer.writeInt32((scope_value.valueOf() as int32)) + thisSerializer.writeInt32(((scope_value as EffectScope) as int32)) } let direction_type : int32 = RuntimeType.UNDEFINED direction_type = runtimeType(direction) thisSerializer.writeInt8(direction_type as int32) if ((RuntimeType.UNDEFINED) != (direction_type)) { const direction_value = (direction as EffectDirection) - thisSerializer.writeInt32((direction_value.valueOf() as int32)) + thisSerializer.writeInt32(((direction_value as EffectDirection) as int32)) } const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -98,13 +98,13 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { throw new Error("Object deserialization is not implemented.") } private setScope_serialize(scope: EffectScope): void { - ArkUIGeneratedNativeModule._ScaleSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + ArkUIGeneratedNativeModule._ScaleSymbolEffect_setScope(this.peer!.ptr, ((scope as EffectScope) as int32)) } private getDirection_serialize(): EffectDirection { const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_getDirection(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } private setDirection_serialize(direction: EffectDirection): void { - ArkUIGeneratedNativeModule._ScaleSymbolEffect_setDirection(this.peer!.ptr, (direction.valueOf() as int32)) + ArkUIGeneratedNativeModule._ScaleSymbolEffect_setDirection(this.peer!.ptr, ((direction as EffectDirection) as int32)) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkScreen.ts b/arkoala-arkts/arkui/src/generated/ArkScreen.ts index cc757eb2d2f1f3642d9231e0c326cc573f075cc5..4269752db1bda4d40e5d21efd4d1b6602745b73a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreen.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreen.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index d83c22582d27092862dcc59dfcbe0dc489914a57..568de6bdfd972d65a802dbad3ba712d3ecfa1c42 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -18,7 +18,7 @@ import { ScreenCaptureConfig } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkScroll.ts b/arkoala-arkts/arkui/src/generated/ArkScroll.ts index f2945403fe06ad99a8042333d883d8418855dacf..d1ab985cff7ac3de922813f2dffad344b94fc0e0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScroll.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScroll.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts index 289963c937ff7774c67509e8403db3b234dd4826..58285d93c65b589fd706f01e7c849e72167eac93 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts index 822a0d1b24a98a45a602108ce649d7f0b0fe9462..7c6e0625032200b523b165e133342d4505e34236 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -18,7 +18,7 @@ import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts index 282df9407ddb6592d6325d565b0c672d552dcf9a..63bf49745be2874df0b0140815b5c75f05104fb7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -18,7 +18,7 @@ import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts index bf487b8c57edc4f2d740330031bbae0aaccacecd..704753be74f4138f954a1f8d7db58bb4903beef4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts @@ -23,7 +23,7 @@ import { Length } from "./ArkUnitsInterfaces" import { RectResult } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -121,7 +121,7 @@ export class Scroller implements MaterializedBase { const options_value = options! thisSerializer.writeScrollEdgeOptions(options_value) } - const retval = ArkUIGeneratedNativeModule._Scroller_scrollEdge(this.peer!.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._Scroller_scrollEdge(this.peer!.ptr, ((value as Edge) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() return retval } @@ -145,7 +145,7 @@ export class Scroller implements MaterializedBase { thisSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as Axis) - thisSerializer.writeInt32((value_direction_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_direction_value as Axis) as int32)) } const retval = ArkUIGeneratedNativeModule._Scroller_scrollPage1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -153,7 +153,9 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - return new Deserializer(retval, retval.length).readOffsetResult() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : OffsetResult = retvalDeserializer.readOffsetResult() + return returnResult } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer : Serializer = Serializer.hold() @@ -169,7 +171,7 @@ export class Scroller implements MaterializedBase { thisSerializer.writeInt8(align_type as int32) if ((RuntimeType.UNDEFINED) != (align_type)) { const align_value = (align as ScrollAlign) - thisSerializer.writeInt32((align_value.valueOf() as int32)) + thisSerializer.writeInt32(((align_value as ScrollAlign) as int32)) } let options_type : int32 = RuntimeType.UNDEFINED options_type = runtimeType(options) @@ -192,7 +194,9 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - return new Deserializer(retval, retval.length).readRectResult() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : RectResult = retvalDeserializer.readRectResult() + return returnResult } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) diff --git a/arkoala-arkts/arkui/src/generated/ArkSearch.ts b/arkoala-arkts/arkui/src/generated/ArkSearch.ts index a8d83f3d56bb6855db72e5f2c0e7dbe969912356..084eb7a5975562b6e83440052717e9f68f05ed53 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearch.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearch.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, TextDecorationOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts index 53c322c059dff809052c4c857e44ed66c27259a1..c4a19d480da3c5fdb9a6a38dd12ea1d744bf541a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -19,7 +19,7 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts index 62117c6d9f22b735d96d7a12a02d3dbd45676196..401b2e7e30d851f36273b8e77f349314f095f670 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkSelect.ts b/arkoala-arkts/arkui/src/generated/ArkSelect.ts index 3296b460458e6dfc443298d3c74e318645ec8c29..b7fd44ee3925c85b098ed4c2a57e5aa23deb9ad1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelect.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, Offset } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkShape.ts b/arkoala-arkts/arkui/src/generated/ArkShape.ts index 13b3dcef87acecaa81c232bba90cc540ba6e18ac..7c2dcbc620e09ef71c14712dc92d4d6ad8fcc3e4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShape.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShape.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts index 67b22348a2aac375316a8fb9a133f61fe55d5aca..4a4091a4a09ea8cec21928d843676183af7915b8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -111,7 +110,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { this.getPeer()?.sideBarWidth0Attribute(value_casted) return this } - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { const value_casted = value as (Length) this.getPeer()?.sideBarWidth1Attribute(value_casted) return this @@ -129,7 +128,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { this.getPeer()?.minSideBarWidth0Attribute(value_casted) return this } - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { const value_casted = value as (Length) this.getPeer()?.minSideBarWidth1Attribute(value_casted) return this @@ -147,7 +146,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { this.getPeer()?.maxSideBarWidth0Attribute(value_casted) return this } - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { const value_casted = value as (Length) this.getPeer()?.maxSideBarWidth1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSlider.ts b/arkoala-arkts/arkui/src/generated/ArkSlider.ts index 657b6527b52ed98669aaca91174f3f36fa203aac..33be8bce4d7406cd35efe7b0817458b5226830bd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSlider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSlider.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSpan.ts index 616e4907c92aa1ed07432e1a6dd9646576931522..386bb12760c286532f2adb6ec920836b16ab200c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpan.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts index 1eee8a6689ad09f9cdd543172be120fe5c3054f2..335df054d85560ef405c6de2c263f9a9f12d7c51 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -18,7 +18,7 @@ import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts index 28f0fcfcf75b8eee9a6d9a7e6052b5a00140cf5f..219904829b1c74b2ccf74a0e530889b53b4bfc16 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts index bb412bd447521b67f6ebe433f9d89c4583e5e0e3..2850cb7d6f602dc9b48ea0b89cec3477ae52177d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkStack.ts b/arkoala-arkts/arkui/src/generated/ArkStack.ts index abd2072d1f86973e92c64286c8ca7f61aad81035..51b5d81e736dbb0437e8a63ff4fbd5c402acc5fb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStack.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts index 8ca6145f8ff277f4dbc7d185b529ebbb47dfc13f..d9d848f45d438ccb930c48aec18f818c3aa0946b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkStepper.ts b/arkoala-arkts/arkui/src/generated/ArkStepper.ts index 4f67821c0af700e301a5ef655552a1d247a25aaf..dd5b5cf9ed61f84c7e70c9cba55171330c512267 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepper.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts index 6eebc70f4c13e616e80a26bdde0f83e3b3c6e362..d848ac2f3755405f81300bac6dbeca070b09f5bf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index 996b38a9bac6aa93ceeac39ea23d6933cbd5f515..0d79e1238f30b4b1add1cf627162e22ed374df6e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -19,7 +19,7 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts index b4b1b24c419d448b253f154a35bd732bca9f63bf..36627e069750e04e8ba2224c3677aaa4b09b4c7a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts @@ -26,6 +26,18 @@ import { Callback_ClickEvent_Void, Callback_GestureEvent_Void } from "./Syntheti import { ClickEvent } from "./ArkClickEventMaterialized" import { GestureEvent } from "./ArkGestureEventMaterialized" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" +import { TextStyle_styled_string } from "./ArkTextStyleStyledStringMaterialized" +import { DecorationStyle } from "./ArkDecorationStyleMaterialized" +import { BaselineOffsetStyle } from "./ArkBaselineOffsetStyleMaterialized" +import { LetterSpacingStyle } from "./ArkLetterSpacingStyleMaterialized" +import { TextShadowStyle } from "./ArkTextShadowStyleMaterialized" +import { GestureStyle } from "./ArkGestureStyleMaterialized" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" +import { ParagraphStyle } from "./ArkParagraphStyleMaterialized" +import { LineHeightStyle } from "./ArkLineHeightStyleMaterialized" +import { UrlStyle } from "./ArkUrlStyleMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { BackgroundColorStyle } from "./ArkBackgroundColorStyleMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" export interface StyleOptions { start?: number; @@ -63,9 +75,7 @@ export interface ParagraphStyleInterface { wordBreak?: WordBreak; leadingMargin?: LengthMetrics | LeadingMarginPlaceholder; } -export interface StyledStringValue { - stub: string; -} +export type StyledStringValue = TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle; export enum StyledStringKey { FONT = 0, DECORATION = 1, diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts index 831325664ffc7e15a87398cb56d34b6af023124d..a334c172b9641bd223e9536008c7d82451875c85 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -20,7 +20,7 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -133,11 +133,18 @@ export class StyledString implements MaterializedBase { thisSerializer.writeInt8(styledKey_type as int32) if ((RuntimeType.UNDEFINED) != (styledKey_type)) { const styledKey_value = (styledKey as StyledStringKey) - thisSerializer.writeInt32((styledKey_value.valueOf() as int32)) + thisSerializer.writeInt32(((styledKey_value as StyledStringKey) as int32)) } const retval = ArkUIGeneratedNativeModule._StyledString_getStyles(this.peer!.ptr, start, length, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readSpanStyle() + } + const returnResult : Array = buffer + return returnResult } private equals_serialize(other: StyledString): boolean { const retval = ArkUIGeneratedNativeModule._StyledString_equals(this.peer!.ptr, toPeerPtr(other)) @@ -170,7 +177,8 @@ export class StyledString implements MaterializedBase { } private static marshalling_serialize(styledString: StyledString): NativeBuffer { const retval = ArkUIGeneratedNativeModule._StyledString_marshalling(toPeerPtr(styledString)) - return retval + //return new Deserializer(retval, retval.length).readBuffer() + throw new Error("temp") } private static unmarshalling_serialize(buffer: NativeBuffer): Promise { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts index 25cdef4fe3d75e54289f64002a27c970b4147432..2402aafbe05ae6c907807935069a4546679ca1fa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index 872a8839830fd6315fd5b999669625a70fc71f22..d5576af23c5fea8507ccbaa016fc1730b683a1cf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -21,7 +21,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts index 53ebab1db7ded59e638a9be884a1b2a58908904a..354009e4305a1dbd3c628c54a18afe11b9a6a43b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index a2144847d34659ebeec52134c374fa2ea6dcee07..1bd1dc2eda7d628e3f5a4536ce4ee3ee7d263d35 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts index b68b3570a788e79410c86f7e3fab11b082e32182..c0dec35beebf2642d3ed68b7189af564e12941ae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -18,7 +18,7 @@ import { VoidCallback } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts index e1604831adb85b45de69c50b0d1d8f5ce91621e0..c3db0af8a8a53fe24233cbfb1a869d298e34ba99 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts index 2aba3a801f1d6d1155ed6efe2cb07f1aed1556e4..7b00462d9459c577ea46b8ad08122d4c170b0a7a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts index 10b9ab27284c84f033f97a771cdc6d8ae3b966e6..b04c3424157d25b6c96cc95bb59869c10e8f0394 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts index 500db9f8e833445bb8ae976cedc137f7146e77d4..cb8c3b8b83abb08d8451ee360ce2e32548c76615 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +74,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { this.getPeer()?.tabBar1Attribute(value_casted) return this } - if ((RuntimeType.STRING == value_type) || (isResource(value)) || (RuntimeType.FUNCTION == value_type) || (TypeChecker.isTabBarOptions(value, false, false))) { + if ((RuntimeType.STRING == value_type) || (TypeChecker.isResource(value, false, false, false, false, false)) || (RuntimeType.FUNCTION == value_type) || (TypeChecker.isTabBarOptions(value, false, false))) { const value_casted = value as (string | Resource | CustomBuilder | TabBarOptions) this.getPeer()?.tabBar0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index 411346a9235e42186ea59cbbf83d9fc80274e216..fecb261ace548dcfdc461113c80834206f50358c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTabs.ts b/arkoala-arkts/arkui/src/generated/ArkTabs.ts index fffca0c9643f3e6a3b475816dad662cfc250262d..d98a8bf559aeb15e0867d1e2d2e78867668f9b9e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabs.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabs.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts index bf06b458bd3c1280d6fbf25a43b59d67d7e61b5d..7a1bbffd809eb2c1b852a4bbe8cdefb12cec6224 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -18,7 +18,7 @@ import { TranslateOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts index 629e16eaada380d77c9329942edbbb6223dd1909..10b40fa6e93ce386736b269010dcc912a828df32 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -21,7 +21,7 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkText.ts b/arkoala-arkts/arkui/src/generated/ArkText.ts index 0e6274a41ec0dbde9ea335b814ff363bdf7dd428..22cc2908d5370778ca812092f3f5b7413d58f351 100644 --- a/arkoala-arkts/arkui/src/generated/ArkText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkText.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts index 4132a78270a55fb4282e560daec3e0137115f39c..ccb137842937f82122cbb3423bad2d0672d2b3b0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index 6ee2a9bc335cd7aaa59bb5eb4e41753f9bc19f31..7aafeb700e76a5131f73a37c3a9b474cea6dbaf6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -19,7 +19,7 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index e19e06d6d4bc4ab3af9891b8ed0835e64ae78e23..fe934b096b1926b916a269b7cc66f0eefe227c64 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -19,7 +19,7 @@ import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts index df0f33e870fc3b873102c60edbe774856996ce74..23755116bbb783dd96f90ab5387a64da3bb4c2f4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts index ccefc23976ec89b9c4264851b6abc6641e7949df..9ccf1d0cbf1877e16482d0c260d1e3cace9ed207 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index dad957a73bdca20df00f55a47367b180f410e79e..b4e8820806dac60ba3083d3ca0cc872fb95b3eec 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -18,7 +18,7 @@ import { CaretOffset, RectResult } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -58,11 +58,15 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - return new Deserializer(retval, retval.length).readCaretOffset() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : CaretOffset = retvalDeserializer.readCaretOffset() + return returnResult } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - return new Deserializer(retval, retval.length).readRectResult() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : RectResult = retvalDeserializer.readRectResult() + return returnResult } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts index e005815e92d95ef881b38a2e72c015789cd7787f..a4ffd2b656c87036e6b83d72fa39ff961bb07d1c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -19,7 +19,7 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index af4cbfe250e7b5258f6df6530f838ac4918340bf..5bddd5499fb8b47112205bdd64ebb86105aeec07 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -21,7 +21,7 @@ import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -85,7 +85,9 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - return new Deserializer(retval, retval.length).readPreviewText() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : PreviewText = retvalDeserializer.readPreviewText() + return returnResult } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj : TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts index 3101e479fcb765a1555102b55e53d2c279c204c1..7d8ad38a927709f0edee1a0f364224afcbea8822 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts index ab355cbb925509ed016f6c8e63a33b7a1840ed1b..c940199851ba9a10d02d0c3fd4aa112f6cbdfc36 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -19,7 +19,7 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index 5c5a96ef42feac4c37ca4869c0c927721ef7615e..01cb18f797aa42a1ebe73b1c437a9704fb215ee2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -19,7 +19,7 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts index 748a7a23b0a6c56c9e5b09cbf0d2a27f4857e758..5b3f1f9ced81daf14acfabc54d4bc18d7b93f370 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index b8991e9709b4bfed5179d8249ea22490c946b094..b7a3ffd5de36bb346411c096e7eb20b14ef88e38 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -18,7 +18,7 @@ import { TextPickerDialogOptions } from "./ArkTextPickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts index adc59ca01c82548271d62ba5112bb41927aefed7..c124ac0bf296f79c1175bcf0e8f1cc4fa22ed561 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -18,7 +18,7 @@ import { ShadowOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -76,6 +76,13 @@ export class TextShadowStyle implements MaterializedBase { } private getTextShadow_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TextShadowStyle_getTextShadow(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readShadowOptions() + } + const returnResult : Array = buffer + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts index 1f0f590c72ac662ba2852c3b245c2f4721917121..4cac4cfae96df2a3645b5f868faf8976d0613027 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts @@ -21,7 +21,7 @@ import { FontStyle, Color } from "./ArkEnumsInterfaces" import { TextStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts index 5988bb16623cfb1337e695083cb6a333541ad672..3453a9521ffd5f69201b77f896df77d1e631512c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index 36892fc6dbebc8d3c1340f01b6ad22fef8c52689..99dc5ebff592de0c57023369828424d6599fa2ca 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts index 577312de6bee9155c23eeb86f410acafa339e77d..798986a7a9a18725a579260ad7c76097d435b2e5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index 049eb749162b93903e280b40735d649f5a4230a5..3d36e3db7d4daffbe3b1a55c2115eb1047459d90 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -18,7 +18,7 @@ import { TimePickerDialogOptions } from "./ArkTimePickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkToggle.ts b/arkoala-arkts/arkui/src/generated/ArkToggle.ts index 52f78f9ebce93b2016513ddbe9f7da1976a5155b..07ab7b6cbc2475e02bbc63e1b429d0186abf89e0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggle.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts index a797954ad299d8710c5df194751669fcf7acbe41..c304676f3be3c957c1aa6bd3717683c428109c9d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -21,7 +21,7 @@ import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } fro import { TouchType } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -127,18 +127,32 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize } private getHistoricalPoints_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TouchEvent_getHistoricalPoints(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readHistoricalPoint() + } + const returnResult : Array = buffer + return returnResult } private getType_serialize(): TouchType { const retval = ArkUIGeneratedNativeModule._TouchEvent_getType(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } private setType_serialize(type: TouchType): void { - ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, (type.valueOf() as int32)) + ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, ((type as TouchType) as int32)) } private getTouches_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTouchObject() + } + const returnResult : Array = buffer + return returnResult } private setTouches_serialize(touches: Array): void { const thisSerializer : Serializer = Serializer.hold() @@ -152,7 +166,14 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize } private getChangedTouches_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTouchObject() + } + const returnResult : Array = buffer + return returnResult } private setChangedTouches_serialize(changedTouches: Array): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts index 3099960938f7cbaa4bf4d1fddf76e5e01e1042e3..a0aaba778c0809bf4c2d555af11c7f76b1a6b4dc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -18,7 +18,7 @@ import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -55,7 +55,7 @@ export class TransitionEffect implements MaterializedBase { thisSerializer.writeNumber(effect_opacity) const effect_slideSwitch = effect.slideSwitch const effect_move = effect.move - thisSerializer.writeInt32((effect_move.valueOf() as int32)) + thisSerializer.writeInt32(((effect_move as TransitionEdge) as int32)) const effect_translate = effect.translate thisSerializer.writeTranslateOptions(effect_translate) const effect_rotate = effect.rotate @@ -156,7 +156,7 @@ export class TransitionEffect implements MaterializedBase { return obj } private static move_serialize(edge: TransitionEdge): TransitionEffect { - const retval = ArkUIGeneratedNativeModule._TransitionEffect_move((edge.valueOf() as int32)) + const retval = ArkUIGeneratedNativeModule._TransitionEffect_move(((edge as TransitionEdge) as int32)) const obj : TransitionEffect = TransitionEffectInternal.fromPtr(retval) return obj } diff --git a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts index 0c327f2fddb8ec3b08095b8b070802dbc7fe7c76..dcbacde68fbb2c27fc15ac0f1322a1a1bfb1cd7e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -23,7 +23,7 @@ import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" import { HoverCallback, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index bfe5730c67ad952707e8594085ce25b981643f6f..346299ca6c17951f1e2d5cdb28c739977d2b1c48 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -18,7 +18,7 @@ import { Callback_UIExtensionProxy_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts index 6f94a13645a0396fc822984f48971ecd1295142a..45e15ad178a1402f0384efc536ea5eca1de0721d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts index 0005fc241a8fbbde9225046bb1feebef54cfbd36..d72bb034a0dc23e21be22d2cbf80d9c84e1bb1e8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -59,6 +59,13 @@ export class UnifiedData implements MaterializedBase { } private getTypes_serialize(): Array { const retval = ArkUIGeneratedNativeModule._UnifiedData_getTypes(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult : Array = buffer + return returnResult } } diff --git a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts index b602e335d48372f4e403f65f2e924b6c27ef656a..a47225e405062ae7220fc48d9552f703b3380aec 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkVideo.ts b/arkoala-arkts/arkui/src/generated/ArkVideo.ts index 4c206e0b2702107f0388554727a0e020476d5116..3059445c50027e5d7efc69841be1b051ddf14430 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideo.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideo.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts index 3d2e6d3e7db58fe21ced8d876184b725c8b5f2e9..bc08977581212ed74f3bac2c01e56eeb65eea556 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -18,7 +18,7 @@ import { SeekMode } from "./ArkVideoInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -106,7 +106,7 @@ export class VideoController implements MaterializedBase { return retval } private setCurrentTime1_serialize(value: number, seekMode: SeekMode): undefined { - const retval = ArkUIGeneratedNativeModule._VideoController_setCurrentTime1(this.peer!.ptr, value, (seekMode.valueOf() as int32)) + const retval = ArkUIGeneratedNativeModule._VideoController_setCurrentTime1(this.peer!.ptr, value, ((seekMode as SeekMode) as int32)) return retval } private reset_serialize(): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts index fe76311187b9da98be4fce08b86fefb531d8c6f1..be4a3c831f3d607379fdbbd343a0e51da6adeb31 100644 --- a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts index 4b4c084d3543c0899a7830365945fe099ff3588f..42c51889e78b4097765d589eaf6a826e0fd90796 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index d528e4519308f997511ae407c98e049bc87655a8..2f4d33126bb9eeac0784cb4d21895f43dc724c3d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -18,7 +18,7 @@ import { SectionOptions } from "./ArkWaterFlowInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -108,7 +108,14 @@ export class WaterFlowSections implements MaterializedBase { } private values_serialize(): Array { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_values(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readSectionOptions() + } + const returnResult : Array = buffer + return returnResult } private length_serialize(): number { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_length(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkWeb.ts b/arkoala-arkts/arkui/src/generated/ArkWeb.ts index 590c2ccbee469d2ecc09282018bc9c90ed3d52ec..c5f99c1a70560599fb6d3f7699b4bfd5f93386ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWeb.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWeb.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index 23c7f3417403d4a83b78170853402cee19943f19..33df561882342b0ec2c2f03a75c342179c5a6b4f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -18,7 +18,7 @@ import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index 915919319318ef49f4e533ad972649d019ba1da9..bf9fed53da5aa4559c56b8c961e700f3eb0eaa92 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts index c1e159c224320067e610d2d4707eddc202cbf9b4..8356269b3b1d0388ba8e962319ac153433d80037 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -21,7 +21,7 @@ import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts index d189516e98bcd10563a9405a41f967ec5b4a2a32..417587e09e50af84ce25ca986477394c8220d382 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index 2a450a488996ce319c5422545a98ae7de7443f60..5e449755730c31ad55c099eb0ff1ae8ab7a23835 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 08d83f86c2bd84fdc4d13dcd0602a7470b9200a1..d7efa07f6499671360ca2606d3835f16e292b3bd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index f69dc40d55101bfd1575a62d0be2b246c9672ed2..5634ca1dfdf4b9b69cf45525899586c7aacdab55 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -18,7 +18,7 @@ import { Header } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -67,7 +67,14 @@ export class WebResourceRequest implements MaterializedBase { } private getRequestHeader_serialize(): Array
{ const retval = ArkUIGeneratedNativeModule._WebResourceRequest_getRequestHeader(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array
= new Array
(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readHeader() + } + const returnResult : Array
= buffer + return returnResult } private getRequestUrl_serialize(): string { const retval = ArkUIGeneratedNativeModule._WebResourceRequest_getRequestUrl(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index 832796af09dfd230077e8a8bff7ff1ec393dd366..af846d84fc11f327606355851c85589c3a007617 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -19,7 +19,7 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -129,7 +129,14 @@ export class WebResourceResponse implements MaterializedBase { } private getResponseHeader_serialize(): Array
{ const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseHeader(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const buffer_length : int32 = retvalDeserializer.readInt32() + let buffer : Array
= new Array
(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readHeader() + } + const returnResult : Array
= buffer + return returnResult } private getResponseCode_serialize(): number { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseCode(this.peer!.ptr) @@ -149,7 +156,7 @@ export class WebResourceResponse implements MaterializedBase { const data_1 = data as number thisSerializer.writeNumber(data_1) } - else if (isResource(data)) { + else if (TypeChecker.isResource(data, false, false, false, false, false)) { thisSerializer.writeInt8(2 as int32) const data_2 = data as Resource thisSerializer.writeResource(data_2) diff --git a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts index 50e02a381589c3c4150fc6a1f099513d9f597991..a328786501c87b6a7a42ef487472d3a65c361d0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -19,7 +19,7 @@ import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts index bbd49f52d4a80a849f8ff689f5a2d12c4b705258..541caf767da534e1c3ff3674ba031763245fcbec 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts index 362a6f303203c7ddbe6bd9016f548e230618314d..1a127690f63f2df7cf7709b0078b96738a577569 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -20,7 +20,7 @@ import { Literal_Number_surfaceHeight_surfaceWidth } from "./SyntheticDeclaratio import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" @@ -125,7 +125,9 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - return new Deserializer(retval, retval.length).readSurfaceRect() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : SurfaceRect = retvalDeserializer.readSurfaceRect() + return returnResult } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -135,7 +137,9 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - return new Deserializer(retval, retval.length).readSurfaceRotationOptions() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : SurfaceRotationOptions = retvalDeserializer.readSurfaceRotationOptions() + return returnResult } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts index cade577279550bef7f976b6c92be72d5755a9a1b..1e6f6d1943cc33e77dde700cf3c3f93a2b1cdf81 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts @@ -17,13 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts index a3bb9ccf85ce30692da7308cca6fdd1cdf8dca92..805d68fbcaef12999b12f03b6aab6a25fe913c31 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts @@ -1569,7 +1569,7 @@ export class ArkUIGeneratedNativeModule { native static _UnifiedData_ctor(): KPointer native static _UnifiedData_getFinalizer(): KPointer native static _UnifiedData_hasType(ptr: KPointer, UnifiedData_type: KStringPtr): boolean - native static _UnifiedData_getTypes(ptr: KPointer): KPointer + native static _UnifiedData_getTypes(ptr: KPointer): KInteropReturnBuffer native static _LazyForEachOps_ctor(): KPointer native static _LazyForEachOps_getFinalizer(): KPointer native static _LazyForEachOps_NeedMoreElements(node: KPointer, mark: KPointer, direction: KInt): KPointer @@ -1665,7 +1665,7 @@ export class ArkUIGeneratedNativeModule { native static _GlobalScope_ohos_font_ctor(): KPointer native static _GlobalScope_ohos_font_getFinalizer(): KPointer native static _GlobalScope_ohos_font_registerFont(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_ohos_font_getSystemFontList(): KPointer + native static _GlobalScope_ohos_font_getSystemFontList(): KInteropReturnBuffer native static _ScaleSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _ScaleSymbolEffect_getFinalizer(): KPointer native static _ScaleSymbolEffect_getScope(ptr: KPointer): KPointer @@ -1781,7 +1781,7 @@ export class ArkUIGeneratedNativeModule { native static _CanvasRenderer_getPixelMap(ptr: KPointer, sx: number, sy: number, sw: number, sh: number): KPointer native static _CanvasRenderer_putImageData0(ptr: KPointer, imagedata: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderer_putImageData1(ptr: KPointer, imagedata: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CanvasRenderer_getLineDash(ptr: KPointer): KPointer + native static _CanvasRenderer_getLineDash(ptr: KPointer): KInteropReturnBuffer native static _CanvasRenderer_setLineDash(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderer_clearRect(ptr: KPointer, x: number, y: number, w: number, h: number): void native static _CanvasRenderer_fillRect(ptr: KPointer, x: number, y: number, w: number, h: number): void @@ -1981,12 +1981,12 @@ export class ArkUIGeneratedNativeModule { native static _AccessibilityHoverEvent_setWindowY(ptr: KPointer, windowY: number): void native static _TouchEvent_ctor(): KPointer native static _TouchEvent_getFinalizer(): KPointer - native static _TouchEvent_getHistoricalPoints(ptr: KPointer): KPointer + native static _TouchEvent_getHistoricalPoints(ptr: KPointer): KInteropReturnBuffer native static _TouchEvent_getType(ptr: KPointer): KPointer native static _TouchEvent_setType(ptr: KPointer, type: KInt): void - native static _TouchEvent_getTouches(ptr: KPointer): KPointer + native static _TouchEvent_getTouches(ptr: KPointer): KInteropReturnBuffer native static _TouchEvent_setTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TouchEvent_getChangedTouches(ptr: KPointer): KPointer + native static _TouchEvent_getChangedTouches(ptr: KPointer): KInteropReturnBuffer native static _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TouchEvent_getStopPropagation(ptr: KPointer): KPointer native static _TouchEvent_setStopPropagation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -2058,9 +2058,6 @@ export class ArkUIGeneratedNativeModule { native static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer native static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer native static _TextContentControllerBase_getTextContentLineCount(ptr: KPointer): number - native static _DynamicNode_ctor(): KPointer - native static _DynamicNode_getFinalizer(): KPointer - native static _DynamicNode_onMove(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _ChildrenMainSize_ctor(childDefaultSize: number): KPointer native static _ChildrenMainSize_getFinalizer(): KPointer native static _ChildrenMainSize_splice(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -2097,7 +2094,7 @@ export class ArkUIGeneratedNativeModule { native static _DatePickerDialog_show(thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _BaseGestureEvent_ctor(): KPointer native static _BaseGestureEvent_getFinalizer(): KPointer - native static _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer + native static _BaseGestureEvent_getFingerList(ptr: KPointer): KInteropReturnBuffer native static _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TapGestureEvent_ctor(): KPointer native static _TapGestureEvent_getFinalizer(): KPointer @@ -2139,7 +2136,7 @@ export class ArkUIGeneratedNativeModule { native static _GestureEvent_getFinalizer(): KPointer native static _GestureEvent_getRepeat(ptr: KPointer): boolean native static _GestureEvent_setRepeat(ptr: KPointer, repeat: KInt): void - native static _GestureEvent_getFingerList(ptr: KPointer): KPointer + native static _GestureEvent_getFingerList(ptr: KPointer): KInteropReturnBuffer native static _GestureEvent_setFingerList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GestureEvent_getOffsetX(ptr: KPointer): number native static _GestureEvent_setOffsetX(ptr: KPointer, offsetX: number): void @@ -2189,7 +2186,7 @@ export class ArkUIGeneratedNativeModule { native static _PanRecognizer_getPanGestureOptions(ptr: KPointer): KPointer native static _ImageAnalyzerController_ctor(): KPointer native static _ImageAnalyzerController_getFinalizer(): KPointer - native static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KPointer + native static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KInteropReturnBuffer native static _ListScroller_ctor(): KPointer native static _ListScroller_getFinalizer(): KPointer native static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer @@ -2261,10 +2258,10 @@ export class ArkUIGeneratedNativeModule { native static _NavPathStack_moveToTop(ptr: KPointer, name: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): number native static _NavPathStack_moveIndexToTop(ptr: KPointer, index: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavPathStack_clear(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavPathStack_getAllPathName(ptr: KPointer): KPointer + native static _NavPathStack_getAllPathName(ptr: KPointer): KInteropReturnBuffer native static _NavPathStack_getParamByIndex(ptr: KPointer, index: number): KPointer - native static _NavPathStack_getParamByName(ptr: KPointer, name: KStringPtr): KPointer - native static _NavPathStack_getIndexByName(ptr: KPointer, name: KStringPtr): KPointer + native static _NavPathStack_getParamByName(ptr: KPointer, name: KStringPtr): KInteropReturnBuffer + native static _NavPathStack_getIndexByName(ptr: KPointer, name: KStringPtr): KInteropReturnBuffer native static _NavPathStack_getParent(ptr: KPointer): KPointer native static _NavPathStack_size(ptr: KPointer): number native static _NavPathStack_disableAnimation(ptr: KPointer, value: KInt): void @@ -2303,10 +2300,10 @@ export class ArkUIGeneratedNativeModule { native static _RichEditorController_updateSpanStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorController_updateParagraphStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorController_deleteSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _RichEditorController_getSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _RichEditorController_getSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer native static _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer - native static _RichEditorController_fromStyledString(ptr: KPointer, value: KPointer): KPointer + native static _RichEditorController_fromStyledString(ptr: KPointer, value: KPointer): KInteropReturnBuffer native static _RichEditorController_toStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorStyledStringController_ctor(): KPointer native static _RichEditorStyledStringController_getFinalizer(): KPointer @@ -2420,7 +2417,7 @@ export class ArkUIGeneratedNativeModule { native static _LayoutManager_getLineCount(ptr: KPointer): number native static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer native static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer - native static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer + native static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KInteropReturnBuffer native static _TextMenuItemId_ctor(): KPointer native static _TextMenuItemId_getFinalizer(): KPointer native static _TextMenuItemId_of(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer @@ -2434,7 +2431,7 @@ export class ArkUIGeneratedNativeModule { native static _TextMenuItemId_getAI_WRITER(): KPointer native static _EditMenuOptions_ctor(): KPointer native static _EditMenuOptions_getFinalizer(): KPointer - native static _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer native static _EditMenuOptions_onMenuItemClick(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean native static _SubmitEvent_ctor(): KPointer native static _SubmitEvent_getFinalizer(): KPointer @@ -2483,7 +2480,7 @@ export class ArkUIGeneratedNativeModule { native static _FileSelectorParam_getFinalizer(): KPointer native static _FileSelectorParam_getTitle(ptr: KPointer): string native static _FileSelectorParam_getMode(ptr: KPointer): KPointer - native static _FileSelectorParam_getAcceptType(ptr: KPointer): KPointer + native static _FileSelectorParam_getAcceptType(ptr: KPointer): KInteropReturnBuffer native static _FileSelectorParam_isCapture(ptr: KPointer): boolean native static _JsResult_ctor(): KPointer native static _JsResult_getFinalizer(): KPointer @@ -2512,7 +2509,7 @@ export class ArkUIGeneratedNativeModule { native static _PermissionRequest_getFinalizer(): KPointer native static _PermissionRequest_deny(ptr: KPointer): void native static _PermissionRequest_getOrigin(ptr: KPointer): string - native static _PermissionRequest_getAccessibleResource(ptr: KPointer): KPointer + native static _PermissionRequest_getAccessibleResource(ptr: KPointer): KInteropReturnBuffer native static _PermissionRequest_grant(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ScreenCaptureHandler_ctor(): KPointer native static _ScreenCaptureHandler_getFinalizer(): KPointer @@ -2558,7 +2555,7 @@ export class ArkUIGeneratedNativeModule { native static _ConsoleMessage_getMessageLevel(ptr: KPointer): KPointer native static _WebResourceRequest_ctor(): KPointer native static _WebResourceRequest_getFinalizer(): KPointer - native static _WebResourceRequest_getRequestHeader(ptr: KPointer): KPointer + native static _WebResourceRequest_getRequestHeader(ptr: KPointer): KInteropReturnBuffer native static _WebResourceRequest_getRequestUrl(ptr: KPointer): string native static _WebResourceRequest_isRequestGesture(ptr: KPointer): boolean native static _WebResourceRequest_isMainFrame(ptr: KPointer): boolean @@ -2571,7 +2568,7 @@ export class ArkUIGeneratedNativeModule { native static _WebResourceResponse_getResponseEncoding(ptr: KPointer): string native static _WebResourceResponse_getResponseMimeType(ptr: KPointer): string native static _WebResourceResponse_getReasonMessage(ptr: KPointer): string - native static _WebResourceResponse_getResponseHeader(ptr: KPointer): KPointer + native static _WebResourceResponse_getResponseHeader(ptr: KPointer): KInteropReturnBuffer native static _WebResourceResponse_getResponseCode(ptr: KPointer): number native static _WebResourceResponse_setResponseData(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _WebResourceResponse_setResponseEncoding(ptr: KPointer, encoding: KStringPtr): void @@ -2635,7 +2632,7 @@ export class ArkUIGeneratedNativeModule { native static _WaterFlowSections_splice(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): boolean native static _WaterFlowSections_push(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean native static _WaterFlowSections_update(ptr: KPointer, sectionIndex: number, thisArray: KUint8ArrayPtr, thisLength: int32): boolean - native static _WaterFlowSections_values(ptr: KPointer): KPointer + native static _WaterFlowSections_values(ptr: KPointer): KInteropReturnBuffer native static _WaterFlowSections_length(ptr: KPointer): number native static _UIExtensionProxy_ctor(): KPointer native static _UIExtensionProxy_getFinalizer(): KPointer @@ -2648,12 +2645,12 @@ export class ArkUIGeneratedNativeModule { native static _StyledString_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _StyledString_getFinalizer(): KPointer native static _StyledString_getString(ptr: KPointer): string - native static _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer native static _StyledString_equals(ptr: KPointer, other: KPointer): boolean native static _StyledString_subStyledString(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _StyledString_fromHtml(html: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _StyledString_toHtml(styledString: KPointer): string - native static _StyledString_marshalling(styledString: KPointer): NativeBuffer + native static _StyledString_marshalling(styledString: KPointer): KInteropReturnBuffer native static _StyledString_unmarshalling(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _StyledString_getLength(ptr: KPointer): number native static _TextStyle_styled_string_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer @@ -2674,7 +2671,7 @@ export class ArkUIGeneratedNativeModule { native static _LetterSpacingStyle_getLetterSpacing(ptr: KPointer): number native static _TextShadowStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TextShadowStyle_getFinalizer(): KPointer - native static _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer + native static _TextShadowStyle_getTextShadow(ptr: KPointer): KInteropReturnBuffer native static _BackgroundColorStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _BackgroundColorStyle_getFinalizer(): KPointer native static _GestureStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer diff --git a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts index 5e65614bbaea10c052819011dea0520072fb58f9..99774d3b824dba3e331a4809eed96b9bd6e2bdaf 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts @@ -25,10 +25,6 @@ export class TestNativeModule { native static _TestCallVoidIntArrayPrefixSum(arg0: int32, arr: KInt32ArrayPtr, arg2: int32): void native static _TestCallIntRecursiveCallback(arg0: int32, arr: KUint8ArrayPtr, arg2: int32): int32 native static _TestCallIntMemory(arg0: int32, arg1: int32): int32 - native static _Test_SetEventsApi(): void - native static _Test_Common_OnChildTouchTest(arr: KUint8ArrayPtr, arg: int32): void - native static _Test_List_OnScrollVisibleContentChange(arr: KUint8ArrayPtr, arg: int32): void - native static _Test_TextPicker_OnAccept(arr: KUint8ArrayPtr, arg: int32): void native static _TestWithBuffer(buffer: NativeBuffer): void native static _TestSetArkoalaCallbackCaller(): void native static _TestSetArkoalaCallbackCallerSync(): void diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index bb44289349fed8adad24b1f6d42e809d1f86d067..f98815f8e7401e01ac0d5a6818052dbfccb2c8ec 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -4,7 +4,7 @@ import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_O import { Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, DialogButtonStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, CheckBoxShape, LineCapStyle, LineJoinStyle, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, DynamicNode, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" @@ -96,7 +96,6 @@ import { Measurable } from "./../ArkMeasurableMaterialized" import { View } from "./../ArkViewMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollDirection, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" -import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { UICommonEvent } from "./../ArkUICommonEventMaterialized" import { EnvPropsOptions, PersistPropsOptions } from "./../ArkCommonTsEtsApiInterfaces" @@ -3526,9 +3525,6 @@ export class TypeChecker { static isStyledStringKey(value: object|string|number|undefined|null): boolean { return value instanceof StyledStringKey } - static isStyledStringValue(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof StyledStringValue - } static isStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof StyleOptions } diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index 7b97dfe1eda045c31069ae330240fc77e77262fa..b7fe377314610df25a64f1bb293073673cd23843 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -331,7 +331,6 @@ export * from "./ArkProgressMaskMaterialized" export * from "./ArkMeasurableMaterialized" export * from "./ArkViewMaterialized" export * from "./ArkTextContentControllerBaseMaterialized" -export * from "./ArkDynamicNodeMaterialized" export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkUICommonEventMaterialized" export * from "./ArkGestureModifierMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/peer_events.ts b/arkoala-arkts/arkui/src/generated/peer_events.ts deleted file mode 100644 index 0273da0cb9b11e66edbf61c5583718f62d584913..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/peer_events.ts +++ /dev/null @@ -1,2566 +0,0 @@ -import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KPointer, RuntimeType } from "@koalaui/interop" -import { Callback_Void, Callback_Number_Void, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Callback_Number_Number_Void, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_String_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want } from "./SyntheticDeclarations" -import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./ArkAlphabetIndexerInterfaces" -import { CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" -import { VoidCallback, Area, SizeOptions, ResourceStr } from "./ArkUnitsInterfaces" -import { OnCheckboxChangeCallback } from "./ArkCheckboxInterfaces" -import { OnCheckboxGroupChangeCallback, CheckboxGroupResult } from "./ArkCheckboxgroupInterfaces" -import { TouchTestInfo, TouchResult, AccessibilityCallback, CustomBuilder, DragItemInfo, PreDragStatus, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, VisibleAreaChangeCallback, ItemDragInfo } from "./ArkCommonInterfaces" -import { ClickEvent } from "./ArkClickEventMaterialized" -import { HoverEvent } from "./ArkHoverEventMaterialized" -import { AccessibilityHoverEvent } from "./ArkAccessibilityHoverEventMaterialized" -import { MouseEvent } from "./ArkMouseEventMaterialized" -import { TouchEvent } from "./ArkTouchEventMaterialized" -import { KeyEvent } from "./ArkKeyEventMaterialized" -import { DragEvent } from "./ArkDragEventMaterialized" -import { GestureInfo, GestureJudgeResult } from "./ArkGestureInterfaces" -import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" -import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { HitTestMode, Edge } from "./ArkEnumsInterfaces" -import { ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" -import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo } from "./ArkListInterfaces" -import { DatePickerResult } from "./ArkDatePickerInterfaces" -import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" -import { ErrorCallback, Want } from "./ArkArkuiExternalInterfaces" -import { BusinessError } from "./ArkBaseInterfaces" -import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam } from "./ArkFolderStackInterfaces" -import { FormCallbackInfo } from "./ArkFormComponentInterfaces" -import { ComputedBarAttribute } from "./ArkGridInterfaces" -import { ImageErrorCallback, ImageError } from "./ArkImageInterfaces" -import { ImageCompleteCallback, ImageLoadResult } from "./ArkImageSpanInterfaces" -import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { PanelMode } from "./ArkPanelInterfaces" -import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" -import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" -import { RefreshStatus } from "./ArkRefreshInterfaces" -import { RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, PasteEvent, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent } from "./ArkRichEditorInterfaces" -import { TextRange, OnDidChangeCallback, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" -import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" -import { SubmitEvent } from "./ArkSubmitEventMaterialized" -import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" -import { SearchSubmitCallback } from "./ArkSearchInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { SliderChangeMode } from "./ArkSliderInterfaces" -import { OnSwiperAnimationStartCallback, SwiperAnimationEvent, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, ContentDidScrollCallback } from "./ArkSwiperInterfaces" -import { OnTabsAnimationStartCallback, TabsAnimationEvent, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, TabContentAnimatedTransition, OnTabsContentWillChangeCallback } from "./ArkTabsInterfaces" -import { TextAreaSubmitCallback } from "./ArkTextAreaInterfaces" -import { TimePickerResult } from "./ArkTimePickerInterfaces" -import { FullscreenInfo, PreparedInfo, PlaybackInfo } from "./ArkVideoInterfaces" -import { OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, 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, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails } from "./ArkWebInterfaces" -import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" -import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" -import { OnNativeLoadCallback } from "./ArkXcomponentInterfaces" -import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -export enum PeerEventKind { - AbilityComponent_onConnect = 0, - AbilityComponent_onDisconnect = 1, - AlphabetIndexer_onSelected = 2, - AlphabetIndexer_onSelect = 3, - AlphabetIndexer_onRequestPopupData = 4, - AlphabetIndexer_onPopupSelect = 5, - AlphabetIndexer__onChangeEvent_selected = 6, - Animator_onStart = 7, - Animator_onPause = 8, - Animator_onRepeat = 9, - Animator_onCancel = 10, - Animator_onFinish = 11, - Animator_onFrame = 12, - Calendar_onSelectChange = 13, - Calendar_onRequestData = 14, - CalendarPicker_onChange = 15, - Canvas_onReady = 16, - Checkbox_onChange = 17, - Checkbox__onChangeEvent_select = 18, - CheckboxGroup_onChange = 19, - CheckboxGroup__onChangeEvent_selectAll = 20, - CommonMethod_onChildTouchTest = 21, - CommonMethod_onClick0 = 22, - CommonMethod_onClick1 = 23, - CommonMethod_onHover = 24, - CommonMethod_onAccessibilityHover = 25, - CommonMethod_onMouse = 26, - CommonMethod_onTouch = 27, - CommonMethod_onKeyEvent = 28, - CommonMethod_onKeyPreIme = 29, - CommonMethod_onFocus = 30, - CommonMethod_onBlur = 31, - CommonMethod_onAppear = 32, - CommonMethod_onDisAppear = 33, - CommonMethod_onAttach = 34, - CommonMethod_onDetach = 35, - CommonMethod_onAreaChange = 36, - CommonMethod_onDragStart = 37, - CommonMethod_onDragEnter = 38, - CommonMethod_onDragMove = 39, - CommonMethod_onDragLeave = 40, - CommonMethod_onDrop = 41, - CommonMethod_onDragEnd = 42, - CommonMethod_onPreDrag = 43, - CommonMethod_accessibilityVirtualNode = 44, - CommonMethod_onGestureJudgeBegin = 45, - CommonMethod_onGestureRecognizerJudgeBegin0 = 46, - CommonMethod_onGestureRecognizerJudgeBegin1 = 47, - CommonMethod_shouldBuiltInRecognizerParallelWith = 48, - CommonMethod_onTouchIntercept = 49, - CommonMethod_onSizeChange = 50, - CommonMethod_background = 51, - CommonMethod_bindContextMenu0 = 52, - CommonMethod_bindContextMenu1 = 53, - CommonMethod_bindContentCover0 = 54, - CommonMethod_bindContentCover1 = 55, - CommonMethod_bindSheet = 56, - CommonMethod_onVisibleAreaChange = 57, - ScrollableCommonMethod_onScroll = 58, - ScrollableCommonMethod_onDidScroll = 59, - ScrollableCommonMethod_onReachStart = 60, - ScrollableCommonMethod_onReachEnd = 61, - ScrollableCommonMethod_onScrollStart = 62, - ScrollableCommonMethod_onScrollStop = 63, - Counter_onInc = 64, - Counter_onDec = 65, - DatePicker_onChange = 66, - DatePicker_onDateChange = 67, - DatePicker__onChangeEvent_selected = 68, - EmbeddedComponent_onTerminated = 69, - EmbeddedComponent_onError = 70, - FolderStack_onFolderStateChange = 71, - FolderStack_onHoverStatusChange = 72, - FormComponent_onAcquired = 73, - FormComponent_onError = 74, - FormComponent_onRouter = 75, - FormComponent_onUninstall = 76, - FormComponent_onLoad = 77, - Gauge_description = 78, - Grid_onScrollBarUpdate = 79, - Grid_onScrollIndex = 80, - Grid_onItemDragStart = 81, - Grid_onItemDragEnter = 82, - Grid_onItemDragMove = 83, - Grid_onItemDragLeave = 84, - Grid_onItemDrop = 85, - Grid_onScroll = 86, - Grid_onReachStart = 87, - Grid_onReachEnd = 88, - Grid_onScrollStart = 89, - Grid_onScrollStop = 90, - Grid_onScrollFrameBegin = 91, - GridItem_onSelect = 92, - GridItem__onChangeEvent_selected = 93, - GridRow_onBreakpointChange = 94, - Image_onComplete = 95, - Image_onError = 96, - Image_onFinish = 97, - ImageAnimator_onStart = 98, - ImageAnimator_onPause = 99, - ImageAnimator_onRepeat = 100, - ImageAnimator_onCancel = 101, - ImageAnimator_onFinish = 102, - ImageSpan_onComplete = 103, - ImageSpan_onError = 104, - List_onScroll = 105, - List_onScrollIndex = 106, - List_onScrollVisibleContentChange = 107, - List_onReachStart = 108, - List_onReachEnd = 109, - List_onScrollStart = 110, - List_onScrollStop = 111, - List_onItemDelete = 112, - List_onItemMove = 113, - List_onItemDragStart = 114, - List_onItemDragEnter = 115, - List_onItemDragMove = 116, - List_onItemDragLeave = 117, - List_onItemDrop = 118, - List_onScrollFrameBegin = 119, - ListItem_onSelect = 120, - ListItem__onChangeEvent_selected = 121, - LocationButton_onClick = 122, - Marquee_onStart = 123, - Marquee_onBounce = 124, - Marquee_onFinish = 125, - MenuItem_onChange = 126, - MenuItem__onChangeEvent_selected = 127, - NavDestination_onShown = 128, - NavDestination_onHidden = 129, - NavDestination_onBackPressed = 130, - NavDestination_onReady = 131, - NavDestination_onWillAppear = 132, - NavDestination_onWillDisappear = 133, - NavDestination_onWillShow = 134, - NavDestination_onWillHide = 135, - NavRouter_onStateChange = 136, - Panel_onChange = 137, - Panel_onHeightChange = 138, - Panel__onChangeEvent_mode = 139, - PasteButton_onClick = 140, - PatternLock_onPatternComplete = 141, - PatternLock_onDotConnect = 142, - PluginComponent_onComplete = 143, - PluginComponent_onError = 144, - Radio_onChange = 145, - Radio__onChangeEvent_checked = 146, - Rating_onChange = 147, - Rating__onChangeEvent_rating = 148, - Refresh_onStateChange = 149, - Refresh_onRefreshing = 150, - Refresh_onOffsetChange = 151, - Refresh__onChangeEvent_refreshing = 152, - RichEditor_onReady = 153, - RichEditor_onSelect = 154, - RichEditor_onSelectionChange = 155, - RichEditor_aboutToIMEInput = 156, - RichEditor_onIMEInputComplete = 157, - RichEditor_onDidIMEInput = 158, - RichEditor_aboutToDelete = 159, - RichEditor_onDeleteComplete = 160, - RichEditor_onPaste = 161, - RichEditor_onEditingChange = 162, - RichEditor_onSubmit = 163, - RichEditor_onWillChange = 164, - RichEditor_onDidChange = 165, - RichEditor_onCut = 166, - RichEditor_onCopy = 167, - RichEditor_bindSelectionMenu = 168, - RichEditor_customKeyboard = 169, - RichText_onStart = 170, - RichText_onComplete = 171, - SaveButton_onClick = 172, - Scroll_onScroll = 173, - Scroll_onDidScroll = 174, - Scroll_onScrollEdge = 175, - Scroll_onScrollStart = 176, - Scroll_onScrollEnd = 177, - Scroll_onScrollStop = 178, - Scroll_onScrollFrameBegin = 179, - Search_onEditChange = 180, - Search_onSubmit0 = 181, - Search_onSubmit1 = 182, - Search_onChange = 183, - Search_onTextSelectionChange = 184, - Search_onContentScroll = 185, - Search_onCopy = 186, - Search_onCut = 187, - Search_onPaste = 188, - Search_onWillInsert = 189, - Search_onDidInsert = 190, - Search_onWillDelete = 191, - Search_onDidDelete = 192, - Search_customKeyboard = 193, - Search__onChangeEvent_value = 194, - Select_onSelect = 195, - Select__onChangeEvent_selected = 196, - Select__onChangeEvent_value = 197, - Slider_onChange = 198, - Slider__onChangeEvent_value = 199, - Stepper_onFinish = 200, - Stepper_onSkip = 201, - Stepper_onChange = 202, - Stepper_onNext = 203, - Stepper_onPrevious = 204, - Stepper__onChangeEvent_index = 205, - Swiper_onChange = 206, - Swiper_onAnimationStart = 207, - Swiper_onAnimationEnd = 208, - Swiper_onGestureSwipe = 209, - Swiper_onContentDidScroll = 210, - Swiper__onChangeEvent_index = 211, - IndicatorComponent_onChange = 212, - Tabs_onChange = 213, - Tabs_onTabBarClick = 214, - Tabs_onAnimationStart = 215, - Tabs_onAnimationEnd = 216, - Tabs_onGestureSwipe = 217, - Tabs_customContentTransition = 218, - Tabs_onContentWillChange = 219, - Tabs__onChangeEvent_index = 220, - TabContent_onWillShow = 221, - TabContent_onWillHide = 222, - Text_onCopy = 223, - Text_onTextSelectionChange = 224, - Text_bindSelectionMenu = 225, - TextArea_onSubmit0 = 226, - TextArea_onSubmit1 = 227, - TextArea_onChange = 228, - TextArea_onTextSelectionChange = 229, - TextArea_onContentScroll = 230, - TextArea_onEditChange = 231, - TextArea_onCopy = 232, - TextArea_onCut = 233, - TextArea_onPaste = 234, - TextArea_onWillInsert = 235, - TextArea_onDidInsert = 236, - TextArea_onWillDelete = 237, - TextArea_onDidDelete = 238, - TextArea_customKeyboard = 239, - TextArea__onChangeEvent_text = 240, - TextClock_onDateChange = 241, - TextInput_onEditChanged = 242, - TextInput_onEditChange = 243, - TextInput_onSubmit = 244, - TextInput_onChange = 245, - TextInput_onTextSelectionChange = 246, - TextInput_onContentScroll = 247, - TextInput_onCopy = 248, - TextInput_onCut = 249, - TextInput_onPaste = 250, - TextInput_showUnit = 251, - TextInput_onSecurityStateChange = 252, - TextInput_onWillInsert = 253, - TextInput_onDidInsert = 254, - TextInput_onWillDelete = 255, - TextInput_onDidDelete = 256, - TextInput_customKeyboard = 257, - TextInput__onChangeEvent_text = 258, - TextPicker_onAccept = 259, - TextPicker_onCancel = 260, - TextPicker_onChange = 261, - TextPicker__onChangeEvent_selected = 262, - TextPicker__onChangeEvent_value = 263, - TextTimer_onTimer = 264, - TimePicker_onChange = 265, - TimePicker__onChangeEvent_selected = 266, - Toggle_onChange = 267, - Toggle__onChangeEvent_isOn = 268, - Video_onStart = 269, - Video_onPause = 270, - Video_onFinish = 271, - Video_onFullscreenChange = 272, - Video_onPrepared = 273, - Video_onSeeking = 274, - Video_onSeeked = 275, - Video_onUpdate = 276, - Video_onError = 277, - Video_onStop = 278, - Web_onPageEnd = 279, - Web_onPageBegin = 280, - Web_onProgressChange = 281, - Web_onTitleReceive = 282, - Web_onGeolocationHide = 283, - Web_onGeolocationShow = 284, - Web_onRequestSelected = 285, - Web_onAlert = 286, - Web_onBeforeUnload = 287, - Web_onConfirm = 288, - Web_onPrompt = 289, - Web_onConsole = 290, - Web_onErrorReceive = 291, - Web_onHttpErrorReceive = 292, - Web_onDownloadStart = 293, - Web_onRefreshAccessedHistory = 294, - Web_onUrlLoadIntercept = 295, - Web_onSslErrorReceive = 296, - Web_onRenderExited0 = 297, - Web_onRenderExited1 = 298, - Web_onShowFileSelector = 299, - Web_onFileSelectorShow = 300, - Web_onResourceLoad = 301, - Web_onFullScreenExit = 302, - Web_onFullScreenEnter = 303, - Web_onScaleChange = 304, - Web_onHttpAuthRequest = 305, - Web_onInterceptRequest = 306, - Web_onPermissionRequest = 307, - Web_onScreenCaptureRequest = 308, - Web_onContextMenuShow = 309, - Web_onContextMenuHide = 310, - Web_onSearchResultReceive = 311, - Web_onScroll = 312, - Web_onSslErrorEventReceive = 313, - Web_onSslErrorEvent = 314, - Web_onClientAuthenticationRequest = 315, - Web_onWindowNew = 316, - Web_onWindowExit = 317, - Web_onInterceptKeyEvent = 318, - Web_onTouchIconUrlReceived = 319, - Web_onFaviconReceived = 320, - Web_onPageVisible = 321, - Web_onDataResubmitted = 322, - Web_onAudioStateChanged = 323, - Web_onFirstContentfulPaint = 324, - Web_onFirstMeaningfulPaint = 325, - Web_onLargestContentfulPaint = 326, - Web_onLoadIntercept = 327, - Web_onControllerAttached = 328, - Web_onOverScroll = 329, - Web_onSafeBrowsingCheckResult = 330, - Web_onNavigationEntryCommitted = 331, - Web_onIntelligentTrackingPreventionResult = 332, - Web_onNativeEmbedLifecycleChange = 333, - Web_onNativeEmbedVisibilityChange = 334, - Web_onNativeEmbedGestureEvent = 335, - Web_onOverrideUrlLoading = 336, - Web_onRenderProcessNotResponding = 337, - Web_onRenderProcessResponding = 338, - Web_onViewportFitChanged = 339, - Web_onInterceptKeyboardAttach = 340, - Web_onAdsBlocked = 341, - Web_bindSelectionMenu = 342, - XComponent_onLoad = 343, - XComponent_onDestroy = 344, - SideBarContainer_onChange = 345, - SideBarContainer__onChangeEvent_showSideBar = 346, - WaterFlow_onReachStart = 347, - WaterFlow_onReachEnd = 348, - WaterFlow_onScrollFrameBegin = 349, - WaterFlow_onScrollIndex = 350, - UIExtensionComponent_onRemoteReady = 351, - UIExtensionComponent_onResult = 352, - UIExtensionComponent_onRelease = 353, - UIExtensionComponent_onError = 354, - UIExtensionComponent_onTerminated = 355, -} - -interface PeerEvent { - readonly kind: PeerEventKind - readonly nodeId: number -} - -export interface AbilityComponent_onConnect_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface AbilityComponent_onDisconnect_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface AlphabetIndexer_onSelected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface AlphabetIndexer_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface AlphabetIndexer_onRequestPopupData_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface AlphabetIndexer_onPopupSelect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface AlphabetIndexer__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Animator_onStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Animator_onPause_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Animator_onRepeat_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Animator_onCancel_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Animator_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Animator_onFrame_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Calendar_onSelectChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: CalendarSelectedDate -} -export interface Calendar_onRequestData_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: CalendarRequestedData -} -export interface CalendarPicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: Date -} -export interface Canvas_onReady_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Checkbox_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: boolean -} -export interface Checkbox__onChangeEvent_select_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface CheckboxGroup_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: CheckboxGroupResult -} -export interface CheckboxGroup__onChangeEvent_selectAll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface CommonMethod_onChildTouchTest_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: Array -} -export interface CommonMethod_onClick0_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ClickEvent -} -export interface CommonMethod_onClick1_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ClickEvent -} -export interface CommonMethod_onHover_event extends PeerEvent { - readonly kind: PeerEventKind - readonly isHover: boolean - readonly event: HoverEvent -} -export interface CommonMethod_onAccessibilityHover_event extends PeerEvent { - readonly kind: PeerEventKind - readonly isHover: boolean - readonly event: AccessibilityHoverEvent -} -export interface CommonMethod_onMouse_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: MouseEvent -} -export interface CommonMethod_onTouch_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: TouchEvent -} -export interface CommonMethod_onKeyEvent_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: KeyEvent -} -export interface CommonMethod_onKeyPreIme_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: KeyEvent -} -export interface CommonMethod_onFocus_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onBlur_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onAppear_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onDisAppear_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onAttach_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onDetach_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onAreaChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly oldValue: Area - readonly newValue: Area -} -export interface CommonMethod_onDragStart_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragEnter_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragMove_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragLeave_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDrop_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragEnd_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onPreDrag_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: PreDragStatus -} -export interface CommonMethod_accessibilityVirtualNode_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onGestureJudgeBegin_event extends PeerEvent { - readonly kind: PeerEventKind - readonly gestureInfo: GestureInfo - readonly event: BaseGestureEvent -} -export interface CommonMethod_onGestureRecognizerJudgeBegin0_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: BaseGestureEvent - readonly current: GestureRecognizer - readonly recognizers: Array -} -export interface CommonMethod_onGestureRecognizerJudgeBegin1_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: BaseGestureEvent - readonly current: GestureRecognizer - readonly recognizers: Array -} -export interface CommonMethod_shouldBuiltInRecognizerParallelWith_event extends PeerEvent { - readonly kind: PeerEventKind - readonly current: GestureRecognizer - readonly others: Array -} -export interface CommonMethod_onTouchIntercept_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: TouchEvent -} -export interface CommonMethod_onSizeChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly oldValue: SizeOptions - readonly newValue: SizeOptions -} -export interface CommonMethod_background_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_bindContextMenu0_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_bindContextMenu1_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_bindContentCover0_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_bindContentCover1_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_bindSheet_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface CommonMethod_onVisibleAreaChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly isExpanding: boolean - readonly currentRatio: number -} -export interface ScrollableCommonMethod_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface ScrollableCommonMethod_onDidScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly xOffset: number - readonly yOffset: number - readonly scrollState: ScrollState -} -export interface ScrollableCommonMethod_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ScrollableCommonMethod_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ScrollableCommonMethod_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ScrollableCommonMethod_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Counter_onInc_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Counter_onDec_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface DatePicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: DatePickerResult -} -export interface DatePicker_onDateChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: Date -} -export interface DatePicker__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: Date -} -export interface EmbeddedComponent_onTerminated_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: TerminationInfo -} -export interface EmbeddedComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind - readonly err: BusinessError -} -export interface FolderStack_onFolderStateChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: OnFoldStatusChangeInfo -} -export interface FolderStack_onHoverStatusChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly param: HoverEventParam -} -export interface FormComponent_onAcquired_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: FormCallbackInfo -} -export interface FormComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind - readonly info: Literal_Number_errcode_String_msg -} -export interface FormComponent_onRouter_event extends PeerEvent { - readonly kind: PeerEventKind - readonly info: object -} -export interface FormComponent_onUninstall_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: FormCallbackInfo -} -export interface FormComponent_onLoad_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Gauge_description_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Grid_onScrollBarUpdate_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly offset: number -} -export interface Grid_onScrollIndex_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Grid_onItemDragStart_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface Grid_onItemDragEnter_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo -} -export interface Grid_onItemDragMove_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number -} -export interface Grid_onItemDragLeave_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface Grid_onItemDrop_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number - readonly isSuccess: boolean -} -export interface Grid_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Grid_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Grid_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Grid_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Grid_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Grid_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind - readonly offset: number - readonly state: ScrollState -} -export interface GridItem_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface GridItem__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface GridRow_onBreakpointChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface Image_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: Type_ImageAttribute_onComplete_callback_event | undefined -} -export interface Image_onError_event extends PeerEvent { - readonly kind: PeerEventKind - readonly error: ImageError -} -export interface Image_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ImageAnimator_onStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ImageAnimator_onPause_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ImageAnimator_onRepeat_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ImageAnimator_onCancel_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ImageAnimator_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface ImageSpan_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly result: ImageLoadResult -} -export interface ImageSpan_onError_event extends PeerEvent { - readonly kind: PeerEventKind - readonly error: ImageError -} -export interface List_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface List_onScrollIndex_event extends PeerEvent { - readonly kind: PeerEventKind - readonly start: number - readonly end: number - readonly center: number -} -export interface List_onScrollVisibleContentChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly start: VisibleListContentInfo - readonly end: VisibleListContentInfo -} -export interface List_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface List_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface List_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface List_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface List_onItemDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface List_onItemMove_event extends PeerEvent { - readonly kind: PeerEventKind - readonly from: number - readonly to: number -} -export interface List_onItemDragStart_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface List_onItemDragEnter_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo -} -export interface List_onItemDragMove_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number -} -export interface List_onItemDragLeave_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface List_onItemDrop_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number - readonly isSuccess: boolean -} -export interface List_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind - readonly offset: number - readonly state: ScrollState -} -export interface ListItem_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface ListItem__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface LocationButton_onClick_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ClickEvent - readonly result: LocationButtonOnClickResult -} -export interface Marquee_onStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Marquee_onBounce_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Marquee_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface MenuItem_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface MenuItem__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface NavDestination_onShown_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onHidden_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onBackPressed_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onReady_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: NavDestinationContext -} -export interface NavDestination_onWillAppear_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onWillDisappear_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onWillShow_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onWillHide_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavRouter_onStateChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface Panel_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly width: number - readonly height: number - readonly mode: PanelMode -} -export interface Panel_onHeightChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Panel__onChangeEvent_mode_event extends PeerEvent { - readonly kind: PeerEventKind - readonly mode: PanelMode -} -export interface PasteButton_onClick_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ClickEvent - readonly result: PasteButtonOnClickResult -} -export interface PatternLock_onPatternComplete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly input: Array -} -export interface PatternLock_onDotConnect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface PluginComponent_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface PluginComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind - readonly info: PluginErrorData -} -export interface Radio_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface Radio__onChangeEvent_checked_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface Rating_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Rating__onChangeEvent_rating_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Refresh_onStateChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly state: RefreshStatus -} -export interface Refresh_onRefreshing_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Refresh_onOffsetChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Refresh__onChangeEvent_refreshing_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface RichEditor_onReady_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface RichEditor_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: RichEditorSelection -} -export interface RichEditor_onSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: RichEditorRange -} -export interface RichEditor_aboutToIMEInput_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: RichEditorInsertValue -} -export interface RichEditor_onIMEInputComplete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: RichEditorTextSpanResult -} -export interface RichEditor_onDidIMEInput_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: TextRange -} -export interface RichEditor_aboutToDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: RichEditorDeleteValue -} -export interface RichEditor_onDeleteComplete_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface RichEditor_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: PasteEvent | undefined -} -export interface RichEditor_onEditingChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface RichEditor_onSubmit_event extends PeerEvent { - readonly kind: PeerEventKind - readonly enterKey: EnterKeyType - readonly event: SubmitEvent -} -export interface RichEditor_onWillChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: RichEditorChangeValue -} -export interface RichEditor_onDidChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly rangeBefore: TextRange - readonly rangeAfter: TextRange -} -export interface RichEditor_onCut_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: CutEvent -} -export interface RichEditor_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: CopyEvent -} -export interface RichEditor_bindSelectionMenu_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface RichEditor_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface RichText_onStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface RichText_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface SaveButton_onClick_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: ClickEvent - readonly result: SaveButtonOnClickResult -} -export interface Scroll_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Scroll_onDidScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly xOffset: number - readonly yOffset: number - readonly scrollState: ScrollState -} -export interface Scroll_onScrollEdge_event extends PeerEvent { - readonly kind: PeerEventKind - readonly side: Edge -} -export interface Scroll_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Scroll_onScrollEnd_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Scroll_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Scroll_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind - readonly offset: number - readonly state: ScrollState -} -export interface Search_onEditChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface Search_onSubmit0_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface Search_onSubmit1_event extends PeerEvent { - readonly kind: PeerEventKind - readonly searchContent: string - readonly event?: SubmitEvent | undefined -} -export interface Search_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string - readonly previewText?: PreviewText | undefined -} -export interface Search_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly selectionStart: number - readonly selectionEnd: number -} -export interface Search_onContentScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly totalOffsetX: number - readonly totalOffsetY: number -} -export interface Search_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface Search_onCut_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface Search_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind - readonly content: string - readonly event: PasteEvent -} -export interface Search_onWillInsert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: InsertValue -} -export interface Search_onDidInsert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: InsertValue -} -export interface Search_onWillDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: DeleteValue -} -export interface Search_onDidDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: DeleteValue -} -export interface Search_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Search__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface Select_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly value: string -} -export interface Select__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly selected: number | Resource -} -export interface Select__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: ResourceStr -} -export interface Slider_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: number - readonly mode: SliderChangeMode -} -export interface Slider__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Stepper_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Stepper_onSkip_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Stepper_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Stepper_onNext_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Stepper_onPrevious_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Stepper__onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Swiper_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Swiper_onAnimationStart_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly targetIndex: number - readonly extraInfo: SwiperAnimationEvent -} -export interface Swiper_onAnimationEnd_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly extraInfo: SwiperAnimationEvent -} -export interface Swiper_onGestureSwipe_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly extraInfo: SwiperAnimationEvent -} -export interface Swiper_onContentDidScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly selectedIndex: number - readonly index: number - readonly position: number - readonly mainAxisLength: number -} -export interface Swiper__onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface IndicatorComponent_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Tabs_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Tabs_onTabBarClick_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface Tabs_onAnimationStart_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly targetIndex: number - readonly extraInfo: TabsAnimationEvent -} -export interface Tabs_onAnimationEnd_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly extraInfo: TabsAnimationEvent -} -export interface Tabs_onGestureSwipe_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number - readonly extraInfo: TabsAnimationEvent -} -export interface Tabs_customContentTransition_event extends PeerEvent { - readonly kind: PeerEventKind - readonly from: number - readonly to: number -} -export interface Tabs_onContentWillChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly currentIndex: number - readonly comingIndex: number -} -export interface Tabs__onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface TabContent_onWillShow_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface TabContent_onWillHide_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Text_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface Text_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface Text_bindSelectionMenu_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface TextArea_onSubmit0_event extends PeerEvent { - readonly kind: PeerEventKind - readonly enterKey: EnterKeyType -} -export interface TextArea_onSubmit1_event extends PeerEvent { - readonly kind: PeerEventKind - readonly enterKeyType: EnterKeyType - readonly event?: SubmitEvent | undefined -} -export interface TextArea_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string - readonly previewText?: PreviewText | undefined -} -export interface TextArea_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface TextArea_onContentScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface TextArea_onEditChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface TextArea_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface TextArea_onCut_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface TextArea_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string - readonly event: PasteEvent -} -export interface TextArea_onWillInsert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: InsertValue -} -export interface TextArea_onDidInsert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: InsertValue -} -export interface TextArea_onWillDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: DeleteValue -} -export interface TextArea_onDidDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: DeleteValue -} -export interface TextArea_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface TextArea__onChangeEvent_text_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: ResourceStr -} -export interface TextClock_onDateChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface TextInput_onEditChanged_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface TextInput_onEditChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface TextInput_onSubmit_event extends PeerEvent { - readonly kind: PeerEventKind - readonly enterKey: EnterKeyType - readonly event: SubmitEvent -} -export interface TextInput_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string - readonly previewText?: PreviewText | undefined -} -export interface TextInput_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly selectionStart: number - readonly selectionEnd: number -} -export interface TextInput_onContentScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly totalOffsetX: number - readonly totalOffsetY: number -} -export interface TextInput_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface TextInput_onCut_event extends PeerEvent { - readonly kind: PeerEventKind - readonly breakpoints: string -} -export interface TextInput_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind - readonly content: string - readonly event: PasteEvent -} -export interface TextInput_showUnit_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface TextInput_onSecurityStateChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface TextInput_onWillInsert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: InsertValue -} -export interface TextInput_onDidInsert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: InsertValue -} -export interface TextInput_onWillDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: DeleteValue -} -export interface TextInput_onDidDelete_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: DeleteValue -} -export interface TextInput_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface TextInput__onChangeEvent_text_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: ResourceStr -} -export interface TextPicker_onAccept_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string - readonly index: number -} -export interface TextPicker_onCancel_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface TextPicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string | Array - readonly index: number | Array -} -export interface TextPicker__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly selected: number | Array -} -export interface TextPicker__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: string | Array -} -export interface TextTimer_onTimer_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface TimePicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly value: TimePickerResult -} -export interface TimePicker__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: Date -} -export interface Toggle_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface Toggle__onChangeEvent_isOn_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface Video_onStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Video_onPause_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Video_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Video_onFullscreenChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: FullscreenInfo -} -export interface Video_onPrepared_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: PreparedInfo -} -export interface Video_onSeeking_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: PlaybackInfo -} -export interface Video_onSeeked_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: PlaybackInfo -} -export interface Video_onUpdate_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: PlaybackInfo -} -export interface Video_onError_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Video_onStop_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onPageEnd_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnPageEndEvent -} -export interface Web_onPageBegin_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnPageBeginEvent -} -export interface Web_onProgressChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnProgressChangeEvent -} -export interface Web_onTitleReceive_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnTitleReceiveEvent -} -export interface Web_onGeolocationHide_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onGeolocationShow_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnGeolocationShowEvent -} -export interface Web_onRequestSelected_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onAlert_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnAlertEvent -} -export interface Web_onBeforeUnload_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnBeforeUnloadEvent -} -export interface Web_onConfirm_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnConfirmEvent -} -export interface Web_onPrompt_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnPromptEvent -} -export interface Web_onConsole_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnConsoleEvent -} -export interface Web_onErrorReceive_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnErrorReceiveEvent -} -export interface Web_onHttpErrorReceive_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnHttpErrorReceiveEvent -} -export interface Web_onDownloadStart_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnDownloadStartEvent -} -export interface Web_onRefreshAccessedHistory_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnRefreshAccessedHistoryEvent -} -export interface Web_onUrlLoadIntercept_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: Literal_Union_String_WebResourceRequest_data | undefined -} -export interface Web_onSslErrorReceive_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: Literal_Function_handler_Object_error | undefined -} -export interface Web_onRenderExited0_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnRenderExitedEvent -} -export interface Web_onRenderExited1_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: Literal_Object_detail | undefined -} -export interface Web_onShowFileSelector_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnShowFileSelectorEvent -} -export interface Web_onFileSelectorShow_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: Literal_Function_callback__Object_fileSelector | undefined -} -export interface Web_onResourceLoad_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnResourceLoadEvent -} -export interface Web_onFullScreenExit_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onFullScreenEnter_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: FullScreenEnterEvent -} -export interface Web_onScaleChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnScaleChangeEvent -} -export interface Web_onHttpAuthRequest_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnHttpAuthRequestEvent -} -export interface Web_onInterceptRequest_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnInterceptRequestEvent -} -export interface Web_onPermissionRequest_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnPermissionRequestEvent -} -export interface Web_onScreenCaptureRequest_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnScreenCaptureRequestEvent -} -export interface Web_onContextMenuShow_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnContextMenuShowEvent -} -export interface Web_onContextMenuHide_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onSearchResultReceive_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnSearchResultReceiveEvent -} -export interface Web_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnScrollEvent -} -export interface Web_onSslErrorEventReceive_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnSslErrorEventReceiveEvent -} -export interface Web_onSslErrorEvent_event extends PeerEvent { - readonly kind: PeerEventKind - readonly sslErrorEvent: SslErrorEvent -} -export interface Web_onClientAuthenticationRequest_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnClientAuthenticationEvent -} -export interface Web_onWindowNew_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnWindowNewEvent -} -export interface Web_onWindowExit_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onInterceptKeyEvent_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: KeyEvent -} -export interface Web_onTouchIconUrlReceived_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnTouchIconUrlReceivedEvent -} -export interface Web_onFaviconReceived_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnFaviconReceivedEvent -} -export interface Web_onPageVisible_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnPageVisibleEvent -} -export interface Web_onDataResubmitted_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnDataResubmittedEvent -} -export interface Web_onAudioStateChanged_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnAudioStateChangedEvent -} -export interface Web_onFirstContentfulPaint_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnFirstContentfulPaintEvent -} -export interface Web_onFirstMeaningfulPaint_event extends PeerEvent { - readonly kind: PeerEventKind - readonly firstMeaningfulPaint: FirstMeaningfulPaint -} -export interface Web_onLargestContentfulPaint_event extends PeerEvent { - readonly kind: PeerEventKind - readonly largestContentfulPaint: LargestContentfulPaint -} -export interface Web_onLoadIntercept_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnLoadInterceptEvent -} -export interface Web_onControllerAttached_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onOverScroll_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: OnOverScrollEvent -} -export interface Web_onSafeBrowsingCheckResult_event extends PeerEvent { - readonly kind: PeerEventKind - readonly threatType: ThreatType -} -export interface Web_onNavigationEntryCommitted_event extends PeerEvent { - readonly kind: PeerEventKind - readonly loadCommittedDetails: LoadCommittedDetails -} -export interface Web_onIntelligentTrackingPreventionResult_event extends PeerEvent { - readonly kind: PeerEventKind - readonly details: IntelligentTrackingPreventionDetails -} -export interface Web_onNativeEmbedLifecycleChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: NativeEmbedDataInfo -} -export interface Web_onNativeEmbedVisibilityChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo -} -export interface Web_onNativeEmbedGestureEvent_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event: NativeEmbedTouchInfo -} -export interface Web_onOverrideUrlLoading_event extends PeerEvent { - readonly kind: PeerEventKind - readonly webResourceRequest: WebResourceRequest -} -export interface Web_onRenderProcessNotResponding_event extends PeerEvent { - readonly kind: PeerEventKind - readonly data: RenderProcessNotRespondingData -} -export interface Web_onRenderProcessResponding_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface Web_onViewportFitChanged_event extends PeerEvent { - readonly kind: PeerEventKind - readonly viewportFit: ViewportFit -} -export interface Web_onInterceptKeyboardAttach_event extends PeerEvent { - readonly kind: PeerEventKind - readonly keyboardCallbackInfo: WebKeyboardCallbackInfo -} -export interface Web_onAdsBlocked_event extends PeerEvent { - readonly kind: PeerEventKind - readonly details: AdsBlockedDetails -} -export interface Web_bindSelectionMenu_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface XComponent_onLoad_event extends PeerEvent { - readonly kind: PeerEventKind - readonly event?: Object | undefined -} -export interface XComponent_onDestroy_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface SideBarContainer_onChange_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface SideBarContainer__onChangeEvent_showSideBar_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: boolean -} -export interface WaterFlow_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface WaterFlow_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface WaterFlow_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind - readonly offset: number - readonly state: ScrollState -} -export interface WaterFlow_onScrollIndex_event extends PeerEvent { - readonly kind: PeerEventKind - readonly first: number - readonly last: number -} -export interface UIExtensionComponent_onRemoteReady_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: UIExtensionProxy -} -export interface UIExtensionComponent_onResult_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: Literal_Number_code_Want_want -} -export interface UIExtensionComponent_onRelease_event extends PeerEvent { - readonly kind: PeerEventKind - readonly index: number -} -export interface UIExtensionComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind - readonly err: BusinessError -} -export interface UIExtensionComponent_onTerminated_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: TerminationInfo -} -export function getEventNameByKind(kind: PeerEventKind): string { - switch (kind) { - case PeerEventKind.AbilityComponent_onConnect: return "AbilityComponent_onConnect" - case PeerEventKind.AbilityComponent_onDisconnect: return "AbilityComponent_onDisconnect" - case PeerEventKind.AlphabetIndexer_onSelected: return "AlphabetIndexer_onSelected" - case PeerEventKind.AlphabetIndexer_onSelect: return "AlphabetIndexer_onSelect" - case PeerEventKind.AlphabetIndexer_onRequestPopupData: return "AlphabetIndexer_onRequestPopupData" - case PeerEventKind.AlphabetIndexer_onPopupSelect: return "AlphabetIndexer_onPopupSelect" - case PeerEventKind.AlphabetIndexer__onChangeEvent_selected: return "AlphabetIndexer__onChangeEvent_selected" - case PeerEventKind.Animator_onStart: return "Animator_onStart" - case PeerEventKind.Animator_onPause: return "Animator_onPause" - case PeerEventKind.Animator_onRepeat: return "Animator_onRepeat" - case PeerEventKind.Animator_onCancel: return "Animator_onCancel" - case PeerEventKind.Animator_onFinish: return "Animator_onFinish" - case PeerEventKind.Animator_onFrame: return "Animator_onFrame" - case PeerEventKind.Calendar_onSelectChange: return "Calendar_onSelectChange" - case PeerEventKind.Calendar_onRequestData: return "Calendar_onRequestData" - case PeerEventKind.CalendarPicker_onChange: return "CalendarPicker_onChange" - case PeerEventKind.Canvas_onReady: return "Canvas_onReady" - case PeerEventKind.Checkbox_onChange: return "Checkbox_onChange" - case PeerEventKind.Checkbox__onChangeEvent_select: return "Checkbox__onChangeEvent_select" - case PeerEventKind.CheckboxGroup_onChange: return "CheckboxGroup_onChange" - case PeerEventKind.CheckboxGroup__onChangeEvent_selectAll: return "CheckboxGroup__onChangeEvent_selectAll" - case PeerEventKind.CommonMethod_onChildTouchTest: return "CommonMethod_onChildTouchTest" - case PeerEventKind.CommonMethod_onClick0: return "CommonMethod_onClick0" - case PeerEventKind.CommonMethod_onClick1: return "CommonMethod_onClick1" - case PeerEventKind.CommonMethod_onHover: return "CommonMethod_onHover" - case PeerEventKind.CommonMethod_onAccessibilityHover: return "CommonMethod_onAccessibilityHover" - case PeerEventKind.CommonMethod_onMouse: return "CommonMethod_onMouse" - case PeerEventKind.CommonMethod_onTouch: return "CommonMethod_onTouch" - case PeerEventKind.CommonMethod_onKeyEvent: return "CommonMethod_onKeyEvent" - case PeerEventKind.CommonMethod_onKeyPreIme: return "CommonMethod_onKeyPreIme" - case PeerEventKind.CommonMethod_onFocus: return "CommonMethod_onFocus" - case PeerEventKind.CommonMethod_onBlur: return "CommonMethod_onBlur" - case PeerEventKind.CommonMethod_onAppear: return "CommonMethod_onAppear" - case PeerEventKind.CommonMethod_onDisAppear: return "CommonMethod_onDisAppear" - case PeerEventKind.CommonMethod_onAttach: return "CommonMethod_onAttach" - case PeerEventKind.CommonMethod_onDetach: return "CommonMethod_onDetach" - case PeerEventKind.CommonMethod_onAreaChange: return "CommonMethod_onAreaChange" - case PeerEventKind.CommonMethod_onDragStart: return "CommonMethod_onDragStart" - case PeerEventKind.CommonMethod_onDragEnter: return "CommonMethod_onDragEnter" - case PeerEventKind.CommonMethod_onDragMove: return "CommonMethod_onDragMove" - case PeerEventKind.CommonMethod_onDragLeave: return "CommonMethod_onDragLeave" - case PeerEventKind.CommonMethod_onDrop: return "CommonMethod_onDrop" - case PeerEventKind.CommonMethod_onDragEnd: return "CommonMethod_onDragEnd" - case PeerEventKind.CommonMethod_onPreDrag: return "CommonMethod_onPreDrag" - case PeerEventKind.CommonMethod_accessibilityVirtualNode: return "CommonMethod_accessibilityVirtualNode" - case PeerEventKind.CommonMethod_onGestureJudgeBegin: return "CommonMethod_onGestureJudgeBegin" - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin0: return "CommonMethod_onGestureRecognizerJudgeBegin0" - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin1: return "CommonMethod_onGestureRecognizerJudgeBegin1" - case PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith: return "CommonMethod_shouldBuiltInRecognizerParallelWith" - case PeerEventKind.CommonMethod_onTouchIntercept: return "CommonMethod_onTouchIntercept" - case PeerEventKind.CommonMethod_onSizeChange: return "CommonMethod_onSizeChange" - case PeerEventKind.CommonMethod_background: return "CommonMethod_background" - case PeerEventKind.CommonMethod_bindContextMenu0: return "CommonMethod_bindContextMenu0" - case PeerEventKind.CommonMethod_bindContextMenu1: return "CommonMethod_bindContextMenu1" - case PeerEventKind.CommonMethod_bindContentCover0: return "CommonMethod_bindContentCover0" - case PeerEventKind.CommonMethod_bindContentCover1: return "CommonMethod_bindContentCover1" - case PeerEventKind.CommonMethod_bindSheet: return "CommonMethod_bindSheet" - case PeerEventKind.CommonMethod_onVisibleAreaChange: return "CommonMethod_onVisibleAreaChange" - case PeerEventKind.ScrollableCommonMethod_onScroll: return "ScrollableCommonMethod_onScroll" - case PeerEventKind.ScrollableCommonMethod_onDidScroll: return "ScrollableCommonMethod_onDidScroll" - case PeerEventKind.ScrollableCommonMethod_onReachStart: return "ScrollableCommonMethod_onReachStart" - case PeerEventKind.ScrollableCommonMethod_onReachEnd: return "ScrollableCommonMethod_onReachEnd" - case PeerEventKind.ScrollableCommonMethod_onScrollStart: return "ScrollableCommonMethod_onScrollStart" - case PeerEventKind.ScrollableCommonMethod_onScrollStop: return "ScrollableCommonMethod_onScrollStop" - case PeerEventKind.Counter_onInc: return "Counter_onInc" - case PeerEventKind.Counter_onDec: return "Counter_onDec" - case PeerEventKind.DatePicker_onChange: return "DatePicker_onChange" - case PeerEventKind.DatePicker_onDateChange: return "DatePicker_onDateChange" - case PeerEventKind.DatePicker__onChangeEvent_selected: return "DatePicker__onChangeEvent_selected" - case PeerEventKind.EmbeddedComponent_onTerminated: return "EmbeddedComponent_onTerminated" - case PeerEventKind.EmbeddedComponent_onError: return "EmbeddedComponent_onError" - case PeerEventKind.FolderStack_onFolderStateChange: return "FolderStack_onFolderStateChange" - case PeerEventKind.FolderStack_onHoverStatusChange: return "FolderStack_onHoverStatusChange" - case PeerEventKind.FormComponent_onAcquired: return "FormComponent_onAcquired" - case PeerEventKind.FormComponent_onError: return "FormComponent_onError" - case PeerEventKind.FormComponent_onRouter: return "FormComponent_onRouter" - case PeerEventKind.FormComponent_onUninstall: return "FormComponent_onUninstall" - case PeerEventKind.FormComponent_onLoad: return "FormComponent_onLoad" - case PeerEventKind.Gauge_description: return "Gauge_description" - case PeerEventKind.Grid_onScrollBarUpdate: return "Grid_onScrollBarUpdate" - case PeerEventKind.Grid_onScrollIndex: return "Grid_onScrollIndex" - case PeerEventKind.Grid_onItemDragStart: return "Grid_onItemDragStart" - case PeerEventKind.Grid_onItemDragEnter: return "Grid_onItemDragEnter" - case PeerEventKind.Grid_onItemDragMove: return "Grid_onItemDragMove" - case PeerEventKind.Grid_onItemDragLeave: return "Grid_onItemDragLeave" - case PeerEventKind.Grid_onItemDrop: return "Grid_onItemDrop" - case PeerEventKind.Grid_onScroll: return "Grid_onScroll" - case PeerEventKind.Grid_onReachStart: return "Grid_onReachStart" - case PeerEventKind.Grid_onReachEnd: return "Grid_onReachEnd" - case PeerEventKind.Grid_onScrollStart: return "Grid_onScrollStart" - case PeerEventKind.Grid_onScrollStop: return "Grid_onScrollStop" - case PeerEventKind.Grid_onScrollFrameBegin: return "Grid_onScrollFrameBegin" - case PeerEventKind.GridItem_onSelect: return "GridItem_onSelect" - case PeerEventKind.GridItem__onChangeEvent_selected: return "GridItem__onChangeEvent_selected" - case PeerEventKind.GridRow_onBreakpointChange: return "GridRow_onBreakpointChange" - case PeerEventKind.Image_onComplete: return "Image_onComplete" - case PeerEventKind.Image_onError: return "Image_onError" - case PeerEventKind.Image_onFinish: return "Image_onFinish" - case PeerEventKind.ImageAnimator_onStart: return "ImageAnimator_onStart" - case PeerEventKind.ImageAnimator_onPause: return "ImageAnimator_onPause" - case PeerEventKind.ImageAnimator_onRepeat: return "ImageAnimator_onRepeat" - case PeerEventKind.ImageAnimator_onCancel: return "ImageAnimator_onCancel" - case PeerEventKind.ImageAnimator_onFinish: return "ImageAnimator_onFinish" - case PeerEventKind.ImageSpan_onComplete: return "ImageSpan_onComplete" - case PeerEventKind.ImageSpan_onError: return "ImageSpan_onError" - case PeerEventKind.List_onScroll: return "List_onScroll" - case PeerEventKind.List_onScrollIndex: return "List_onScrollIndex" - case PeerEventKind.List_onScrollVisibleContentChange: return "List_onScrollVisibleContentChange" - case PeerEventKind.List_onReachStart: return "List_onReachStart" - case PeerEventKind.List_onReachEnd: return "List_onReachEnd" - case PeerEventKind.List_onScrollStart: return "List_onScrollStart" - case PeerEventKind.List_onScrollStop: return "List_onScrollStop" - case PeerEventKind.List_onItemDelete: return "List_onItemDelete" - case PeerEventKind.List_onItemMove: return "List_onItemMove" - case PeerEventKind.List_onItemDragStart: return "List_onItemDragStart" - case PeerEventKind.List_onItemDragEnter: return "List_onItemDragEnter" - case PeerEventKind.List_onItemDragMove: return "List_onItemDragMove" - case PeerEventKind.List_onItemDragLeave: return "List_onItemDragLeave" - case PeerEventKind.List_onItemDrop: return "List_onItemDrop" - case PeerEventKind.List_onScrollFrameBegin: return "List_onScrollFrameBegin" - case PeerEventKind.ListItem_onSelect: return "ListItem_onSelect" - case PeerEventKind.ListItem__onChangeEvent_selected: return "ListItem__onChangeEvent_selected" - case PeerEventKind.LocationButton_onClick: return "LocationButton_onClick" - case PeerEventKind.Marquee_onStart: return "Marquee_onStart" - case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" - case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" - case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" - case PeerEventKind.MenuItem__onChangeEvent_selected: return "MenuItem__onChangeEvent_selected" - case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" - case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" - case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" - case PeerEventKind.NavDestination_onReady: return "NavDestination_onReady" - case PeerEventKind.NavDestination_onWillAppear: return "NavDestination_onWillAppear" - case PeerEventKind.NavDestination_onWillDisappear: return "NavDestination_onWillDisappear" - case PeerEventKind.NavDestination_onWillShow: return "NavDestination_onWillShow" - case PeerEventKind.NavDestination_onWillHide: return "NavDestination_onWillHide" - case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" - case PeerEventKind.Panel_onChange: return "Panel_onChange" - case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" - case PeerEventKind.Panel__onChangeEvent_mode: return "Panel__onChangeEvent_mode" - case PeerEventKind.PasteButton_onClick: return "PasteButton_onClick" - case PeerEventKind.PatternLock_onPatternComplete: return "PatternLock_onPatternComplete" - case PeerEventKind.PatternLock_onDotConnect: return "PatternLock_onDotConnect" - case PeerEventKind.PluginComponent_onComplete: return "PluginComponent_onComplete" - case PeerEventKind.PluginComponent_onError: return "PluginComponent_onError" - case PeerEventKind.Radio_onChange: return "Radio_onChange" - case PeerEventKind.Radio__onChangeEvent_checked: return "Radio__onChangeEvent_checked" - case PeerEventKind.Rating_onChange: return "Rating_onChange" - case PeerEventKind.Rating__onChangeEvent_rating: return "Rating__onChangeEvent_rating" - case PeerEventKind.Refresh_onStateChange: return "Refresh_onStateChange" - case PeerEventKind.Refresh_onRefreshing: return "Refresh_onRefreshing" - case PeerEventKind.Refresh_onOffsetChange: return "Refresh_onOffsetChange" - case PeerEventKind.Refresh__onChangeEvent_refreshing: return "Refresh__onChangeEvent_refreshing" - case PeerEventKind.RichEditor_onReady: return "RichEditor_onReady" - case PeerEventKind.RichEditor_onSelect: return "RichEditor_onSelect" - case PeerEventKind.RichEditor_onSelectionChange: return "RichEditor_onSelectionChange" - case PeerEventKind.RichEditor_aboutToIMEInput: return "RichEditor_aboutToIMEInput" - case PeerEventKind.RichEditor_onIMEInputComplete: return "RichEditor_onIMEInputComplete" - case PeerEventKind.RichEditor_onDidIMEInput: return "RichEditor_onDidIMEInput" - case PeerEventKind.RichEditor_aboutToDelete: return "RichEditor_aboutToDelete" - case PeerEventKind.RichEditor_onDeleteComplete: return "RichEditor_onDeleteComplete" - case PeerEventKind.RichEditor_onPaste: return "RichEditor_onPaste" - case PeerEventKind.RichEditor_onEditingChange: return "RichEditor_onEditingChange" - case PeerEventKind.RichEditor_onSubmit: return "RichEditor_onSubmit" - case PeerEventKind.RichEditor_onWillChange: return "RichEditor_onWillChange" - case PeerEventKind.RichEditor_onDidChange: return "RichEditor_onDidChange" - case PeerEventKind.RichEditor_onCut: return "RichEditor_onCut" - case PeerEventKind.RichEditor_onCopy: return "RichEditor_onCopy" - case PeerEventKind.RichEditor_bindSelectionMenu: return "RichEditor_bindSelectionMenu" - case PeerEventKind.RichEditor_customKeyboard: return "RichEditor_customKeyboard" - case PeerEventKind.RichText_onStart: return "RichText_onStart" - case PeerEventKind.RichText_onComplete: return "RichText_onComplete" - case PeerEventKind.SaveButton_onClick: return "SaveButton_onClick" - case PeerEventKind.Scroll_onScroll: return "Scroll_onScroll" - case PeerEventKind.Scroll_onDidScroll: return "Scroll_onDidScroll" - case PeerEventKind.Scroll_onScrollEdge: return "Scroll_onScrollEdge" - case PeerEventKind.Scroll_onScrollStart: return "Scroll_onScrollStart" - case PeerEventKind.Scroll_onScrollEnd: return "Scroll_onScrollEnd" - case PeerEventKind.Scroll_onScrollStop: return "Scroll_onScrollStop" - case PeerEventKind.Scroll_onScrollFrameBegin: return "Scroll_onScrollFrameBegin" - case PeerEventKind.Search_onEditChange: return "Search_onEditChange" - case PeerEventKind.Search_onSubmit0: return "Search_onSubmit0" - case PeerEventKind.Search_onSubmit1: return "Search_onSubmit1" - case PeerEventKind.Search_onChange: return "Search_onChange" - case PeerEventKind.Search_onTextSelectionChange: return "Search_onTextSelectionChange" - case PeerEventKind.Search_onContentScroll: return "Search_onContentScroll" - case PeerEventKind.Search_onCopy: return "Search_onCopy" - case PeerEventKind.Search_onCut: return "Search_onCut" - case PeerEventKind.Search_onPaste: return "Search_onPaste" - case PeerEventKind.Search_onWillInsert: return "Search_onWillInsert" - case PeerEventKind.Search_onDidInsert: return "Search_onDidInsert" - case PeerEventKind.Search_onWillDelete: return "Search_onWillDelete" - case PeerEventKind.Search_onDidDelete: return "Search_onDidDelete" - case PeerEventKind.Search_customKeyboard: return "Search_customKeyboard" - case PeerEventKind.Search__onChangeEvent_value: return "Search__onChangeEvent_value" - case PeerEventKind.Select_onSelect: return "Select_onSelect" - case PeerEventKind.Select__onChangeEvent_selected: return "Select__onChangeEvent_selected" - case PeerEventKind.Select__onChangeEvent_value: return "Select__onChangeEvent_value" - case PeerEventKind.Slider_onChange: return "Slider_onChange" - case PeerEventKind.Slider__onChangeEvent_value: return "Slider__onChangeEvent_value" - case PeerEventKind.Stepper_onFinish: return "Stepper_onFinish" - case PeerEventKind.Stepper_onSkip: return "Stepper_onSkip" - case PeerEventKind.Stepper_onChange: return "Stepper_onChange" - case PeerEventKind.Stepper_onNext: return "Stepper_onNext" - case PeerEventKind.Stepper_onPrevious: return "Stepper_onPrevious" - case PeerEventKind.Stepper__onChangeEvent_index: return "Stepper__onChangeEvent_index" - case PeerEventKind.Swiper_onChange: return "Swiper_onChange" - case PeerEventKind.Swiper_onAnimationStart: return "Swiper_onAnimationStart" - case PeerEventKind.Swiper_onAnimationEnd: return "Swiper_onAnimationEnd" - case PeerEventKind.Swiper_onGestureSwipe: return "Swiper_onGestureSwipe" - case PeerEventKind.Swiper_onContentDidScroll: return "Swiper_onContentDidScroll" - case PeerEventKind.Swiper__onChangeEvent_index: return "Swiper__onChangeEvent_index" - case PeerEventKind.IndicatorComponent_onChange: return "IndicatorComponent_onChange" - case PeerEventKind.Tabs_onChange: return "Tabs_onChange" - case PeerEventKind.Tabs_onTabBarClick: return "Tabs_onTabBarClick" - case PeerEventKind.Tabs_onAnimationStart: return "Tabs_onAnimationStart" - case PeerEventKind.Tabs_onAnimationEnd: return "Tabs_onAnimationEnd" - case PeerEventKind.Tabs_onGestureSwipe: return "Tabs_onGestureSwipe" - case PeerEventKind.Tabs_customContentTransition: return "Tabs_customContentTransition" - case PeerEventKind.Tabs_onContentWillChange: return "Tabs_onContentWillChange" - case PeerEventKind.Tabs__onChangeEvent_index: return "Tabs__onChangeEvent_index" - case PeerEventKind.TabContent_onWillShow: return "TabContent_onWillShow" - case PeerEventKind.TabContent_onWillHide: return "TabContent_onWillHide" - case PeerEventKind.Text_onCopy: return "Text_onCopy" - case PeerEventKind.Text_onTextSelectionChange: return "Text_onTextSelectionChange" - case PeerEventKind.Text_bindSelectionMenu: return "Text_bindSelectionMenu" - case PeerEventKind.TextArea_onSubmit0: return "TextArea_onSubmit0" - case PeerEventKind.TextArea_onSubmit1: return "TextArea_onSubmit1" - case PeerEventKind.TextArea_onChange: return "TextArea_onChange" - case PeerEventKind.TextArea_onTextSelectionChange: return "TextArea_onTextSelectionChange" - case PeerEventKind.TextArea_onContentScroll: return "TextArea_onContentScroll" - case PeerEventKind.TextArea_onEditChange: return "TextArea_onEditChange" - case PeerEventKind.TextArea_onCopy: return "TextArea_onCopy" - case PeerEventKind.TextArea_onCut: return "TextArea_onCut" - case PeerEventKind.TextArea_onPaste: return "TextArea_onPaste" - case PeerEventKind.TextArea_onWillInsert: return "TextArea_onWillInsert" - case PeerEventKind.TextArea_onDidInsert: return "TextArea_onDidInsert" - case PeerEventKind.TextArea_onWillDelete: return "TextArea_onWillDelete" - case PeerEventKind.TextArea_onDidDelete: return "TextArea_onDidDelete" - case PeerEventKind.TextArea_customKeyboard: return "TextArea_customKeyboard" - case PeerEventKind.TextArea__onChangeEvent_text: return "TextArea__onChangeEvent_text" - case PeerEventKind.TextClock_onDateChange: return "TextClock_onDateChange" - case PeerEventKind.TextInput_onEditChanged: return "TextInput_onEditChanged" - case PeerEventKind.TextInput_onEditChange: return "TextInput_onEditChange" - case PeerEventKind.TextInput_onSubmit: return "TextInput_onSubmit" - case PeerEventKind.TextInput_onChange: return "TextInput_onChange" - case PeerEventKind.TextInput_onTextSelectionChange: return "TextInput_onTextSelectionChange" - case PeerEventKind.TextInput_onContentScroll: return "TextInput_onContentScroll" - case PeerEventKind.TextInput_onCopy: return "TextInput_onCopy" - case PeerEventKind.TextInput_onCut: return "TextInput_onCut" - case PeerEventKind.TextInput_onPaste: return "TextInput_onPaste" - case PeerEventKind.TextInput_showUnit: return "TextInput_showUnit" - case PeerEventKind.TextInput_onSecurityStateChange: return "TextInput_onSecurityStateChange" - case PeerEventKind.TextInput_onWillInsert: return "TextInput_onWillInsert" - case PeerEventKind.TextInput_onDidInsert: return "TextInput_onDidInsert" - case PeerEventKind.TextInput_onWillDelete: return "TextInput_onWillDelete" - case PeerEventKind.TextInput_onDidDelete: return "TextInput_onDidDelete" - case PeerEventKind.TextInput_customKeyboard: return "TextInput_customKeyboard" - case PeerEventKind.TextInput__onChangeEvent_text: return "TextInput__onChangeEvent_text" - case PeerEventKind.TextPicker_onAccept: return "TextPicker_onAccept" - case PeerEventKind.TextPicker_onCancel: return "TextPicker_onCancel" - case PeerEventKind.TextPicker_onChange: return "TextPicker_onChange" - case PeerEventKind.TextPicker__onChangeEvent_selected: return "TextPicker__onChangeEvent_selected" - case PeerEventKind.TextPicker__onChangeEvent_value: return "TextPicker__onChangeEvent_value" - case PeerEventKind.TextTimer_onTimer: return "TextTimer_onTimer" - case PeerEventKind.TimePicker_onChange: return "TimePicker_onChange" - case PeerEventKind.TimePicker__onChangeEvent_selected: return "TimePicker__onChangeEvent_selected" - case PeerEventKind.Toggle_onChange: return "Toggle_onChange" - case PeerEventKind.Toggle__onChangeEvent_isOn: return "Toggle__onChangeEvent_isOn" - case PeerEventKind.Video_onStart: return "Video_onStart" - case PeerEventKind.Video_onPause: return "Video_onPause" - case PeerEventKind.Video_onFinish: return "Video_onFinish" - case PeerEventKind.Video_onFullscreenChange: return "Video_onFullscreenChange" - case PeerEventKind.Video_onPrepared: return "Video_onPrepared" - case PeerEventKind.Video_onSeeking: return "Video_onSeeking" - case PeerEventKind.Video_onSeeked: return "Video_onSeeked" - case PeerEventKind.Video_onUpdate: return "Video_onUpdate" - case PeerEventKind.Video_onError: return "Video_onError" - case PeerEventKind.Video_onStop: return "Video_onStop" - case PeerEventKind.Web_onPageEnd: return "Web_onPageEnd" - case PeerEventKind.Web_onPageBegin: return "Web_onPageBegin" - case PeerEventKind.Web_onProgressChange: return "Web_onProgressChange" - case PeerEventKind.Web_onTitleReceive: return "Web_onTitleReceive" - case PeerEventKind.Web_onGeolocationHide: return "Web_onGeolocationHide" - case PeerEventKind.Web_onGeolocationShow: return "Web_onGeolocationShow" - case PeerEventKind.Web_onRequestSelected: return "Web_onRequestSelected" - case PeerEventKind.Web_onAlert: return "Web_onAlert" - case PeerEventKind.Web_onBeforeUnload: return "Web_onBeforeUnload" - case PeerEventKind.Web_onConfirm: return "Web_onConfirm" - case PeerEventKind.Web_onPrompt: return "Web_onPrompt" - case PeerEventKind.Web_onConsole: return "Web_onConsole" - case PeerEventKind.Web_onErrorReceive: return "Web_onErrorReceive" - case PeerEventKind.Web_onHttpErrorReceive: return "Web_onHttpErrorReceive" - case PeerEventKind.Web_onDownloadStart: return "Web_onDownloadStart" - case PeerEventKind.Web_onRefreshAccessedHistory: return "Web_onRefreshAccessedHistory" - case PeerEventKind.Web_onUrlLoadIntercept: return "Web_onUrlLoadIntercept" - case PeerEventKind.Web_onSslErrorReceive: return "Web_onSslErrorReceive" - case PeerEventKind.Web_onRenderExited0: return "Web_onRenderExited0" - case PeerEventKind.Web_onRenderExited1: return "Web_onRenderExited1" - case PeerEventKind.Web_onShowFileSelector: return "Web_onShowFileSelector" - case PeerEventKind.Web_onFileSelectorShow: return "Web_onFileSelectorShow" - case PeerEventKind.Web_onResourceLoad: return "Web_onResourceLoad" - case PeerEventKind.Web_onFullScreenExit: return "Web_onFullScreenExit" - case PeerEventKind.Web_onFullScreenEnter: return "Web_onFullScreenEnter" - case PeerEventKind.Web_onScaleChange: return "Web_onScaleChange" - case PeerEventKind.Web_onHttpAuthRequest: return "Web_onHttpAuthRequest" - case PeerEventKind.Web_onInterceptRequest: return "Web_onInterceptRequest" - case PeerEventKind.Web_onPermissionRequest: return "Web_onPermissionRequest" - case PeerEventKind.Web_onScreenCaptureRequest: return "Web_onScreenCaptureRequest" - case PeerEventKind.Web_onContextMenuShow: return "Web_onContextMenuShow" - case PeerEventKind.Web_onContextMenuHide: return "Web_onContextMenuHide" - case PeerEventKind.Web_onSearchResultReceive: return "Web_onSearchResultReceive" - case PeerEventKind.Web_onScroll: return "Web_onScroll" - case PeerEventKind.Web_onSslErrorEventReceive: return "Web_onSslErrorEventReceive" - case PeerEventKind.Web_onSslErrorEvent: return "Web_onSslErrorEvent" - case PeerEventKind.Web_onClientAuthenticationRequest: return "Web_onClientAuthenticationRequest" - case PeerEventKind.Web_onWindowNew: return "Web_onWindowNew" - case PeerEventKind.Web_onWindowExit: return "Web_onWindowExit" - case PeerEventKind.Web_onInterceptKeyEvent: return "Web_onInterceptKeyEvent" - case PeerEventKind.Web_onTouchIconUrlReceived: return "Web_onTouchIconUrlReceived" - case PeerEventKind.Web_onFaviconReceived: return "Web_onFaviconReceived" - case PeerEventKind.Web_onPageVisible: return "Web_onPageVisible" - case PeerEventKind.Web_onDataResubmitted: return "Web_onDataResubmitted" - case PeerEventKind.Web_onAudioStateChanged: return "Web_onAudioStateChanged" - case PeerEventKind.Web_onFirstContentfulPaint: return "Web_onFirstContentfulPaint" - case PeerEventKind.Web_onFirstMeaningfulPaint: return "Web_onFirstMeaningfulPaint" - case PeerEventKind.Web_onLargestContentfulPaint: return "Web_onLargestContentfulPaint" - case PeerEventKind.Web_onLoadIntercept: return "Web_onLoadIntercept" - case PeerEventKind.Web_onControllerAttached: return "Web_onControllerAttached" - case PeerEventKind.Web_onOverScroll: return "Web_onOverScroll" - case PeerEventKind.Web_onSafeBrowsingCheckResult: return "Web_onSafeBrowsingCheckResult" - case PeerEventKind.Web_onNavigationEntryCommitted: return "Web_onNavigationEntryCommitted" - case PeerEventKind.Web_onIntelligentTrackingPreventionResult: return "Web_onIntelligentTrackingPreventionResult" - case PeerEventKind.Web_onNativeEmbedLifecycleChange: return "Web_onNativeEmbedLifecycleChange" - case PeerEventKind.Web_onNativeEmbedVisibilityChange: return "Web_onNativeEmbedVisibilityChange" - case PeerEventKind.Web_onNativeEmbedGestureEvent: return "Web_onNativeEmbedGestureEvent" - case PeerEventKind.Web_onOverrideUrlLoading: return "Web_onOverrideUrlLoading" - case PeerEventKind.Web_onRenderProcessNotResponding: return "Web_onRenderProcessNotResponding" - case PeerEventKind.Web_onRenderProcessResponding: return "Web_onRenderProcessResponding" - case PeerEventKind.Web_onViewportFitChanged: return "Web_onViewportFitChanged" - case PeerEventKind.Web_onInterceptKeyboardAttach: return "Web_onInterceptKeyboardAttach" - case PeerEventKind.Web_onAdsBlocked: return "Web_onAdsBlocked" - case PeerEventKind.Web_bindSelectionMenu: return "Web_bindSelectionMenu" - case PeerEventKind.XComponent_onLoad: return "XComponent_onLoad" - case PeerEventKind.XComponent_onDestroy: return "XComponent_onDestroy" - case PeerEventKind.SideBarContainer_onChange: return "SideBarContainer_onChange" - case PeerEventKind.SideBarContainer__onChangeEvent_showSideBar: return "SideBarContainer__onChangeEvent_showSideBar" - case PeerEventKind.WaterFlow_onReachStart: return "WaterFlow_onReachStart" - case PeerEventKind.WaterFlow_onReachEnd: return "WaterFlow_onReachEnd" - case PeerEventKind.WaterFlow_onScrollFrameBegin: return "WaterFlow_onScrollFrameBegin" - case PeerEventKind.WaterFlow_onScrollIndex: return "WaterFlow_onScrollIndex" - case PeerEventKind.UIExtensionComponent_onRemoteReady: return "UIExtensionComponent_onRemoteReady" - case PeerEventKind.UIExtensionComponent_onResult: return "UIExtensionComponent_onResult" - case PeerEventKind.UIExtensionComponent_onRelease: return "UIExtensionComponent_onRelease" - case PeerEventKind.UIExtensionComponent_onError: return "UIExtensionComponent_onError" - case PeerEventKind.UIExtensionComponent_onTerminated: return "UIExtensionComponent_onTerminated" - default: throw new Error(`Unknown kind ${kind}`) - } -} -export class PeerEventsProperties { - AbilityComponent_onConnect?: (() => void) - AbilityComponent_onDisconnect?: (() => void) - AlphabetIndexer_onSelected?: ((index: number) => void) - AlphabetIndexer_onSelect?: OnAlphabetIndexerSelectCallback - AlphabetIndexer_onRequestPopupData?: OnAlphabetIndexerRequestPopupDataCallback - AlphabetIndexer_onPopupSelect?: OnAlphabetIndexerPopupSelectCallback - AlphabetIndexer__onChangeEvent_selected?: ((index: number) => void) - Animator_onStart?: (() => void) - Animator_onPause?: (() => void) - Animator_onRepeat?: (() => void) - Animator_onCancel?: (() => void) - Animator_onFinish?: (() => void) - Animator_onFrame?: ((index: number) => void) - Calendar_onSelectChange?: ((event: CalendarSelectedDate) => void) - Calendar_onRequestData?: ((event: CalendarRequestedData) => void) - CalendarPicker_onChange?: ((parameter: Date) => void) - Canvas_onReady?: VoidCallback - Checkbox_onChange?: OnCheckboxChangeCallback - Checkbox__onChangeEvent_select?: ((parameter: boolean) => void) - CheckboxGroup_onChange?: OnCheckboxGroupChangeCallback - CheckboxGroup__onChangeEvent_selectAll?: ((parameter: boolean) => void) - CommonMethod_onChildTouchTest?: ((value: Array) => TouchResult) - CommonMethod_onClick0?: ((event: ClickEvent) => void) - CommonMethod_onClick1?: ((event: ClickEvent) => void) - CommonMethod_onHover?: ((isHover: boolean,event: HoverEvent) => void) - CommonMethod_onAccessibilityHover?: AccessibilityCallback - CommonMethod_onMouse?: ((event: MouseEvent) => void) - CommonMethod_onTouch?: ((event: TouchEvent) => void) - CommonMethod_onKeyEvent?: ((event: KeyEvent) => void) - CommonMethod_onKeyPreIme?: ((parameter: KeyEvent) => boolean) - CommonMethod_onFocus?: (() => void) - CommonMethod_onBlur?: (() => void) - CommonMethod_onAppear?: (() => void) - CommonMethod_onDisAppear?: (() => void) - CommonMethod_onAttach?: (() => void) - CommonMethod_onDetach?: (() => void) - CommonMethod_onAreaChange?: ((oldValue: Area,newValue: Area) => void) - CommonMethod_onDragStart?: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) - CommonMethod_onDragEnter?: ((event: DragEvent,extraParams?: string) => void) - CommonMethod_onDragMove?: ((event: DragEvent,extraParams?: string) => void) - CommonMethod_onDragLeave?: ((event: DragEvent,extraParams?: string) => void) - CommonMethod_onDrop?: ((event: DragEvent,extraParams?: string) => void) - CommonMethod_onDragEnd?: ((event: DragEvent,extraParams?: string) => void) - CommonMethod_onPreDrag?: ((parameter: PreDragStatus) => void) - CommonMethod_accessibilityVirtualNode?: CustomBuilder - CommonMethod_onGestureJudgeBegin?: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) - CommonMethod_onGestureRecognizerJudgeBegin0?: GestureRecognizerJudgeBeginCallback - CommonMethod_onGestureRecognizerJudgeBegin1?: GestureRecognizerJudgeBeginCallback - CommonMethod_shouldBuiltInRecognizerParallelWith?: ShouldBuiltInRecognizerParallelWithCallback - CommonMethod_onTouchIntercept?: ((parameter: TouchEvent) => HitTestMode) - CommonMethod_onSizeChange?: SizeChangeCallback - CommonMethod_background?: CustomBuilder - CommonMethod_bindContextMenu0?: CustomBuilder - CommonMethod_bindContextMenu1?: CustomBuilder - CommonMethod_bindContentCover0?: CustomBuilder - CommonMethod_bindContentCover1?: CustomBuilder - CommonMethod_bindSheet?: CustomBuilder - CommonMethod_onVisibleAreaChange?: VisibleAreaChangeCallback - ScrollableCommonMethod_onScroll?: ((first: number,last: number) => void) - ScrollableCommonMethod_onDidScroll?: ScrollOnScrollCallback - ScrollableCommonMethod_onReachStart?: (() => void) - ScrollableCommonMethod_onReachEnd?: (() => void) - ScrollableCommonMethod_onScrollStart?: (() => void) - ScrollableCommonMethod_onScrollStop?: (() => void) - Counter_onInc?: VoidCallback - Counter_onDec?: VoidCallback - DatePicker_onChange?: ((value: DatePickerResult) => void) - DatePicker_onDateChange?: ((parameter: Date) => void) - DatePicker__onChangeEvent_selected?: ((parameter: Date) => void) - EmbeddedComponent_onTerminated?: ((parameter: TerminationInfo) => void) - EmbeddedComponent_onError?: ErrorCallback - FolderStack_onFolderStateChange?: OnFoldStatusChangeCallback - FolderStack_onHoverStatusChange?: OnHoverStatusChangeCallback - FormComponent_onAcquired?: ((parameter: FormCallbackInfo) => void) - FormComponent_onError?: ((info: Literal_Number_errcode_String_msg) => void) - FormComponent_onRouter?: ((info: object) => void) - FormComponent_onUninstall?: ((parameter: FormCallbackInfo) => void) - FormComponent_onLoad?: (() => void) - Gauge_description?: CustomBuilder - Grid_onScrollBarUpdate?: ((index: number,offset: number) => ComputedBarAttribute) - Grid_onScrollIndex?: ((first: number,last: number) => void) - Grid_onItemDragStart?: ((event: ItemDragInfo,itemIndex: number) => CustomBuilder) - Grid_onItemDragEnter?: ((event: ItemDragInfo) => void) - Grid_onItemDragMove?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) - Grid_onItemDragLeave?: ((event: ItemDragInfo,itemIndex: number) => void) - Grid_onItemDrop?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) - Grid_onScroll?: ((first: number,last: number) => void) - Grid_onReachStart?: (() => void) - Grid_onReachEnd?: (() => void) - Grid_onScrollStart?: (() => void) - Grid_onScrollStop?: (() => void) - Grid_onScrollFrameBegin?: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) - GridItem_onSelect?: ((parameter: boolean) => void) - GridItem__onChangeEvent_selected?: ((parameter: boolean) => void) - GridRow_onBreakpointChange?: ((breakpoints: string) => void) - Image_onComplete?: ((event?: Type_ImageAttribute_onComplete_callback_event) => void) - Image_onError?: ImageErrorCallback - Image_onFinish?: (() => void) - ImageAnimator_onStart?: (() => void) - ImageAnimator_onPause?: (() => void) - ImageAnimator_onRepeat?: (() => void) - ImageAnimator_onCancel?: (() => void) - ImageAnimator_onFinish?: (() => void) - ImageSpan_onComplete?: ImageCompleteCallback - ImageSpan_onError?: ImageErrorCallback - List_onScroll?: ((first: number,last: number) => void) - List_onScrollIndex?: ((start: number,end: number,center: number) => void) - List_onScrollVisibleContentChange?: OnScrollVisibleContentChangeCallback - List_onReachStart?: (() => void) - List_onReachEnd?: (() => void) - List_onScrollStart?: (() => void) - List_onScrollStop?: (() => void) - List_onItemDelete?: ((index: number) => boolean) - List_onItemMove?: ((from: number,to: number) => boolean) - List_onItemDragStart?: ((event: ItemDragInfo,itemIndex: number) => CustomBuilder) - List_onItemDragEnter?: ((event: ItemDragInfo) => void) - List_onItemDragMove?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) - List_onItemDragLeave?: ((event: ItemDragInfo,itemIndex: number) => void) - List_onItemDrop?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) - List_onScrollFrameBegin?: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) - ListItem_onSelect?: ((parameter: boolean) => void) - ListItem__onChangeEvent_selected?: ((parameter: boolean) => void) - LocationButton_onClick?: ((event: ClickEvent,result: LocationButtonOnClickResult) => void) - Marquee_onStart?: (() => void) - Marquee_onBounce?: (() => void) - Marquee_onFinish?: (() => void) - MenuItem_onChange?: ((parameter: boolean) => void) - MenuItem__onChangeEvent_selected?: ((parameter: boolean) => void) - NavDestination_onShown?: (() => void) - NavDestination_onHidden?: (() => void) - NavDestination_onBackPressed?: (() => boolean) - NavDestination_onReady?: ((parameter: NavDestinationContext) => void) - NavDestination_onWillAppear?: (() => void) - NavDestination_onWillDisappear?: (() => void) - NavDestination_onWillShow?: (() => void) - NavDestination_onWillHide?: (() => void) - NavRouter_onStateChange?: ((parameter: boolean) => void) - Panel_onChange?: ((width: number,height: number,mode: PanelMode) => void) - Panel_onHeightChange?: ((index: number) => void) - Panel__onChangeEvent_mode?: ((mode: PanelMode) => void) - PasteButton_onClick?: ((event: ClickEvent,result: PasteButtonOnClickResult) => void) - PatternLock_onPatternComplete?: ((input: Array) => void) - PatternLock_onDotConnect?: ((index: number) => void) - PluginComponent_onComplete?: VoidCallback - PluginComponent_onError?: PluginErrorCallback - Radio_onChange?: ((parameter: boolean) => void) - Radio__onChangeEvent_checked?: ((parameter: boolean) => void) - Rating_onChange?: ((index: number) => void) - Rating__onChangeEvent_rating?: ((index: number) => void) - Refresh_onStateChange?: ((state: RefreshStatus) => void) - Refresh_onRefreshing?: (() => void) - Refresh_onOffsetChange?: ((index: number) => void) - Refresh__onChangeEvent_refreshing?: ((parameter: boolean) => void) - RichEditor_onReady?: (() => void) - RichEditor_onSelect?: ((parameter: RichEditorSelection) => void) - RichEditor_onSelectionChange?: ((parameter: RichEditorRange) => void) - RichEditor_aboutToIMEInput?: ((parameter: RichEditorInsertValue) => boolean) - RichEditor_onIMEInputComplete?: ((parameter: RichEditorTextSpanResult) => void) - RichEditor_onDidIMEInput?: ((parameter: TextRange) => void) - RichEditor_aboutToDelete?: ((parameter: RichEditorDeleteValue) => boolean) - RichEditor_onDeleteComplete?: (() => void) - RichEditor_onPaste?: PasteEventCallback - RichEditor_onEditingChange?: ((parameter: boolean) => void) - RichEditor_onSubmit?: SubmitCallback - RichEditor_onWillChange?: ((parameter: RichEditorChangeValue) => boolean) - RichEditor_onDidChange?: OnDidChangeCallback - RichEditor_onCut?: ((parameter: CutEvent) => void) - RichEditor_onCopy?: ((parameter: CopyEvent) => void) - RichEditor_bindSelectionMenu?: CustomBuilder - RichEditor_customKeyboard?: CustomBuilder - RichText_onStart?: (() => void) - RichText_onComplete?: (() => void) - SaveButton_onClick?: ((event: ClickEvent,result: SaveButtonOnClickResult) => void) - Scroll_onScroll?: ((first: number,last: number) => void) - Scroll_onDidScroll?: ScrollOnScrollCallback - Scroll_onScrollEdge?: OnScrollEdgeCallback - Scroll_onScrollStart?: VoidCallback - Scroll_onScrollEnd?: (() => void) - Scroll_onScrollStop?: VoidCallback - Scroll_onScrollFrameBegin?: OnScrollFrameBeginCallback - Search_onEditChange?: ((parameter: boolean) => void) - Search_onSubmit0?: ((breakpoints: string) => void) - Search_onSubmit1?: SearchSubmitCallback - Search_onChange?: EditableTextOnChangeCallback - Search_onTextSelectionChange?: OnTextSelectionChangeCallback - Search_onContentScroll?: OnContentScrollCallback - Search_onCopy?: ((breakpoints: string) => void) - Search_onCut?: ((breakpoints: string) => void) - Search_onPaste?: OnPasteCallback - Search_onWillInsert?: ((parameter: InsertValue) => boolean) - Search_onDidInsert?: ((parameter: InsertValue) => void) - Search_onWillDelete?: ((parameter: DeleteValue) => boolean) - Search_onDidDelete?: ((parameter: DeleteValue) => void) - Search_customKeyboard?: CustomBuilder - Search__onChangeEvent_value?: ((breakpoints: string) => void) - Select_onSelect?: ((index: number,value: string) => void) - Select__onChangeEvent_selected?: ((selected: number | Resource) => void) - Select__onChangeEvent_value?: ((value: ResourceStr) => void) - Slider_onChange?: ((value: number,mode: SliderChangeMode) => void) - Slider__onChangeEvent_value?: ((index: number) => void) - Stepper_onFinish?: (() => void) - Stepper_onSkip?: (() => void) - Stepper_onChange?: ((first: number,last: number) => void) - Stepper_onNext?: ((first: number,last: number) => void) - Stepper_onPrevious?: ((first: number,last: number) => void) - Stepper__onChangeEvent_index?: ((index: number) => void) - Swiper_onChange?: ((index: number) => void) - Swiper_onAnimationStart?: OnSwiperAnimationStartCallback - Swiper_onAnimationEnd?: OnSwiperAnimationEndCallback - Swiper_onGestureSwipe?: OnSwiperGestureSwipeCallback - Swiper_onContentDidScroll?: ContentDidScrollCallback - Swiper__onChangeEvent_index?: ((index: number) => void) - IndicatorComponent_onChange?: ((index: number) => void) - Tabs_onChange?: ((index: number) => void) - Tabs_onTabBarClick?: ((index: number) => void) - Tabs_onAnimationStart?: OnTabsAnimationStartCallback - Tabs_onAnimationEnd?: OnTabsAnimationEndCallback - Tabs_onGestureSwipe?: OnTabsGestureSwipeCallback - Tabs_customContentTransition?: TabsCustomContentTransitionCallback - Tabs_onContentWillChange?: OnTabsContentWillChangeCallback - Tabs__onChangeEvent_index?: ((index: number) => void) - TabContent_onWillShow?: VoidCallback - TabContent_onWillHide?: VoidCallback - Text_onCopy?: ((breakpoints: string) => void) - Text_onTextSelectionChange?: ((first: number,last: number) => void) - Text_bindSelectionMenu?: CustomBuilder - TextArea_onSubmit0?: ((enterKey: EnterKeyType) => void) - TextArea_onSubmit1?: TextAreaSubmitCallback - TextArea_onChange?: EditableTextOnChangeCallback - TextArea_onTextSelectionChange?: ((first: number,last: number) => void) - TextArea_onContentScroll?: ((first: number,last: number) => void) - TextArea_onEditChange?: ((parameter: boolean) => void) - TextArea_onCopy?: ((breakpoints: string) => void) - TextArea_onCut?: ((breakpoints: string) => void) - TextArea_onPaste?: ((value: string,event: PasteEvent) => void) - TextArea_onWillInsert?: ((parameter: InsertValue) => boolean) - TextArea_onDidInsert?: ((parameter: InsertValue) => void) - TextArea_onWillDelete?: ((parameter: DeleteValue) => boolean) - TextArea_onDidDelete?: ((parameter: DeleteValue) => void) - TextArea_customKeyboard?: CustomBuilder - TextArea__onChangeEvent_text?: ((value: ResourceStr) => void) - TextClock_onDateChange?: ((index: number) => void) - TextInput_onEditChanged?: ((parameter: boolean) => void) - TextInput_onEditChange?: ((parameter: boolean) => void) - TextInput_onSubmit?: OnSubmitCallback - TextInput_onChange?: EditableTextOnChangeCallback - TextInput_onTextSelectionChange?: OnTextSelectionChangeCallback - TextInput_onContentScroll?: OnContentScrollCallback - TextInput_onCopy?: ((breakpoints: string) => void) - TextInput_onCut?: ((breakpoints: string) => void) - TextInput_onPaste?: OnPasteCallback - TextInput_showUnit?: CustomBuilder - TextInput_onSecurityStateChange?: ((parameter: boolean) => void) - TextInput_onWillInsert?: ((parameter: InsertValue) => boolean) - TextInput_onDidInsert?: ((parameter: InsertValue) => void) - TextInput_onWillDelete?: ((parameter: DeleteValue) => boolean) - TextInput_onDidDelete?: ((parameter: DeleteValue) => void) - TextInput_customKeyboard?: CustomBuilder - TextInput__onChangeEvent_text?: ((value: ResourceStr) => void) - TextPicker_onAccept?: ((value: string,index: number) => void) - TextPicker_onCancel?: (() => void) - TextPicker_onChange?: ((value: string | Array,index: number | Array) => void) - TextPicker__onChangeEvent_selected?: ((selected: number | Array) => void) - TextPicker__onChangeEvent_value?: ((value: string | Array) => void) - TextTimer_onTimer?: ((first: number,last: number) => void) - TimePicker_onChange?: ((value: TimePickerResult) => void) - TimePicker__onChangeEvent_selected?: ((parameter: Date) => void) - Toggle_onChange?: ((parameter: boolean) => void) - Toggle__onChangeEvent_isOn?: ((parameter: boolean) => void) - Video_onStart?: VoidCallback - Video_onPause?: VoidCallback - Video_onFinish?: VoidCallback - Video_onFullscreenChange?: ((parameter: FullscreenInfo) => void) - Video_onPrepared?: ((parameter: PreparedInfo) => void) - Video_onSeeking?: ((parameter: PlaybackInfo) => void) - Video_onSeeked?: ((parameter: PlaybackInfo) => void) - Video_onUpdate?: ((parameter: PlaybackInfo) => void) - Video_onError?: (() => void) - Video_onStop?: (() => void) - Web_onPageEnd?: ((parameter: OnPageEndEvent) => void) - Web_onPageBegin?: ((parameter: OnPageBeginEvent) => void) - Web_onProgressChange?: ((parameter: OnProgressChangeEvent) => void) - Web_onTitleReceive?: ((parameter: OnTitleReceiveEvent) => void) - Web_onGeolocationHide?: (() => void) - Web_onGeolocationShow?: ((parameter: OnGeolocationShowEvent) => void) - Web_onRequestSelected?: (() => void) - Web_onAlert?: ((parameter: OnAlertEvent) => boolean) - Web_onBeforeUnload?: ((parameter: OnBeforeUnloadEvent) => boolean) - Web_onConfirm?: ((parameter: OnConfirmEvent) => boolean) - Web_onPrompt?: ((parameter: OnPromptEvent) => boolean) - Web_onConsole?: ((parameter: OnConsoleEvent) => boolean) - Web_onErrorReceive?: ((parameter: OnErrorReceiveEvent) => void) - Web_onHttpErrorReceive?: ((parameter: OnHttpErrorReceiveEvent) => void) - Web_onDownloadStart?: ((parameter: OnDownloadStartEvent) => void) - Web_onRefreshAccessedHistory?: ((parameter: OnRefreshAccessedHistoryEvent) => void) - Web_onUrlLoadIntercept?: ((event?: Literal_Union_String_WebResourceRequest_data) => boolean) - Web_onSslErrorReceive?: ((event?: Literal_Function_handler_Object_error) => void) - Web_onRenderExited0?: ((parameter: OnRenderExitedEvent) => void) - Web_onRenderExited1?: ((event?: Literal_Object_detail) => boolean) - Web_onShowFileSelector?: ((parameter: OnShowFileSelectorEvent) => boolean) - Web_onFileSelectorShow?: ((event?: Literal_Function_callback__Object_fileSelector) => void) - Web_onResourceLoad?: ((parameter: OnResourceLoadEvent) => void) - Web_onFullScreenExit?: (() => void) - Web_onFullScreenEnter?: OnFullScreenEnterCallback - Web_onScaleChange?: ((parameter: OnScaleChangeEvent) => void) - Web_onHttpAuthRequest?: ((parameter: OnHttpAuthRequestEvent) => boolean) - Web_onInterceptRequest?: ((parameter: OnInterceptRequestEvent) => WebResourceResponse) - Web_onPermissionRequest?: ((parameter: OnPermissionRequestEvent) => void) - Web_onScreenCaptureRequest?: ((parameter: OnScreenCaptureRequestEvent) => void) - Web_onContextMenuShow?: ((parameter: OnContextMenuShowEvent) => boolean) - Web_onContextMenuHide?: OnContextMenuHideCallback - Web_onSearchResultReceive?: ((parameter: OnSearchResultReceiveEvent) => void) - Web_onScroll?: ((parameter: OnScrollEvent) => void) - Web_onSslErrorEventReceive?: ((parameter: OnSslErrorEventReceiveEvent) => void) - Web_onSslErrorEvent?: OnSslErrorEventCallback - Web_onClientAuthenticationRequest?: ((parameter: OnClientAuthenticationEvent) => void) - Web_onWindowNew?: ((parameter: OnWindowNewEvent) => void) - Web_onWindowExit?: (() => void) - Web_onInterceptKeyEvent?: ((parameter: KeyEvent) => boolean) - Web_onTouchIconUrlReceived?: ((parameter: OnTouchIconUrlReceivedEvent) => void) - Web_onFaviconReceived?: ((parameter: OnFaviconReceivedEvent) => void) - Web_onPageVisible?: ((parameter: OnPageVisibleEvent) => void) - Web_onDataResubmitted?: ((parameter: OnDataResubmittedEvent) => void) - Web_onAudioStateChanged?: ((parameter: OnAudioStateChangedEvent) => void) - Web_onFirstContentfulPaint?: ((parameter: OnFirstContentfulPaintEvent) => void) - Web_onFirstMeaningfulPaint?: OnFirstMeaningfulPaintCallback - Web_onLargestContentfulPaint?: OnLargestContentfulPaintCallback - Web_onLoadIntercept?: ((parameter: OnLoadInterceptEvent) => boolean) - Web_onControllerAttached?: (() => void) - Web_onOverScroll?: ((parameter: OnOverScrollEvent) => void) - Web_onSafeBrowsingCheckResult?: OnSafeBrowsingCheckResultCallback - Web_onNavigationEntryCommitted?: OnNavigationEntryCommittedCallback - Web_onIntelligentTrackingPreventionResult?: OnIntelligentTrackingPreventionCallback - Web_onNativeEmbedLifecycleChange?: ((event: NativeEmbedDataInfo) => void) - Web_onNativeEmbedVisibilityChange?: OnNativeEmbedVisibilityChangeCallback - Web_onNativeEmbedGestureEvent?: ((event: NativeEmbedTouchInfo) => void) - Web_onOverrideUrlLoading?: OnOverrideUrlLoadingCallback - Web_onRenderProcessNotResponding?: OnRenderProcessNotRespondingCallback - Web_onRenderProcessResponding?: OnRenderProcessRespondingCallback - Web_onViewportFitChanged?: OnViewportFitChangedCallback - Web_onInterceptKeyboardAttach?: WebKeyboardCallback - Web_onAdsBlocked?: OnAdsBlockedCallback - Web_bindSelectionMenu?: CustomBuilder - XComponent_onLoad?: OnNativeLoadCallback - XComponent_onDestroy?: VoidCallback - SideBarContainer_onChange?: ((parameter: boolean) => void) - SideBarContainer__onChangeEvent_showSideBar?: ((parameter: boolean) => void) - WaterFlow_onReachStart?: (() => void) - WaterFlow_onReachEnd?: (() => void) - WaterFlow_onScrollFrameBegin?: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) - WaterFlow_onScrollIndex?: ((first: number,last: number) => void) - UIExtensionComponent_onRemoteReady?: ((parameter: UIExtensionProxy) => void) - UIExtensionComponent_onResult?: ((parameter: Literal_Number_code_Want_want) => void) - UIExtensionComponent_onRelease?: ((index: number) => void) - UIExtensionComponent_onError?: ErrorCallback - UIExtensionComponent_onTerminated?: ((parameter: TerminationInfo) => void) -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index cae8e302c530751fe761d581d1d7f2800fc65e29..6fc70d6bdd4f8f5963c9471749222b9ea81b07e2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index 542ef249cad3b549cc78fa00cbfb12b4df6040fd..4eea12b5db1724bc8684efb84ae1f6941f9ec07d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -89,7 +89,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -116,7 +116,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -143,7 +143,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -170,7 +170,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -197,7 +197,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -224,7 +224,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -251,7 +251,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -278,7 +278,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -379,7 +379,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_itemBorderRadius(this.peer.ptr, value) } popupBackgroundBlurStyleAttribute(value: BlurStyle): void { - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_popupBackgroundBlurStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_popupBackgroundBlurStyle(this.peer.ptr, ((value as BlurStyle) as int32)) } popupTitleBackgroundAttribute(value: ResourceColor): void { const thisSerializer : Serializer = Serializer.hold() @@ -388,7 +388,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -420,7 +420,7 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const offset_value = offset! thisSerializer.writeLength(offset_value) } - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_alignStyle(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_alignStyle(this.peer.ptr, ((value as IndexerAlign) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } _onChangeEvent_selectedAttribute(callback: ((index: number) => void)): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts index 5c875c50369a0da95d5232fe39fd73b8706d3811..7b49b2d46e5695e324b0748089414af0ea8e18a3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -75,25 +75,25 @@ export class ArkAnimatorPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._AnimatorInterface_setAnimatorOptions(this.peer.ptr, value) } stateAttribute(value: AnimationStatus): void { - ArkUIGeneratedNativeModule._AnimatorAttribute_state(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._AnimatorAttribute_state(this.peer.ptr, ((value as AnimationStatus) as int32)) } durationAttribute(value: number): void { ArkUIGeneratedNativeModule._AnimatorAttribute_duration(this.peer.ptr, value) } curveAttribute(value: Curve): void { - ArkUIGeneratedNativeModule._AnimatorAttribute_curve(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._AnimatorAttribute_curve(this.peer.ptr, ((value as Curve) as int32)) } delayAttribute(value: number): void { ArkUIGeneratedNativeModule._AnimatorAttribute_delay(this.peer.ptr, value) } fillModeAttribute(value: FillMode): void { - ArkUIGeneratedNativeModule._AnimatorAttribute_fillMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._AnimatorAttribute_fillMode(this.peer.ptr, ((value as FillMode) as int32)) } iterationsAttribute(value: number): void { ArkUIGeneratedNativeModule._AnimatorAttribute_iterations(this.peer.ptr, value) } playModeAttribute(value: PlayMode): void { - ArkUIGeneratedNativeModule._AnimatorAttribute_playMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._AnimatorAttribute_playMode(this.peer.ptr, ((value as PlayMode) as int32)) } motionAttribute(value: SpringMotion): void { ArkUIGeneratedNativeModule._AnimatorAttribute_motion(this.peer.ptr, toPeerPtr(value)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts index d26c107b47be779af3749988f2cc89b8b197cfe9..3f443c0dfad8cc376bcd7a2d17ba85bf30276b0e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts index 04b9aff8be2ee4d8e6d5a3e8123e1587a31d04d3..b0d6232803a2589dc432ac01231ab607388407b2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -100,7 +100,7 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts index 9fc8adb55f87573b13596d4edc2ad1a0591e5f2e..f405fb5f947a565ac4216b7ea0c09305924bda49 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -104,19 +104,19 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { thisSerializer.release() } typeAttribute(value: ButtonType): void { - ArkUIGeneratedNativeModule._ButtonAttribute_type(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ButtonAttribute_type(this.peer.ptr, ((value as ButtonType) as int32)) } stateEffectAttribute(value: boolean): void { ArkUIGeneratedNativeModule._ButtonAttribute_stateEffect(this.peer.ptr, value ? 1 : 0) } buttonStyleAttribute(value: ButtonStyleMode): void { - ArkUIGeneratedNativeModule._ButtonAttribute_buttonStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ButtonAttribute_buttonStyle(this.peer.ptr, ((value as ButtonStyleMode) as int32)) } controlSizeAttribute(value: ControlSize): void { - ArkUIGeneratedNativeModule._ButtonAttribute_controlSize(this.peer.ptr, (value as int32)) + ArkUIGeneratedNativeModule._ButtonAttribute_controlSize(this.peer.ptr, ((value as ControlSize) as int32)) } roleAttribute(value: ButtonRole): void { - ArkUIGeneratedNativeModule._ButtonAttribute_role(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ButtonAttribute_role(this.peer.ptr, ((value as ButtonRole) as int32)) } fontColorAttribute(value: ResourceColor): void { const thisSerializer : Serializer = Serializer.hold() @@ -125,7 +125,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -160,7 +160,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -171,7 +171,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { thisSerializer.release() } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._ButtonAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ButtonAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontFamilyAttribute(value: string | Resource): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts index 3a0713691d53150616e0c8b0d303e235ac47ce84..fb45df6761014a053ba69cc929333ebae380555a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -88,7 +88,7 @@ export class ArkCalendarPeer extends PeerNode { ArkUIGeneratedNativeModule._CalendarAttribute_offDays(this.peer.ptr, value) } directionAttribute(value: Axis): void { - ArkUIGeneratedNativeModule._CalendarAttribute_direction(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CalendarAttribute_direction(this.peer.ptr, ((value as Axis) as int32)) } currentDayStyleAttribute(value: CurrentDayStyle): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index 5290e8ebaa9c749117c7a121a9e7319e1e46d9e7..61af739441e2a5a0f50f194c91bb98b43cd972b5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -106,7 +106,7 @@ export class ArkCalendarPickerPeer extends ArkCommonMethodPeer { const offset_value_dy = offset_value.dy thisSerializer.writeLength(offset_value_dy) } - ArkUIGeneratedNativeModule._CalendarPickerAttribute_edgeAlign(this.peer.ptr, (alignType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CalendarPickerAttribute_edgeAlign(this.peer.ptr, ((alignType as CalendarAlign) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts index e99092bc1544ffdff82ccd68632f7f9c96540207..3b3ac49f093f519721b0fab76e1857c61a7c27ed 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts index 5fdcfffba8f0c62e7de880deeffc5a1aa30e9413..91038cbcc95c59cfc2fbccc7f9ef58561340ffeb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -92,7 +92,7 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -113,7 +113,7 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { thisSerializer.release() } shapeAttribute(value: CheckBoxShape): void { - ArkUIGeneratedNativeModule._CheckboxAttribute_shape(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CheckboxAttribute_shape(this.peer.ptr, ((value as CheckBoxShape) as int32)) } unselectedColorAttribute(value: ResourceColor): void { const thisSerializer : Serializer = Serializer.hold() @@ -122,7 +122,7 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index 139e7964ef48a669a45cfe22e374f4ce462e5f11..70d2dc65dfe0b7ae28169b5b8dbd4d108cf83bcc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -92,7 +92,7 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -119,7 +119,7 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -152,7 +152,7 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { thisSerializer.release() } checkboxShapeAttribute(value: CheckBoxShape): void { - ArkUIGeneratedNativeModule._CheckboxGroupAttribute_checkboxShape(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CheckboxGroupAttribute_checkboxShape(this.peer.ptr, ((value as CheckBoxShape) as int32)) } _onChangeEvent_selectAllAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts index 620a2c30b3254d0c32ce5700465f993787c4c45f..f16d4929a6d55df89b84a5a0fffd75b594e238de 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts index 13bc031030535bb3599e38373a5994453d76c007..c719f9061b856b2266724c3ce9ddcba6b2705416 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -83,10 +83,10 @@ export class ArkColumnPeer extends ArkCommonMethodPeer { thisSerializer.release() } alignItemsAttribute(value: HorizontalAlign): void { - ArkUIGeneratedNativeModule._ColumnAttribute_alignItems(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ColumnAttribute_alignItems(this.peer.ptr, ((value as HorizontalAlign) as int32)) } justifyContentAttribute(value: FlexAlign): void { - ArkUIGeneratedNativeModule._ColumnAttribute_justifyContent(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ColumnAttribute_justifyContent(this.peer.ptr, ((value as FlexAlign) as int32)) } pointLightAttribute(value: PointLightStyle): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts index 06737567523b1b2cae5ef1fca8eb4fc7dfda7023..8b77a73218ded72c6962654a4ecdd5c429dfca49 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 0341f77f3d383c79cd9f811a4eb7645382f8c299..344797b687c61c3a8f973055ef2d9b0308e59a09 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -145,7 +145,7 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_touchable(this.peer.ptr, value ? 1 : 0) } hitTestBehaviorAttribute(value: HitTestMode): void { - ArkUIGeneratedNativeModule._CommonMethod_hitTestBehavior(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_hitTestBehavior(this.peer.ptr, ((value as HitTestMode) as int32)) } onChildTouchTestAttribute(value: ((value: Array) => TouchResult)): void { const thisSerializer : Serializer = Serializer.hold() @@ -180,7 +180,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPadding(value, true, false, true, false))) { + if (TypeChecker.isPadding(value, false, false, false, false)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Padding const value_0_top = value_0.top @@ -216,7 +216,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeLength(value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Length thisSerializer.writeLength(value_1) @@ -233,7 +233,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPadding(value, true, false, true, false))) { + if (TypeChecker.isPadding(value, false, false, false, false)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Padding const value_0_top = value_0.top @@ -286,7 +286,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPadding(value, true, false, true, false))) { + if (TypeChecker.isPadding(value, false, false, false, false)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Margin const value_0_top = value_0.top @@ -322,7 +322,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeLength(value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Length thisSerializer.writeLength(value_1) @@ -342,7 +342,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -380,7 +380,7 @@ export class ArkCommonMethodPeer extends PeerNode { else if (TypeChecker.isImageSize(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ImageSize - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as ImageSize) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_backgroundImageSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -397,7 +397,7 @@ export class ArkCommonMethodPeer extends PeerNode { else if (TypeChecker.isAlignment(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Alignment - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as Alignment) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_backgroundImagePosition(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -474,7 +474,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isBorderStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as BorderStyle - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) @@ -485,7 +485,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { const value_1_top_value = (value_1_top as BorderStyle) - thisSerializer.writeInt32((value_1_top_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_top_value as BorderStyle) as int32)) } const value_1_right = value_1.right let value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -493,7 +493,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { const value_1_right_value = (value_1_right as BorderStyle) - thisSerializer.writeInt32((value_1_right_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_right_value as BorderStyle) as int32)) } const value_1_bottom = value_1.bottom let value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -501,7 +501,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { const value_1_bottom_value = (value_1_bottom as BorderStyle) - thisSerializer.writeInt32((value_1_bottom_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_bottom_value as BorderStyle) as int32)) } const value_1_left = value_1.left let value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -509,7 +509,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { const value_1_left_value = (value_1_left as BorderStyle) - thisSerializer.writeInt32((value_1_left_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_left_value as BorderStyle) as int32)) } } ArkUIGeneratedNativeModule._CommonMethod_borderStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -519,7 +519,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Length thisSerializer.writeLength(value_0) @@ -580,7 +580,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_0)) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as Color - thisSerializer.writeInt32((value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) @@ -612,7 +612,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_top_value)) { thisSerializer.writeInt8(0 as int32) const value_1_top_value_0 = value_1_top_value as Color - thisSerializer.writeInt32((value_1_top_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1 as int32) @@ -641,7 +641,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_right_value)) { thisSerializer.writeInt8(0 as int32) const value_1_right_value_0 = value_1_right_value as Color - thisSerializer.writeInt32((value_1_right_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1 as int32) @@ -670,7 +670,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_bottom_value)) { thisSerializer.writeInt8(0 as int32) const value_1_bottom_value_0 = value_1_bottom_value as Color - thisSerializer.writeInt32((value_1_bottom_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1 as int32) @@ -699,7 +699,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_left_value)) { thisSerializer.writeInt8(0 as int32) const value_1_left_value_0 = value_1_left_value as Color - thisSerializer.writeInt32((value_1_left_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1 as int32) @@ -730,7 +730,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Length thisSerializer.writeLength(value_0) @@ -798,7 +798,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isOutlineStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as OutlineStyle - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as OutlineStyle) as int32)) } else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) @@ -809,7 +809,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { const value_1_top_value = (value_1_top as OutlineStyle) - thisSerializer.writeInt32((value_1_top_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_top_value as OutlineStyle) as int32)) } const value_1_right = value_1.right let value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -817,7 +817,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { const value_1_right_value = (value_1_right as OutlineStyle) - thisSerializer.writeInt32((value_1_right_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_right_value as OutlineStyle) as int32)) } const value_1_bottom = value_1.bottom let value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -825,7 +825,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { const value_1_bottom_value = (value_1_bottom as OutlineStyle) - thisSerializer.writeInt32((value_1_bottom_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_bottom_value as OutlineStyle) as int32)) } const value_1_left = value_1.left let value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -833,7 +833,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { const value_1_left_value = (value_1_left as OutlineStyle) - thisSerializer.writeInt32((value_1_left_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_left_value as OutlineStyle) as int32)) } } ArkUIGeneratedNativeModule._CommonMethod_outlineStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -843,7 +843,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Dimension thisSerializer.writeLength(value_0) @@ -899,7 +899,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_0)) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as Color - thisSerializer.writeInt32((value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) @@ -931,7 +931,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_top_value)) { thisSerializer.writeInt8(0 as int32) const value_1_top_value_0 = value_1_top_value as Color - thisSerializer.writeInt32((value_1_top_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1 as int32) @@ -960,7 +960,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_right_value)) { thisSerializer.writeInt8(0 as int32) const value_1_right_value_0 = value_1_right_value as Color - thisSerializer.writeInt32((value_1_right_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1 as int32) @@ -989,7 +989,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_bottom_value)) { thisSerializer.writeInt8(0 as int32) const value_1_bottom_value_0 = value_1_bottom_value as Color - thisSerializer.writeInt32((value_1_bottom_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1 as int32) @@ -1018,7 +1018,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_1_left_value)) { thisSerializer.writeInt8(0 as int32) const value_1_left_value_0 = value_1_left_value as Color - thisSerializer.writeInt32((value_1_left_value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1 as int32) @@ -1049,7 +1049,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Dimension thisSerializer.writeLength(value_0) @@ -1105,7 +1105,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_0)) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as Color - thisSerializer.writeInt32((value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) @@ -1156,7 +1156,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.release() } hoverEffectAttribute(value: HoverEffect): void { - ArkUIGeneratedNativeModule._CommonMethod_hoverEffect(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_hoverEffect(this.peer.ptr, ((value as HoverEffect) as int32)) } onMouseAttribute(value: ((event: MouseEvent) => void)): void { const thisSerializer : Serializer = Serializer.hold() @@ -1272,7 +1272,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) @@ -1334,7 +1334,7 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_useEffect0(this.peer.ptr, value ? 1 : 0) } useEffect1Attribute(useEffect: boolean, effectType: EffectType): void { - ArkUIGeneratedNativeModule._CommonMethod_useEffect1(this.peer.ptr, useEffect ? 1 : 0, (effectType.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_useEffect1(this.peer.ptr, useEffect ? 1 : 0, ((effectType as EffectType) as int32)) } renderGroupAttribute(value: boolean): void { ArkUIGeneratedNativeModule._CommonMethod_renderGroup(this.peer.ptr, value ? 1 : 0) @@ -1403,7 +1403,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.release() } visibilityAttribute(value: Visibility): void { - ArkUIGeneratedNativeModule._CommonMethod_visibility(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_visibility(this.peer.ptr, ((value as Visibility) as int32)) } flexGrowAttribute(value: number): void { ArkUIGeneratedNativeModule._CommonMethod_flexGrow(this.peer.ptr, value) @@ -1429,7 +1429,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.release() } alignSelfAttribute(value: ItemAlign): void { - ArkUIGeneratedNativeModule._CommonMethod_alignSelf(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_alignSelf(this.peer.ptr, ((value as ItemAlign) as int32)) } displayPriorityAttribute(value: number): void { ArkUIGeneratedNativeModule._CommonMethod_displayPriority(this.peer.ptr, value) @@ -1438,10 +1438,10 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_zIndex(this.peer.ptr, value) } directionAttribute(value: Direction): void { - ArkUIGeneratedNativeModule._CommonMethod_direction(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_direction(this.peer.ptr, ((value as Direction) as int32)) } alignAttribute(value: Alignment): void { - ArkUIGeneratedNativeModule._CommonMethod_align(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_align(this.peer.ptr, ((value as Alignment) as int32)) } positionAttribute(value: Position | Edges | LocalizedEdges): void { const thisSerializer : Serializer = Serializer.hold() @@ -1737,7 +1737,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as GradientDirection) - thisSerializer.writeInt32((value_direction_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_direction_value as GradientDirection) as int32)) } const value_colors = value.colors thisSerializer.writeInt32(value_colors.length as int32) @@ -1749,7 +1749,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_colors_element_0)) { thisSerializer.writeInt8(0 as int32) const value_colors_element_0_0 = value_colors_element_0 as Color - thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_colors_element_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) @@ -1854,7 +1854,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_colors_element_0)) { thisSerializer.writeInt8(0 as int32) const value_colors_element_0_0 = value_colors_element_0 as Color - thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_colors_element_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) @@ -1915,7 +1915,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isColor(value_colors_element_0)) { thisSerializer.writeInt8(0 as int32) const value_colors_element_0_0 = value_colors_element_0 as Color - thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_colors_element_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) @@ -1964,7 +1964,7 @@ export class ArkCommonMethodPeer extends PeerNode { else if (TypeChecker.isShadowStyle(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ShadowStyle - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as ShadowStyle) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_shadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2163,7 +2163,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt32(value.length as int32) for (let i = 0; i < value.length; i++) { const value_element : ObscuredReasons = value[i] - thisSerializer.writeInt32((value_element.valueOf() as int32)) + thisSerializer.writeInt32(((value_element as ObscuredReasons) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_obscured(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2172,7 +2172,7 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_reuseId(this.peer.ptr, value) } renderFitAttribute(value: RenderFit): void { - ArkUIGeneratedNativeModule._CommonMethod_renderFit(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_renderFit(this.peer.ptr, ((value as RenderFit) as int32)) } gestureModifierAttribute(value: GestureModifier): void { ArkUIGeneratedNativeModule._CommonMethod_gestureModifier(this.peer.ptr, toPeerPtr(value)) @@ -2244,7 +2244,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt32(types_value.length as int32) for (let i = 0; i < types_value.length; i++) { const types_value_element : SafeAreaType = types_value[i] - thisSerializer.writeInt32((types_value_element.valueOf() as int32)) + thisSerializer.writeInt32(((types_value_element as SafeAreaType) as int32)) } } let edges_type : int32 = RuntimeType.UNDEFINED @@ -2255,7 +2255,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt32(edges_value.length as int32) for (let i = 0; i < edges_value.length; i++) { const edges_value_element : SafeAreaEdge = edges_value[i] - thisSerializer.writeInt32((edges_value_element.valueOf() as int32)) + thisSerializer.writeInt32(((edges_value_element as SafeAreaEdge) as int32)) } } ArkUIGeneratedNativeModule._CommonMethod_expandSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -2275,7 +2275,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(options_value_align_type as int32) if ((RuntimeType.UNDEFINED) != (options_value_align_type)) { const options_value_align_value = (options_value_align as Alignment) - thisSerializer.writeInt32((options_value_align_value.valueOf() as int32)) + thisSerializer.writeInt32(((options_value_align_value as Alignment) as int32)) } } ArkUIGeneratedNativeModule._CommonMethod_background(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -2311,7 +2311,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(repeat_type as int32) if ((RuntimeType.UNDEFINED) != (repeat_type)) { const repeat_value = (repeat as ImageRepeat) - thisSerializer.writeInt32((repeat_value.valueOf() as int32)) + thisSerializer.writeInt32(((repeat_value as ImageRepeat) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_backgroundImage(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2325,7 +2325,7 @@ export class ArkCommonMethodPeer extends PeerNode { const options_value = options! thisSerializer.writeBackgroundBlurStyleOptions(options_value) } - ArkUIGeneratedNativeModule._CommonMethod_backgroundBlurStyle(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CommonMethod_backgroundBlurStyle(this.peer.ptr, ((value as BlurStyle) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } foregroundBlurStyleAttribute(value: BlurStyle, options?: ForegroundBlurStyleOptions): void { @@ -2337,7 +2337,7 @@ export class ArkCommonMethodPeer extends PeerNode { const options_value = options! thisSerializer.writeForegroundBlurStyleOptions(options_value) } - ArkUIGeneratedNativeModule._CommonMethod_foregroundBlurStyle(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CommonMethod_foregroundBlurStyle(this.peer.ptr, ((value as BlurStyle) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } focusScopeId0Attribute(id: string, isGroup?: boolean): void { @@ -2378,7 +2378,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(priority_type as int32) if ((RuntimeType.UNDEFINED) != (priority_type)) { const priority_value = (priority as FocusPriority) - thisSerializer.writeInt32((priority_value.valueOf() as int32)) + thisSerializer.writeInt32(((priority_value as FocusPriority) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_focusScopePriority(this.peer.ptr, scopeId, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2427,7 +2427,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(mask_type as int32) if ((RuntimeType.UNDEFINED) != (mask_type)) { const mask_value = (mask as GestureMask) - thisSerializer.writeInt32((mask_value.valueOf() as int32)) + thisSerializer.writeInt32(((mask_value as GestureMask) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_gesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2476,7 +2476,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(mask_type as int32) if ((RuntimeType.UNDEFINED) != (mask_type)) { const mask_value = (mask as GestureMask) - thisSerializer.writeInt32((mask_value.valueOf() as int32)) + thisSerializer.writeInt32(((mask_value as GestureMask) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_priorityGesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2525,7 +2525,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(mask_type as int32) if ((RuntimeType.UNDEFINED) != (mask_type)) { const mask_value = (mask as GestureMask) - thisSerializer.writeInt32((mask_value.valueOf() as int32)) + thisSerializer.writeInt32(((mask_value as GestureMask) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_parallelGesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2576,7 +2576,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.release() } chainModeAttribute(direction: Axis, style: ChainStyle): void { - ArkUIGeneratedNativeModule._CommonMethod_chainMode(this.peer.ptr, (direction.valueOf() as int32), (style.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_chainMode(this.peer.ptr, ((direction as Axis) as int32), ((style as ChainStyle) as int32)) } dragPreviewOptionsAttribute(value: DragPreviewOptions, options?: DragInteractionOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -2627,9 +2627,9 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(type_type as int32) if ((RuntimeType.UNDEFINED) != (type_type)) { const type_value = (type as BlendApplyType) - thisSerializer.writeInt32((type_value.valueOf() as int32)) + thisSerializer.writeInt32(((type_value as BlendApplyType) as int32)) } - ArkUIGeneratedNativeModule._CommonMethod_blendMode(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CommonMethod_blendMode(this.peer.ptr, ((value as BlendMode) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } advancedBlendModeAttribute(effect: BlendMode | Blender, type?: BlendApplyType): void { @@ -2639,7 +2639,7 @@ export class ArkCommonMethodPeer extends PeerNode { if (TypeChecker.isBlendMode(effect)) { thisSerializer.writeInt8(0 as int32) const effect_0 = effect as BlendMode - thisSerializer.writeInt32((effect_0.valueOf() as int32)) + thisSerializer.writeInt32(((effect_0 as BlendMode) as int32)) } else if (RuntimeType.OBJECT == effect_type) { thisSerializer.writeInt8(1 as int32) @@ -2651,7 +2651,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(type_type as int32) if ((RuntimeType.UNDEFINED) != (type_type)) { const type_value = (type as BlendApplyType) - thisSerializer.writeInt32((type_value.valueOf() as int32)) + thisSerializer.writeInt32(((type_value as BlendApplyType) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_advancedBlendMode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2739,7 +2739,7 @@ export class ArkCommonMethodPeer extends PeerNode { const options_value = options! thisSerializer.writeContextMenuOptions(options_value) } - ArkUIGeneratedNativeModule._CommonMethod_bindContextMenu0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), (responseType.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonMethod_bindContextMenu0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), ((responseType as ResponseType) as int32)) thisSerializer.release() } bindContextMenu1Attribute(isShown: boolean, content: CustomBuilder, options?: ContextMenuOptions): void { @@ -2770,7 +2770,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(type_type as int32) if ((RuntimeType.UNDEFINED) != (type_type)) { const type_value = (type as ModalTransition) - thisSerializer.writeInt32((type_value.valueOf() as int32)) + thisSerializer.writeInt32(((type_value as ModalTransition) as int32)) } ArkUIGeneratedNativeModule._CommonMethod_bindContentCover0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2838,12 +2838,12 @@ export class ArkCommonMethodPeer extends PeerNode { else if (TypeChecker.isFunctionKey(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FunctionKey - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FunctionKey) as int32)) } thisSerializer.writeInt32(keys.length as int32) for (let i = 0; i < keys.length; i++) { const keys_element : ModifierKey = keys[i] - thisSerializer.writeInt32((keys_element.valueOf() as int32)) + thisSerializer.writeInt32(((keys_element as ModifierKey) as int32)) } let action_type : int32 = RuntimeType.UNDEFINED action_type = runtimeType(action) @@ -3021,7 +3021,7 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -3048,7 +3048,7 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -3086,10 +3086,10 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { thisSerializer.release() } strokeLineCapAttribute(value: LineCapStyle): void { - ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineCap(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineCap(this.peer.ptr, ((value as LineCapStyle) as int32)) } strokeLineJoinAttribute(value: LineJoinStyle): void { - ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineJoin(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineJoin(this.peer.ptr, ((value as LineJoinStyle) as int32)) } strokeMiterLimitAttribute(value: number | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -3211,7 +3211,7 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { return _peer } scrollBarAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBar(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBar(this.peer.ptr, ((value as BarState) as int32)) } scrollBarColorAttribute(value: Color | number | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -3220,7 +3220,7 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -3336,7 +3336,7 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { if (TypeChecker.isContentClipMode(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ContentClipMode - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as ContentClipMode) as int32)) } else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) @@ -3355,7 +3355,7 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const options_value = options! thisSerializer.writeEdgeEffectOptions(options_value) } - ArkUIGeneratedNativeModule._ScrollableCommonMethod_edgeEffect(this.peer.ptr, (edgeEffect.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ScrollableCommonMethod_edgeEffect(this.peer.ptr, ((edgeEffect as EdgeEffect) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } fadingEdgeAttribute(enabled?: boolean, options?: FadingEdgeOptions): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts index 6dd0876f00fae36a78e6064756cf4bf14ed1bd47..77313ee16037020e6dd4325aa112da064cf4704d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts index 28b1d3b4e80baba52a1a2cbc0de71ca6b7991a2a..909ef92f7847b8b4f9497bcb01cdf634c6b04e15 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts index a698a29aba6e27dd3e066a669326bbe8a58e7654..1b2447c68c39d8f487928a51491335029ecef7d2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts index 1994cdaba65c1cbb12f846e299f06d617f0fa02d..aedfb62f79fd8fe13d7a23abe0f6a65f282701a2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -95,7 +95,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_element_0)) { thisSerializer.writeInt8(0 as int32) const value_element_0_0 = value_element_0 as Color - thisSerializer.writeInt32((value_element_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_element_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_element_0_type) { thisSerializer.writeInt8(1 as int32) @@ -129,7 +129,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts index 5aa89ce0a03d13327b2d2a762f21562b723d40c5..98e2428221361a03b230428cc71cbc501ac8b12b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts index 0ed0046e1a4e5f93a0c2ec803c853ad88e147b8b..d8f93e66b9935d4113ee62166c2b8f53640c82c2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -83,7 +83,7 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -121,7 +121,7 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { thisSerializer.release() } lineCapAttribute(value: LineCapStyle): void { - ArkUIGeneratedNativeModule._DividerAttribute_lineCap(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._DividerAttribute_lineCap(this.peer.ptr, ((value as LineCapStyle) as int32)) } } export interface ArkDividerAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts index 0bc5861b28acab7459cda21e875081a951d67073..e4af5e137ec7a8be9645f42a0c07aeaab4b0f16c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts index ac411581291764005054194f600c29df4dd050a6..cb200283bd5bac6a8530ca8f3eea5da896c5a644 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index 6bacd27c1a7a59fba1160b124220b202fc108104..0e1bdb13aeefc7860a2769927613b30121ba5cea 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -74,7 +74,7 @@ export class ArkEmbeddedComponentPeer extends ArkCommonMethodPeer { setEmbeddedComponentOptionsAttribute(loader: Want, type: EmbeddedType): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeWant(loader) - ArkUIGeneratedNativeModule._EmbeddedComponentInterface_setEmbeddedComponentOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), (type.valueOf() as int32)) + ArkUIGeneratedNativeModule._EmbeddedComponentInterface_setEmbeddedComponentOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), ((type as EmbeddedType) as int32)) thisSerializer.release() } onTerminatedAttribute(value: ((parameter: TerminationInfo) => void)): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts index 395d17c1fe321c3b90a021d8c247f3f99134d575..89d93b2ea3bc1fd1166c1f1a8d1da1c5139db201 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts index 58d8f1ed0b26046b1d5dd177f790cc48d45cf62b..61f54288d992c0d7d864fb105b8a593e6261ba85 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts index 8914681ca52889b72f037fbd25c5b2b95d2148bb..b127af4b8f9da782839a8f340062468856191a00 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -83,7 +83,7 @@ export class ArkFolderStackPeer extends ArkCommonMethodPeer { thisSerializer.release() } alignContentAttribute(value: Alignment): void { - ArkUIGeneratedNativeModule._FolderStackAttribute_alignContent(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._FolderStackAttribute_alignContent(this.peer.ptr, ((value as Alignment) as int32)) } onFolderStateChangeAttribute(value: OnFoldStatusChangeCallback): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts index 9875a7808844b1fe129af56f0f3d79cd64e8b141..eca60724bbcb3d01040af9360e824e72f8c7ac91 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -86,13 +86,13 @@ export class ArkFormComponentPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._FormComponentAttribute_moduleName(this.peer.ptr, value) } dimensionAttribute(value: FormDimension): void { - ArkUIGeneratedNativeModule._FormComponentAttribute_dimension(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._FormComponentAttribute_dimension(this.peer.ptr, ((value as FormDimension) as int32)) } allowUpdateAttribute(value: boolean): void { ArkUIGeneratedNativeModule._FormComponentAttribute_allowUpdate(this.peer.ptr, value ? 1 : 0) } visibilityAttribute(value: Visibility): void { - ArkUIGeneratedNativeModule._FormComponentAttribute_visibility(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._FormComponentAttribute_visibility(this.peer.ptr, ((value as Visibility) as int32)) } onAcquiredAttribute(value: ((parameter: FormCallbackInfo) => void)): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts index d7ce7be641c4ddfb1ee2488c9055f6d77ed9d749..b0e8ccd30095056f67374a23514d2e5b2d25b404 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts index ff11b27e33ed8d138a1499a79e17d5c013aefaeb..d032ef8f53ddf5d3c1e2fbc2a174cd721f4fbc36 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -98,7 +98,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_0)) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as Color - thisSerializer.writeInt32((value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) @@ -138,7 +138,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_2_element_0_0)) { thisSerializer.writeInt8(0 as int32) const value_2_element_0_0_0 = value_2_element_0_0 as Color - thisSerializer.writeInt32((value_2_element_0_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_2_element_0_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_2_element_0_0_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts index b3fba760af1cb35f66fc0cb5ad4a7e2925000ca7..9c8d429d0a5ad7269d5c10076edfdc28d136f2d1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts index 841ada83b3db31a86b2832cdfc8d1b17435a1c1c..0a2dccc2b6aaf29ad99dbd88883f2270999587ab 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts index aa9de56b2a9f3e65bfde6781276868bc0205c839..3848929724a3fd40fde51ef2fe11f2b57d77271d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts index 90fbc8230472aa1728b9d0ea7a27c8fa8a8a188b..33b91d749ca3bbc3df70b3d1eadbd2c7dc015fd7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -128,7 +128,7 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -144,7 +144,7 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { thisSerializer.release() } scrollBarAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._GridAttribute_scrollBar(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._GridAttribute_scrollBar(this.peer.ptr, ((value as BarState) as int32)) } onScrollBarUpdateAttribute(value: ((index: number,offset: number) => ComputedBarAttribute)): void { const thisSerializer : Serializer = Serializer.hold() @@ -180,7 +180,7 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { ArkUIGeneratedNativeModule._GridAttribute_cellLength(this.peer.ptr, value) } layoutDirectionAttribute(value: GridDirection): void { - ArkUIGeneratedNativeModule._GridAttribute_layoutDirection(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._GridAttribute_layoutDirection(this.peer.ptr, ((value as GridDirection) as int32)) } supportAnimationAttribute(value: boolean): void { ArkUIGeneratedNativeModule._GridAttribute_supportAnimation(this.peer.ptr, value ? 1 : 0) @@ -248,7 +248,7 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { thisSerializer.writeInt8(value_type as int32) if ((RuntimeType.UNDEFINED) != (value_type)) { const value_value = (value as GridItemAlignment) - thisSerializer.writeInt32((value_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_value as GridItemAlignment) as int32)) } ArkUIGeneratedNativeModule._GridAttribute_alignItems(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -298,7 +298,7 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const options_value = options! thisSerializer.writeEdgeEffectOptions(options_value) } - ArkUIGeneratedNativeModule._GridAttribute_edgeEffect(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GridAttribute_edgeEffect(this.peer.ptr, ((value as EdgeEffect) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts index 3eb6a48d03fb85edfc2ff3655d0b2313bba493a4..ae7193c375c7e34e983c8222f5f69b5d14b08ee5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -89,7 +89,7 @@ export class ArkGridRowPeer extends ArkCommonMethodPeer { thisSerializer.release() } alignItemsAttribute(value: ItemAlign): void { - ArkUIGeneratedNativeModule._GridRowAttribute_alignItems(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._GridRowAttribute_alignItems(this.peer.ptr, ((value as ItemAlign) as int32)) } } export interface ArkGridRowAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts index cf6290fd3625f9bf84a2fe1719b214732759fc3f..117e11855194df4c87645952ff3dc5302d574e65 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -112,7 +112,7 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index 675bc326be7bfaf57feecd8e196add8d6b4453a7..fa05c292cb76384ff1839272c714b6a6d1e431ce 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -84,7 +84,7 @@ export class ArkImageAnimatorPeer extends ArkCommonMethodPeer { thisSerializer.release() } stateAttribute(value: AnimationStatus): void { - ArkUIGeneratedNativeModule._ImageAnimatorAttribute_state(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAnimatorAttribute_state(this.peer.ptr, ((value as AnimationStatus) as int32)) } durationAttribute(value: number): void { ArkUIGeneratedNativeModule._ImageAnimatorAttribute_duration(this.peer.ptr, value) @@ -99,7 +99,7 @@ export class ArkImageAnimatorPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ImageAnimatorAttribute_preDecode(this.peer.ptr, value) } fillModeAttribute(value: FillMode): void { - ArkUIGeneratedNativeModule._ImageAnimatorAttribute_fillMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAnimatorAttribute_fillMode(this.peer.ptr, ((value as FillMode) as int32)) } iterationsAttribute(value: number): void { ArkUIGeneratedNativeModule._ImageAnimatorAttribute_iterations(this.peer.ptr, value) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts index 714065b808fabadb5bd4375317d3beceb5f8c628..1db2d977fbb21d16ea55dbecde83e8581c99ec51 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -137,7 +137,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { else if (TypeChecker.isImageContent(src)) { thisSerializer.writeInt8(3 as int32) const src_3 = src as ImageContent - thisSerializer.writeInt32((src_3.valueOf() as int32)) + thisSerializer.writeInt32(((src_3 as ImageContent) as int32)) } ArkUIGeneratedNativeModule._ImageInterface_setImageOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -185,7 +185,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = value as string thisSerializer.writeString(value_0) } - else if (isResource(value)) { + else if (TypeChecker.isResource(value, false, false, false, false, false)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -211,7 +211,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -232,22 +232,22 @@ export class ArkImagePeer extends ArkCommonMethodPeer { thisSerializer.release() } objectFitAttribute(value: ImageFit): void { - ArkUIGeneratedNativeModule._ImageAttribute_objectFit(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAttribute_objectFit(this.peer.ptr, ((value as ImageFit) as int32)) } objectRepeatAttribute(value: ImageRepeat): void { - ArkUIGeneratedNativeModule._ImageAttribute_objectRepeat(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAttribute_objectRepeat(this.peer.ptr, ((value as ImageRepeat) as int32)) } autoResizeAttribute(value: boolean): void { ArkUIGeneratedNativeModule._ImageAttribute_autoResize(this.peer.ptr, value ? 1 : 0) } renderModeAttribute(value: ImageRenderMode): void { - ArkUIGeneratedNativeModule._ImageAttribute_renderMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAttribute_renderMode(this.peer.ptr, ((value as ImageRenderMode) as int32)) } dynamicRangeModeAttribute(value: DynamicRangeMode): void { - ArkUIGeneratedNativeModule._ImageAttribute_dynamicRangeMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAttribute_dynamicRangeMode(this.peer.ptr, ((value as DynamicRangeMode) as int32)) } interpolationAttribute(value: ImageInterpolation): void { - ArkUIGeneratedNativeModule._ImageAttribute_interpolation(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAttribute_interpolation(this.peer.ptr, ((value as ImageInterpolation) as int32)) } sourceSizeAttribute(value: ImageSourceSize): void { const thisSerializer : Serializer = Serializer.hold() @@ -276,7 +276,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._ImageAttribute_copyOption(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageAttribute_copyOption(this.peer.ptr, ((value as CopyOptions) as int32)) } draggableAttribute(value: boolean): void { ArkUIGeneratedNativeModule._ImageAttribute_draggable(this.peer.ptr, value ? 1 : 0) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts index 002924fbcace374b8a49369db072ce932b815f61..2213124ba0378a515c5a48a13e4298d9ba5bf1aa 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -101,7 +101,7 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { thisSerializer.release() } verticalAlignAttribute(value: ImageSpanAlignment): void { - ArkUIGeneratedNativeModule._ImageSpanAttribute_verticalAlign(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageSpanAttribute_verticalAlign(this.peer.ptr, ((value as ImageSpanAlignment) as int32)) } colorFilterAttribute(value: ColorFilter | DrawingColorFilter): void { const thisSerializer : Serializer = Serializer.hold() @@ -121,7 +121,7 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { thisSerializer.release() } objectFitAttribute(value: ImageFit): void { - ArkUIGeneratedNativeModule._ImageSpanAttribute_objectFit(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ImageSpanAttribute_objectFit(this.peer.ptr, ((value as ImageFit) as int32)) } onCompleteAttribute(value: ImageCompleteCallback): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 69a3fd200f463a3bb01907cc9b2440bdec38a596..f97bb416e1f61dd4aae03ba3bc80b8e8001aecc4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts index 56a60692693bec9231e48495121242bf822ee416..d1afdb3b8e0208959f44cfe08fc60f371243de7e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 75a776d6fc17028b03288aec59962acc798c1396..0684b0648170b4c448ca69c2a10c837cdb74eb57 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts index 2b453c3cd31cadf8d200cf9da5b18c9dd22e6593..23fc632c7627a5ba0c4c11292c5649d1cd5a63ba 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts index 7e0507c0eaeb96147a6dcb289431fd8334190362..bf61120655b291a9630f749819a851cdb34d34cc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -95,7 +95,7 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { thisSerializer.release() } stickyAttribute(value: Sticky): void { - ArkUIGeneratedNativeModule._ListItemAttribute_sticky(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ListItemAttribute_sticky(this.peer.ptr, ((value as Sticky) as int32)) } editableAttribute(value: boolean | EditMode): void { const thisSerializer : Serializer = Serializer.hold() @@ -109,7 +109,7 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { else if (TypeChecker.isEditMode(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EditMode - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as EditMode) as int32)) } ArkUIGeneratedNativeModule._ListItemAttribute_editable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts index 4a878ae7f70a10c83946706eafb965d7fd8c4be8..2f18d45033b9ed0102a7f886f2c11122c6b4f52f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -85,13 +85,13 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { thisSerializer.release() } alignListItemAttribute(value: ListItemAlign): void { - ArkUIGeneratedNativeModule._ListAttribute_alignListItem(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ListAttribute_alignListItem(this.peer.ptr, ((value as ListItemAlign) as int32)) } listDirectionAttribute(value: Axis): void { - ArkUIGeneratedNativeModule._ListAttribute_listDirection(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ListAttribute_listDirection(this.peer.ptr, ((value as Axis) as int32)) } scrollBarAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._ListAttribute_scrollBar(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ListAttribute_scrollBar(this.peer.ptr, ((value as BarState) as int32)) } contentStartOffsetAttribute(value: number): void { ArkUIGeneratedNativeModule._ListAttribute_contentStartOffset(this.peer.ptr, value) @@ -133,10 +133,10 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { thisSerializer.release() } stickyAttribute(value: StickyStyle): void { - ArkUIGeneratedNativeModule._ListAttribute_sticky(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ListAttribute_sticky(this.peer.ptr, ((value as StickyStyle) as int32)) } scrollSnapAlignAttribute(value: ScrollSnapAlign): void { - ArkUIGeneratedNativeModule._ListAttribute_scrollSnapAlign(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ListAttribute_scrollSnapAlign(this.peer.ptr, ((value as ScrollSnapAlign) as int32)) } nestedScrollAttribute(value: NestedScrollOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -296,7 +296,7 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const options_value = options! thisSerializer.writeEdgeEffectOptions(options_value) } - ArkUIGeneratedNativeModule._ListAttribute_edgeEffect(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ListAttribute_edgeEffect(this.peer.ptr, ((value as EdgeEffect) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index e912b71077c1fe5052cce58929b95ab8ec4512f8..29f3698b4db0d323180bfdd15fb8ddb804d50012 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -80,7 +80,7 @@ export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 1cc38b13fb1b701c99989f7abc84ac348b1bcfeb..c7105b470e33392f1224e9e7c2f3376f4aa0f429 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts index a15c934b8328a624072e6295acc047e03820df18..a1361d7079febeceee32aa2a2a9430d74b50c011 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -83,7 +83,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -121,7 +121,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -149,7 +149,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { thisSerializer.release() } marqueeUpdateStrategyAttribute(value: MarqueeUpdateStrategy): void { - ArkUIGeneratedNativeModule._MarqueeAttribute_marqueeUpdateStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._MarqueeAttribute_marqueeUpdateStrategy(this.peer.ptr, ((value as MarqueeUpdateStrategy) as int32)) } onStartAttribute(value: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index 46cdbe3cfd092805ee277d5bea3cffcd82518455..979d8fc93034d5659eafdd0d4475197f9335180d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index d9a7b8944da508fec2059315bafd5fbab7c432f3..4857647c853abd2734d1c7f9383dd74f70c6c55f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts index f6ba3f445ed6ebc36b13ed1d945f851d13198e9b..490d3bd579086794495002a5f1a13000d903793a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -148,7 +148,7 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -181,7 +181,7 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts index d98ee19b14ff7f50189f9e0bf4b0704ea5e7038f..a803d4e888b39d677db6edf70f0264c848b57e5b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -89,7 +89,7 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -113,7 +113,7 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Dimension thisSerializer.writeLength(value_0) @@ -182,7 +182,7 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { thisSerializer.release() } subMenuExpandingModeAttribute(value: SubMenuExpandingMode): void { - ArkUIGeneratedNativeModule._MenuAttribute_subMenuExpandingMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._MenuAttribute_subMenuExpandingMode(this.peer.ptr, ((value as SubMenuExpandingMode) as int32)) } } export interface ArkMenuAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 11e1b1c9b00528709f6706f4ed8330974343acc0..5ae8d42cb5dea1be750fcc220737519370365667 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -100,7 +100,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.release() } modeAttribute(value: NavDestinationMode): void { - ArkUIGeneratedNativeModule._NavDestinationAttribute_mode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._NavDestinationAttribute_mode(this.peer.ptr, ((value as NavDestinationMode) as int32)) } backButtonIconAttribute(value: ResourceStr | PixelMap | SymbolGlyphModifier): void { const thisSerializer : Serializer = Serializer.hold() @@ -211,7 +211,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.release() } systemTransitionAttribute(value: NavigationSystemTransitionType): void { - ArkUIGeneratedNativeModule._NavDestinationAttribute_systemTransition(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._NavDestinationAttribute_systemTransition(this.peer.ptr, ((value as NavigationSystemTransitionType) as int32)) } titleAttribute(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -237,7 +237,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const value_3 = value as NavDestinationCustomTitle thisSerializer.writeNavDestinationCustomTitle(value_3) } - else if (isResource(value)) { + else if (TypeChecker.isResource(value, false, false, false, false, false)) { thisSerializer.writeInt8(4 as int32) const value_4 = value as Resource thisSerializer.writeResource(value_4) @@ -302,7 +302,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeInt32(types_value.length as int32) for (let i = 0; i < types_value.length; i++) { const types_value_element : LayoutSafeAreaType = types_value[i] - thisSerializer.writeInt32((types_value_element.valueOf() as int32)) + thisSerializer.writeInt32(((types_value_element as LayoutSafeAreaType) as int32)) } } let edges_type : int32 = RuntimeType.UNDEFINED @@ -313,7 +313,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeInt32(edges_value.length as int32) for (let i = 0; i < edges_value.length; i++) { const edges_value_element : LayoutSafeAreaEdge = edges_value[i] - thisSerializer.writeInt32((edges_value_element.valueOf() as int32)) + thisSerializer.writeInt32(((edges_value_element as LayoutSafeAreaEdge) as int32)) } } ArkUIGeneratedNativeModule._NavDestinationAttribute_ignoreLayoutSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts index ace5178a22b617ce86b4e7feff71335a03857858..d12c9ff9474f4a9192d2838cb20bda1ace2bbe22 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -86,7 +86,7 @@ export class ArkNavRouterPeer extends ArkCommonMethodPeer { thisSerializer.release() } modeAttribute(value: NavRouteMode): void { - ArkUIGeneratedNativeModule._NavRouterAttribute_mode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._NavRouterAttribute_mode(this.peer.ptr, ((value as NavRouteMode) as int32)) } } export interface ArkNavRouterAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts index 62b64758ed5405bccf64c2b6945988b91899dfb5..91f78a310ef95351e5bb247bedff5b9843146ad4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -85,7 +85,7 @@ export class ArkNavigatorPeer extends ArkCommonMethodPeer { thisSerializer.writeInt8(value_value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_value_type_type)) { const value_value_type_value = (value_value_type as NavigationType) - thisSerializer.writeInt32((value_value_type_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_value_type_value as NavigationType) as int32)) } } ArkUIGeneratedNativeModule._NavigatorInterface_setNavigatorOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -98,7 +98,7 @@ export class ArkNavigatorPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._NavigatorAttribute_active(this.peer.ptr, value ? 1 : 0) } typeAttribute(value: NavigationType): void { - ArkUIGeneratedNativeModule._NavigatorAttribute_type(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._NavigatorAttribute_type(this.peer.ptr, ((value as NavigationType) as int32)) } targetAttribute(value: string): void { ArkUIGeneratedNativeModule._NavigatorAttribute_target(this.peer.ptr, value) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts index 39413f18af3c3e89802448984a72ae823c361d66..75428ab910c5eb54a815dc32271f9ad2f21d0eaf 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts index 0d8c6a433c87576783599bd7f36f918e1cc64177..3787450534bf3e7cf19bf0843e80b5857a71ca7b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -74,10 +74,10 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._PanelInterface_setPanelOptions(this.peer.ptr, show ? 1 : 0) } modeAttribute(value: PanelMode): void { - ArkUIGeneratedNativeModule._PanelAttribute_mode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._PanelAttribute_mode(this.peer.ptr, ((value as PanelMode) as int32)) } typeAttribute(value: PanelType): void { - ArkUIGeneratedNativeModule._PanelAttribute_type(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._PanelAttribute_type(this.peer.ptr, ((value as PanelType) as int32)) } dragBarAttribute(value: boolean): void { ArkUIGeneratedNativeModule._PanelAttribute_dragBar(this.peer.ptr, value ? 1 : 0) @@ -86,7 +86,7 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Dimension thisSerializer.writeLength(value_0) @@ -160,7 +160,7 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 2a9b410e8db52b76bb3481b12e2961d18ae08bf2..08361fc343aee807aeb99e0e96c37c6ab2b81e4a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts index c9f446837841e22d9ebd37c4471cd89d56bc81d9..8d6fd6961e64e0b1c62f1e2d7ada5244c3eb1f75 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts index 25c306566ee33292e0ab47fe51b35793033404fd..df22ed18201126d1c182802c53374df3e961a3de 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -96,7 +96,7 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -123,7 +123,7 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -150,7 +150,7 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -177,7 +177,7 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -204,7 +204,7 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts index 81c7e95e66d0a29c76bc5c46b0260cedf56f71dd..eb235e180e9e05465fe302bc6bd92c2cb7f412b5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts index 668343e543bfa80f17f1d4affa479783a33b6696..2691878db2a0bbccae7b5d16c3583f6c9e566cbc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts index 77fe4f3b47c218a57503c16d14c9aa6895441f7c..8cead18cae7020c14d6e7ae7167f1d8958204df9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts index 83177c7b598d29367eda23969216874bd2a6fe36..288b14727f3409feeae868d78c4fac1c0471a7a7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -92,7 +92,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_0)) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as Color - thisSerializer.writeInt32((value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts index 04f7e0bdb3c155e7b6949cc817468d1840f8b2ee..4442e9b1d1ef616b70db665fc150b904be485225 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -80,7 +80,7 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -107,7 +107,7 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts index 36540f5b81cdac4342f33deb3ca48e3ae4888005..2d636c900457727d795d0aae68e726563fef1315 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts index 88158310008d64358823ce29e189d3b2b2d72ec4..4d8bd267fe520f70cade0887c9e0eff52d384fc3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts index 31593f96a579943cda6f2f9adfb321aab452a16a..0e23a0ab07f1eb947a4a081b0699e974254691f7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts index 3d20ce815508296dcd4ef25505e55316c4eb5ec9..5db500291de801f90b657e3f1463ce92bf597f60 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index 5eac90eb6be19198a4ff198f069d1dd9c9dff5b4..f49aeac0e52ce1001b0a04ce4bf18a2259fec229 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index 0375ed2343a505d20e88375fa57cb558e6a3428a..68b7aeb6e58e4a1a7a01689ab370005714b46f33 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts index fef4be9f92709d430442382a51eb9cbc7ec92daf..b5c7ed46c687acf6696512760e66969627a45cd0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -134,7 +134,7 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionsAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._RichEditorAttribute_copyOptions(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._RichEditorAttribute_copyOptions(this.peer.ptr, ((value as CopyOptions) as int32)) } onPasteAttribute(value: PasteEventCallback): void { const thisSerializer : Serializer = Serializer.hold() @@ -161,7 +161,7 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -188,7 +188,7 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -215,7 +215,7 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { thisSerializer.release() } enterKeyTypeAttribute(value: EnterKeyType): void { - ArkUIGeneratedNativeModule._RichEditorAttribute_enterKeyType(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._RichEditorAttribute_enterKeyType(this.peer.ptr, ((value as EnterKeyType) as int32)) } onSubmitAttribute(value: SubmitCallback): void { const thisSerializer : Serializer = Serializer.hold() @@ -257,7 +257,7 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RichEditorAttribute_enableHapticFeedback(this.peer.ptr, value ? 1 : 0) } barStateAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._RichEditorAttribute_barState(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._RichEditorAttribute_barState(this.peer.ptr, ((value as BarState) as int32)) } bindSelectionMenuAttribute(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -267,12 +267,12 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { if (TypeChecker.isResponseType(responseType)) { thisSerializer.writeInt8(0 as int32) const responseType_0 = responseType as ResponseType - thisSerializer.writeInt32((responseType_0.valueOf() as int32)) + thisSerializer.writeInt32(((responseType_0 as ResponseType) as int32)) } else if (TypeChecker.isRichEditorResponseType(responseType)) { thisSerializer.writeInt8(1 as int32) const responseType_1 = responseType as RichEditorResponseType - thisSerializer.writeInt32((responseType_1.valueOf() as int32)) + thisSerializer.writeInt32(((responseType_1 as RichEditorResponseType) as int32)) } let options_type : int32 = RuntimeType.UNDEFINED options_type = runtimeType(options) @@ -281,7 +281,7 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const options_value = options! thisSerializer.writeSelectionMenuOptions(options_value) } - ArkUIGeneratedNativeModule._RichEditorAttribute_bindSelectionMenu(this.peer.ptr, (spanType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RichEditorAttribute_bindSelectionMenu(this.peer.ptr, ((spanType as RichEditorSpanType) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } customKeyboardAttribute(value: CustomBuilder, options?: KeyboardOptions): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts index 15783b671fb18c69dc7b491d00d275cb0fae4b0d..0b39b67c1072ab2c583d7f46f7f2df133a86315c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts index d876670c1e8de2d2458c1e42f6515414a43d201c..05c84cf060ee2a6aa8981766814e7b5965fe8091 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts index c98e2983d9d9863fe8bc56b847d11eb99db66ca9..c2c34186371b46cc1ee99b1bbf30fba0fcc2900e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -83,10 +83,10 @@ export class ArkRowPeer extends ArkCommonMethodPeer { thisSerializer.release() } alignItemsAttribute(value: VerticalAlign): void { - ArkUIGeneratedNativeModule._RowAttribute_alignItems(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._RowAttribute_alignItems(this.peer.ptr, ((value as VerticalAlign) as int32)) } justifyContentAttribute(value: FlexAlign): void { - ArkUIGeneratedNativeModule._RowAttribute_justifyContent(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._RowAttribute_justifyContent(this.peer.ptr, ((value as FlexAlign) as int32)) } pointLightAttribute(value: PointLightStyle): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts index 5462372b38908aab0961bfa3e7466fcd8265df41..8b6147adbd7ecf9e2d085ac6505cc963616aafcf 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts index 1e72a8e4bb24a9704f4b68847ee5cf3056643a39..142d647591c8df88e2c751916cc73d675af33e00 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts index 2c9182810b7ce54695b22d375cd4856cb2b6059d..9be2d3655e4ebebb575a3b3604284d6ff472342d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts index ef291e2a8f9f6a03343a318d4ebc5012b70da8c8..3207bbf39dfa1647d23da0dcbb4f670f9d1efe04 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts index b5f35406c40212928a877d4bc2b650b425fc2985..bbde10d10ea5d06f15f5e22372f509d5c404d72e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -84,7 +84,7 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { thisSerializer.release() } scrollableAttribute(value: ScrollDirection): void { - ArkUIGeneratedNativeModule._ScrollAttribute_scrollable(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ScrollAttribute_scrollable(this.peer.ptr, ((value as ScrollDirection) as int32)) } onScrollAttribute(value: ((first: number,last: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() @@ -135,7 +135,7 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { thisSerializer.release() } scrollBarAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._ScrollAttribute_scrollBar(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ScrollAttribute_scrollBar(this.peer.ptr, ((value as BarState) as int32)) } scrollBarColorAttribute(value: Color | number | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -144,7 +144,7 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -232,7 +232,7 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const options_value = options! thisSerializer.writeEdgeEffectOptions(options_value) } - ArkUIGeneratedNativeModule._ScrollAttribute_edgeEffect(this.peer.ptr, (edgeEffect.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ScrollAttribute_edgeEffect(this.peer.ptr, ((edgeEffect as EdgeEffect) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts index ecb8413d44d7884c40b6143b4c8819bf8d87927d..cd20962fb1f765daa850cfed85789cb131d62761 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -93,7 +93,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -163,7 +163,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -196,7 +196,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -241,7 +241,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { thisSerializer.release() } enterKeyTypeAttribute(value: EnterKeyType): void { - ArkUIGeneratedNativeModule._SearchAttribute_enterKeyType(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SearchAttribute_enterKeyType(this.peer.ptr, ((value as EnterKeyType) as int32)) } onSubmit0Attribute(value: ((breakpoints: string) => void)): void { const thisSerializer : Serializer = Serializer.hold() @@ -292,13 +292,13 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._SearchAttribute_copyOption(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SearchAttribute_copyOption(this.peer.ptr, ((value as CopyOptions) as int32)) } maxLengthAttribute(value: number): void { ArkUIGeneratedNativeModule._SearchAttribute_maxLength(this.peer.ptr, value) } textAlignAttribute(value: TextAlign): void { - ArkUIGeneratedNativeModule._SearchAttribute_textAlign(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SearchAttribute_textAlign(this.peer.ptr, ((value as TextAlign) as int32)) } enableKeyboardOnFocusAttribute(value: boolean): void { ArkUIGeneratedNativeModule._SearchAttribute_enableKeyboardOnFocus(this.peer.ptr, value ? 1 : 0) @@ -401,7 +401,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { thisSerializer.release() } typeAttribute(value: SearchType): void { - ArkUIGeneratedNativeModule._SearchAttribute_type(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SearchAttribute_type(this.peer.ptr, ((value as SearchType) as int32)) } fontFeatureAttribute(value: string): void { ArkUIGeneratedNativeModule._SearchAttribute_fontFeature(this.peer.ptr, value) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index 1bc11fd68a51432f723ee10e85562d895815bc75..61ccb05766415be278476fb7e7c905346eb6df35 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -50,7 +50,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._SecurityComponentMethod_iconSize(this.peer.ptr, value) } layoutDirectionAttribute(value: SecurityComponentLayoutDirection): void { - ArkUIGeneratedNativeModule._SecurityComponentMethod_layoutDirection(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SecurityComponentMethod_layoutDirection(this.peer.ptr, ((value as SecurityComponentLayoutDirection) as int32)) } positionAttribute(value: Position): void { const thisSerializer : Serializer = Serializer.hold() @@ -90,7 +90,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._SecurityComponentMethod_fontSize(this.peer.ptr, value) } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._SecurityComponentMethod_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SecurityComponentMethod_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeightAttribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -104,7 +104,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -138,7 +138,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -165,7 +165,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -192,7 +192,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -213,7 +213,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { thisSerializer.release() } borderStyleAttribute(value: BorderStyle): void { - ArkUIGeneratedNativeModule._SecurityComponentMethod_borderStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SecurityComponentMethod_borderStyle(this.peer.ptr, ((value as BorderStyle) as int32)) } borderWidthAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._SecurityComponentMethod_borderWidth(this.peer.ptr, value) @@ -225,7 +225,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -252,7 +252,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPadding(value, false, false, false, false))) { + if (TypeChecker.isPadding(value, false, false, false, false)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Padding const value_0_top = value_0.top @@ -288,7 +288,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { thisSerializer.writeLength(value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Dimension thisSerializer.writeLength(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts index 3a3c61f875e9a31d4ac94a5338a7e1fc51de34b7..9e45076c7e4eb6ecd9e4909aa847b49e72212fc1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -129,7 +129,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -156,7 +156,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -189,7 +189,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -216,7 +216,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -249,7 +249,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -279,13 +279,13 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SelectAttribute_space(this.peer.ptr, value) } arrowPositionAttribute(value: ArrowPosition): void { - ArkUIGeneratedNativeModule._SelectAttribute_arrowPosition(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SelectAttribute_arrowPosition(this.peer.ptr, ((value as ArrowPosition) as int32)) } optionWidthAttribute(value: Dimension | OptionWidthMode): void { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Dimension thisSerializer.writeLength(value_0) @@ -308,7 +308,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -329,10 +329,10 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { thisSerializer.release() } menuBackgroundBlurStyleAttribute(value: BlurStyle): void { - ArkUIGeneratedNativeModule._SelectAttribute_menuBackgroundBlurStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SelectAttribute_menuBackgroundBlurStyle(this.peer.ptr, ((value as BlurStyle) as int32)) } controlSizeAttribute(value: ControlSize): void { - ArkUIGeneratedNativeModule._SelectAttribute_controlSize(this.peer.ptr, (value as int32)) + ArkUIGeneratedNativeModule._SelectAttribute_controlSize(this.peer.ptr, ((value as ControlSize) as int32)) } menuItemContentModifierAttribute(value: ContentModifier): void { const thisSerializer : Serializer = Serializer.hold() @@ -364,7 +364,7 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const offset_value_dy = offset_value.dy thisSerializer.writeLength(offset_value_dy) } - ArkUIGeneratedNativeModule._SelectAttribute_menuAlign(this.peer.ptr, (alignType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SelectAttribute_menuAlign(this.peer.ptr, ((alignType as MenuAlignType) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } _onChangeEvent_selectedAttribute(callback: ((selected: number | Resource) => void)): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts index b8fa2568d34d7722e8a6629eb18ac14a0ba2fd79..aed423136f5a0c9fad7286b77838e76a58b11327 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -89,7 +89,7 @@ export class ArkShapePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -116,7 +116,7 @@ export class ArkShapePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -164,10 +164,10 @@ export class ArkShapePeer extends ArkCommonMethodPeer { thisSerializer.release() } strokeLineCapAttribute(value: LineCapStyle): void { - ArkUIGeneratedNativeModule._ShapeAttribute_strokeLineCap(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ShapeAttribute_strokeLineCap(this.peer.ptr, ((value as LineCapStyle) as int32)) } strokeLineJoinAttribute(value: LineJoinStyle): void { - ArkUIGeneratedNativeModule._ShapeAttribute_strokeLineJoin(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._ShapeAttribute_strokeLineJoin(this.peer.ptr, ((value as LineJoinStyle) as int32)) } strokeMiterLimitAttribute(value: number | string): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts index 5a8acf3e61a3c82a1f0c502a9c2ddc4d066186e3..4505a274896157e86a8684aa9f03e63a50929455 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -78,7 +78,7 @@ export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { thisSerializer.writeInt8(type_type as int32) if ((RuntimeType.UNDEFINED) != (type_type)) { const type_value = (type as SideBarContainerType) - thisSerializer.writeInt32((type_value.valueOf() as int32)) + thisSerializer.writeInt32(((type_value as SideBarContainerType) as int32)) } ArkUIGeneratedNativeModule._SideBarContainerInterface_setSideBarContainerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -123,7 +123,7 @@ export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SideBarContainerAttribute_autoHide(this.peer.ptr, value ? 1 : 0) } sideBarPositionAttribute(value: SideBarPosition): void { - ArkUIGeneratedNativeModule._SideBarContainerAttribute_sideBarPosition(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SideBarContainerAttribute_sideBarPosition(this.peer.ptr, ((value as SideBarPosition) as int32)) } dividerAttribute(value?: DividerStyle): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts index 90de5ff10ee4c2b2583fd72ddbd78e5198982b7f..e1b90032a7282a77a4591469bf07df4af4d05da1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -90,7 +90,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -122,7 +122,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_0)) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as Color - thisSerializer.writeInt32((value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) @@ -155,7 +155,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -200,7 +200,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -230,7 +230,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -272,7 +272,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SliderAttribute_stepSize(this.peer.ptr, value) } sliderInteractionModeAttribute(value: SliderInteraction): void { - ArkUIGeneratedNativeModule._SliderAttribute_sliderInteractionMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SliderAttribute_sliderInteractionMode(this.peer.ptr, ((value as SliderInteraction) as int32)) } minResponsiveDistanceAttribute(value: number): void { ArkUIGeneratedNativeModule._SliderAttribute_minResponsiveDistance(this.peer.ptr, value) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts index 99e7f4285e23a0e8d6f46b52bcba07cdfe5ea1ba..5c41e6d6e5b885050447ee66a6c1e42c9d6dfde6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -126,7 +126,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -169,7 +169,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { thisSerializer.release() } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._SpanAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SpanAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeightAttribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -183,7 +183,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -234,7 +234,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { thisSerializer.release() } textCaseAttribute(value: TextCase): void { - ArkUIGeneratedNativeModule._SpanAttribute_textCase(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SpanAttribute_textCase(this.peer.ptr, ((value as TextCase) as int32)) } lineHeightAttribute(value: Length): void { ArkUIGeneratedNativeModule._SpanAttribute_lineHeight(this.peer.ptr, value) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts index 9649e9dd7dc91569bd3b3166c754407456cf67cb..fb41a8f795d6e4c29112291a1ec114d7133b84a9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -83,7 +83,7 @@ export class ArkStackPeer extends ArkCommonMethodPeer { thisSerializer.release() } alignContentAttribute(value: Alignment): void { - ArkUIGeneratedNativeModule._StackAttribute_alignContent(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._StackAttribute_alignContent(this.peer.ptr, ((value as Alignment) as int32)) } pointLightAttribute(value: PointLightStyle): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 8add6263c35b318be19a28b951a55281f98992ee..4d49ae5a7f4ecde55acb6c051a7e9da9ff4245f1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts index 2e53b7acaf8d50a3f753280fdd2ce0327cde16f6..772f3ed9c4f393ad530971d831f61230d119e4ee 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -86,7 +86,7 @@ export class ArkStepperItemPeer extends ArkCommonMethodPeer { thisSerializer.writeInt8(value_type as int32) if ((RuntimeType.UNDEFINED) != (value_type)) { const value_value = (value as ItemState) - thisSerializer.writeInt32((value_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_value as ItemState) as int32)) } ArkUIGeneratedNativeModule._StepperItemAttribute_status(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts index 62d8b70905dd72d2fba7cdc1757583a942e0f7c2..565f3825c0de04d86371cf9f1442c954a87108a2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts index a2ec4cbd4312faf979311dcdc2c4334e439bcd6f..3525ade67e537348213e75dddbd9e3843bcf2212 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -146,13 +146,13 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { thisSerializer.release() } displayModeAttribute(value: SwiperDisplayMode): void { - ArkUIGeneratedNativeModule._SwiperAttribute_displayMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SwiperAttribute_displayMode(this.peer.ptr, ((value as SwiperDisplayMode) as int32)) } cachedCountAttribute(value: number): void { ArkUIGeneratedNativeModule._SwiperAttribute_cachedCount(this.peer.ptr, value) } effectModeAttribute(value: EdgeEffect): void { - ArkUIGeneratedNativeModule._SwiperAttribute_effectMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SwiperAttribute_effectMode(this.peer.ptr, ((value as EdgeEffect) as int32)) } disableSwipeAttribute(value: boolean): void { ArkUIGeneratedNativeModule._SwiperAttribute_disableSwipe(this.peer.ptr, value ? 1 : 0) @@ -164,7 +164,7 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { if (TypeChecker.isCurve(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Curve - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Curve) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) @@ -216,7 +216,7 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { thisSerializer.release() } nestedScrollAttribute(value: SwiperNestedScrollMode): void { - ArkUIGeneratedNativeModule._SwiperAttribute_nestedScroll(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SwiperAttribute_nestedScroll(this.peer.ptr, ((value as SwiperNestedScrollMode) as int32)) } customContentTransitionAttribute(value: SwiperContentAnimatedTransition): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index dec6f88062482113823d09c18b317e3824aba26a..2c22aa31a3640f6ba5903c04a9fcd5d450d82c7d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -109,7 +109,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_element)) { thisSerializer.writeInt8(0 as int32) const value_element_0 = value_element as Color - thisSerializer.writeInt32((value_element_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_element_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1 as int32) @@ -142,7 +142,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -153,10 +153,10 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { thisSerializer.release() } effectStrategyAttribute(value: SymbolEffectStrategy): void { - ArkUIGeneratedNativeModule._SymbolSpanAttribute_effectStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SymbolSpanAttribute_effectStrategy(this.peer.ptr, ((value as SymbolEffectStrategy) as int32)) } renderingStrategyAttribute(value: SymbolRenderingStrategy): void { - ArkUIGeneratedNativeModule._SymbolSpanAttribute_renderingStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SymbolSpanAttribute_renderingStrategy(this.peer.ptr, ((value as SymbolRenderingStrategy) as int32)) } } export interface ArkSymbolSpanAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index da5e9535a702a9160064ba5dadde31de54795bdf..73fa0c2321f0c92b68b889e8293706e788047c9a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -115,7 +115,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_element)) { thisSerializer.writeInt8(0 as int32) const value_element_0 = value_element as Color - thisSerializer.writeInt32((value_element_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_element_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1 as int32) @@ -148,7 +148,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -159,10 +159,10 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { thisSerializer.release() } effectStrategyAttribute(value: SymbolEffectStrategy): void { - ArkUIGeneratedNativeModule._SymbolGlyphAttribute_effectStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SymbolGlyphAttribute_effectStrategy(this.peer.ptr, ((value as SymbolEffectStrategy) as int32)) } renderingStrategyAttribute(value: SymbolRenderingStrategy): void { - ArkUIGeneratedNativeModule._SymbolGlyphAttribute_renderingStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._SymbolGlyphAttribute_renderingStrategy(this.peer.ptr, ((value as SymbolRenderingStrategy) as int32)) } symbolEffect0Attribute(symbolEffect: SymbolEffect, isActive?: boolean): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts index 2bd5373899e47573cd9a72c27bf03cc5d2eb9248..7c6d4aeb73d74771f3606fc6ad527062dbce91a1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -82,7 +82,7 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const value_0 = value as string thisSerializer.writeString(value_0) } - else if (isResource(value)) { + else if (TypeChecker.isResource(value, false, false, false, false, false)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts index ea0f24ebede0023f9fde8e0593abbdf31538de0c..8022a192e6bd9b3e00aa9574617ad268be4db1bd 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -86,13 +86,13 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TabsAttribute_vertical(this.peer.ptr, value ? 1 : 0) } barPositionAttribute(value: BarPosition): void { - ArkUIGeneratedNativeModule._TabsAttribute_barPosition(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TabsAttribute_barPosition(this.peer.ptr, ((value as BarPosition) as int32)) } scrollableAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TabsAttribute_scrollable(this.peer.ptr, value ? 1 : 0) } barMode0Attribute(value: BarMode): void { - ArkUIGeneratedNativeModule._TabsAttribute_barMode0(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TabsAttribute_barMode0(this.peer.ptr, ((value as BarMode) as int32)) } barMode1Attribute(value: BarMode, options?: ScrollableBarModeOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -103,7 +103,7 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { const options_value = options! thisSerializer.writeScrollableBarModeOptions(options_value) } - ArkUIGeneratedNativeModule._TabsAttribute_barMode1(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TabsAttribute_barMode1(this.peer.ptr, ((value as BarMode) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } barWidthAttribute(value: Length): void { @@ -122,7 +122,7 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { thisSerializer.writeInt8(value_type as int32) if ((RuntimeType.UNDEFINED) != (value_type)) { const value_value = (value as AnimationMode) - thisSerializer.writeInt32((value_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_value as AnimationMode) as int32)) } ArkUIGeneratedNativeModule._TabsAttribute_animationMode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -134,7 +134,7 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { thisSerializer.writeInt8(value_type as int32) if ((RuntimeType.UNDEFINED) != (value_type)) { const value_value = (value as EdgeEffect) - thisSerializer.writeInt32((value_value.valueOf() as int32)) + thisSerializer.writeInt32(((value_value as EdgeEffect) as int32)) } ArkUIGeneratedNativeModule._TabsAttribute_edgeEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -194,7 +194,7 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -227,12 +227,12 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { thisSerializer.release() } barBackgroundBlurStyle0Attribute(value: BlurStyle): void { - ArkUIGeneratedNativeModule._TabsAttribute_barBackgroundBlurStyle0(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TabsAttribute_barBackgroundBlurStyle0(this.peer.ptr, ((value as BlurStyle) as int32)) } barBackgroundBlurStyle1Attribute(style: BlurStyle, options: BackgroundBlurStyleOptions): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeBackgroundBlurStyleOptions(options) - ArkUIGeneratedNativeModule._TabsAttribute_barBackgroundBlurStyle1(this.peer.ptr, (style.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TabsAttribute_barBackgroundBlurStyle1(this.peer.ptr, ((style as BlurStyle) as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } barBackgroundEffectAttribute(value: BackgroundEffectOptions): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts index a615ffec0b642fbc58615a89e04fdde063b8c1b0..4172f19ab71ba14dde1fe65f2a7ec0ceae3c46ff 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -93,7 +93,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -120,10 +120,10 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { thisSerializer.release() } enterKeyTypeAttribute(value: EnterKeyType): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_enterKeyType(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_enterKeyType(this.peer.ptr, ((value as EnterKeyType) as int32)) } textAlignAttribute(value: TextAlign): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_textAlign(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_textAlign(this.peer.ptr, ((value as TextAlign) as int32)) } caretColorAttribute(value: ResourceColor): void { const thisSerializer : Serializer = Serializer.hold() @@ -132,7 +132,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -159,7 +159,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -183,7 +183,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextAreaAttribute_fontSize(this.peer.ptr, value) } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeightAttribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -197,7 +197,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -225,7 +225,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { thisSerializer.release() } textOverflowAttribute(value: TextOverflow): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_textOverflow(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_textOverflow(this.peer.ptr, ((value as TextOverflow) as int32)) } textIndentAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._TextAreaAttribute_textIndent(this.peer.ptr, value) @@ -243,7 +243,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -318,7 +318,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_copyOption(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_copyOption(this.peer.ptr, ((value as CopyOptions) as int32)) } enableKeyboardOnFocusAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextAreaAttribute_enableKeyboardOnFocus(this.peer.ptr, value ? 1 : 0) @@ -327,10 +327,10 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextAreaAttribute_maxLength(this.peer.ptr, value) } styleAttribute(value: TextContentStyle): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_style(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_style(this.peer.ptr, ((value as TextContentStyle) as int32)) } barStateAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_barState(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_barState(this.peer.ptr, ((value as BarState) as int32)) } selectionMenuHiddenAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextAreaAttribute_selectionMenuHidden(this.peer.ptr, value ? 1 : 0) @@ -380,16 +380,16 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { thisSerializer.release() } heightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_heightAdaptivePolicy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_heightAdaptivePolicy(this.peer.ptr, ((value as TextHeightAdaptivePolicy) as int32)) } maxLinesAttribute(value: number): void { ArkUIGeneratedNativeModule._TextAreaAttribute_maxLines(this.peer.ptr, value) } wordBreakAttribute(value: WordBreak): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_wordBreak(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_wordBreak(this.peer.ptr, ((value as WordBreak) as int32)) } lineBreakStrategyAttribute(value: LineBreakStrategy): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_lineBreakStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_lineBreakStrategy(this.peer.ptr, ((value as LineBreakStrategy) as int32)) } decorationAttribute(value: TextDecorationOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -445,13 +445,13 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { thisSerializer.release() } typeAttribute(value: TextAreaType): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_type(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_type(this.peer.ptr, ((value as TextAreaType) as int32)) } enableAutoFillAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextAreaAttribute_enableAutoFill(this.peer.ptr, value ? 1 : 0) } contentTypeAttribute(value: ContentType): void { - ArkUIGeneratedNativeModule._TextAreaAttribute_contentType(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAreaAttribute_contentType(this.peer.ptr, ((value as ContentType) as int32)) } fontFeatureAttribute(value: string): void { ArkUIGeneratedNativeModule._TextAreaAttribute_fontFeature(this.peer.ptr, value) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts index 2119bee001e98d673e046d816788d3939300d3c5..2f310ee7a5be2826c5cec0938766195840017f8b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -99,7 +99,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -123,7 +123,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextClockAttribute_fontSize(this.peer.ptr, value) } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._TextClockAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextClockAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeightAttribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -137,7 +137,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts index b1735c5a6be33d94cf146c7c08284f601a5ac5ce..dd6c1bfb075bef8033a060e703beb0aefc03eabc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -88,10 +88,10 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { thisSerializer.release() } typeAttribute(value: InputType): void { - ArkUIGeneratedNativeModule._TextInputAttribute_type(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_type(this.peer.ptr, ((value as InputType) as int32)) } contentTypeAttribute(value: ContentType): void { - ArkUIGeneratedNativeModule._TextInputAttribute_contentType(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_contentType(this.peer.ptr, ((value as ContentType) as int32)) } placeholderColorAttribute(value: ResourceColor): void { const thisSerializer : Serializer = Serializer.hold() @@ -100,7 +100,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -121,7 +121,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { thisSerializer.release() } textOverflowAttribute(value: TextOverflow): void { - ArkUIGeneratedNativeModule._TextInputAttribute_textOverflow(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_textOverflow(this.peer.ptr, ((value as TextOverflow) as int32)) } textIndentAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._TextInputAttribute_textIndent(this.peer.ptr, value) @@ -139,7 +139,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { thisSerializer.release() } enterKeyTypeAttribute(value: EnterKeyType): void { - ArkUIGeneratedNativeModule._TextInputAttribute_enterKeyType(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_enterKeyType(this.peer.ptr, ((value as EnterKeyType) as int32)) } caretColorAttribute(value: ResourceColor): void { const thisSerializer : Serializer = Serializer.hold() @@ -148,7 +148,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -214,7 +214,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -238,7 +238,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextInputAttribute_fontSize(this.peer.ptr, value) } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._TextInputAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeightAttribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -252,7 +252,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -298,13 +298,13 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._TextInputAttribute_copyOption(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_copyOption(this.peer.ptr, ((value as CopyOptions) as int32)) } showPasswordIconAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextInputAttribute_showPasswordIcon(this.peer.ptr, value ? 1 : 0) } textAlignAttribute(value: TextAlign): void { - ArkUIGeneratedNativeModule._TextInputAttribute_textAlign(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_textAlign(this.peer.ptr, ((value as TextAlign) as int32)) } styleAttribute(value: TextInputStyle | TextContentStyle): void { const thisSerializer : Serializer = Serializer.hold() @@ -313,12 +313,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { if (TypeChecker.isTextInputStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as TextInputStyle - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as TextInputStyle) as int32)) } else if (TypeChecker.isTextContentStyle(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as TextContentStyle - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as TextContentStyle) as int32)) } ArkUIGeneratedNativeModule._TextInputAttribute_style(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -336,7 +336,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -417,7 +417,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value_value_0)) { thisSerializer.writeInt8(0 as int32) const value_value_0_0 = value_value_0 as Color - thisSerializer.writeInt32((value_value_0_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_value_0_type) { thisSerializer.writeInt8(1 as int32) @@ -448,16 +448,16 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextInputAttribute_selectionMenuHidden(this.peer.ptr, value ? 1 : 0) } barStateAttribute(value: BarState): void { - ArkUIGeneratedNativeModule._TextInputAttribute_barState(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_barState(this.peer.ptr, ((value as BarState) as int32)) } maxLinesAttribute(value: number): void { ArkUIGeneratedNativeModule._TextInputAttribute_maxLines(this.peer.ptr, value) } wordBreakAttribute(value: WordBreak): void { - ArkUIGeneratedNativeModule._TextInputAttribute_wordBreak(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_wordBreak(this.peer.ptr, ((value as WordBreak) as int32)) } lineBreakStrategyAttribute(value: LineBreakStrategy): void { - ArkUIGeneratedNativeModule._TextInputAttribute_lineBreakStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_lineBreakStrategy(this.peer.ptr, ((value as LineBreakStrategy) as int32)) } cancelButton0Attribute(value: CancelButtonOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -519,7 +519,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { thisSerializer.release() } heightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy): void { - ArkUIGeneratedNativeModule._TextInputAttribute_heightAdaptivePolicy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextInputAttribute_heightAdaptivePolicy(this.peer.ptr, ((value as TextHeightAdaptivePolicy) as int32)) } enableAutoFillAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextInputAttribute_enableAutoFill(this.peer.ptr, value ? 1 : 0) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts index bfdf9cbf78a0b6d2f1285193202deb09987d494f..83620a74e2c887744c540913d40ca274d32876c6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -130,7 +130,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -251,7 +251,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { thisSerializer.release() } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._TextAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeight0Attribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -265,7 +265,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) @@ -287,7 +287,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(weight)) { thisSerializer.writeInt8(1 as int32) const weight_1 = weight as FontWeight - thisSerializer.writeInt32((weight_1.valueOf() as int32)) + thisSerializer.writeInt32(((weight_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == weight_type) { thisSerializer.writeInt8(2 as int32) @@ -308,7 +308,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextAttribute_lineSpacing(this.peer.ptr, toPeerPtr(value)) } textAlignAttribute(value: TextAlign): void { - ArkUIGeneratedNativeModule._TextAttribute_textAlign(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_textAlign(this.peer.ptr, ((value as TextAlign) as int32)) } lineHeightAttribute(value: number | string | Resource): void { const thisSerializer : Serializer = Serializer.hold() @@ -382,7 +382,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { thisSerializer.release() } textCaseAttribute(value: TextCase): void { - ArkUIGeneratedNativeModule._TextAttribute_textCase(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_textCase(this.peer.ptr, ((value as TextCase) as int32)) } baselineOffsetAttribute(value: number | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -402,7 +402,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._TextAttribute_copyOption(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_copyOption(this.peer.ptr, ((value as CopyOptions) as int32)) } draggableAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextAttribute_draggable(this.peer.ptr, value ? 1 : 0) @@ -429,16 +429,16 @@ export class ArkTextPeer extends ArkCommonMethodPeer { thisSerializer.release() } heightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy): void { - ArkUIGeneratedNativeModule._TextAttribute_heightAdaptivePolicy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_heightAdaptivePolicy(this.peer.ptr, ((value as TextHeightAdaptivePolicy) as int32)) } textIndentAttribute(value: Length): void { ArkUIGeneratedNativeModule._TextAttribute_textIndent(this.peer.ptr, value) } wordBreakAttribute(value: WordBreak): void { - ArkUIGeneratedNativeModule._TextAttribute_wordBreak(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_wordBreak(this.peer.ptr, ((value as WordBreak) as int32)) } lineBreakStrategyAttribute(value: LineBreakStrategy): void { - ArkUIGeneratedNativeModule._TextAttribute_lineBreakStrategy(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_lineBreakStrategy(this.peer.ptr, ((value as LineBreakStrategy) as int32)) } onCopyAttribute(value: ((breakpoints: string) => void)): void { const thisSerializer : Serializer = Serializer.hold() @@ -453,7 +453,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -480,7 +480,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -501,7 +501,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { thisSerializer.release() } ellipsisModeAttribute(value: EllipsisMode): void { - ArkUIGeneratedNativeModule._TextAttribute_ellipsisMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_ellipsisMode(this.peer.ptr, ((value as EllipsisMode) as int32)) } enableDataDetectorAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TextAttribute_enableDataDetector(this.peer.ptr, value ? 1 : 0) @@ -525,7 +525,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextAttribute_privacySensitive(this.peer.ptr, value ? 1 : 0) } textSelectableAttribute(value: TextSelectableMode): void { - ArkUIGeneratedNativeModule._TextAttribute_textSelectable(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_textSelectable(this.peer.ptr, ((value as TextSelectableMode) as int32)) } editMenuOptionsAttribute(value: EditMenuOptions): void { ArkUIGeneratedNativeModule._TextAttribute_editMenuOptions(this.peer.ptr, toPeerPtr(value)) @@ -549,7 +549,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const options_value = options! thisSerializer.writeSelectionMenuOptions(options_value) } - ArkUIGeneratedNativeModule._TextAttribute_bindSelectionMenu(this.peer.ptr, (spanType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length(), (responseType.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextAttribute_bindSelectionMenu(this.peer.ptr, ((spanType as TextSpanType) as int32), thisSerializer.asArray(), thisSerializer.length(), ((responseType as TextResponseType) as int32)) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts index defe1a54c4315fdf2140b4219c75383fd4356f7f..4351275e6eb1dcc9f3ad1b0872a04465f0235374 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts index 416ad8ac4572f9a614b906729fac2ee38fa2a842..fd7eb25e39597cd705b690c478f8dc0b272a2e9b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -92,7 +92,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -116,7 +116,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextTimerAttribute_fontSize(this.peer.ptr, value) } fontStyleAttribute(value: FontStyle): void { - ArkUIGeneratedNativeModule._TextTimerAttribute_fontStyle(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._TextTimerAttribute_fontStyle(this.peer.ptr, ((value as FontStyle) as int32)) } fontWeightAttribute(value: number | FontWeight | string): void { const thisSerializer : Serializer = Serializer.hold() @@ -130,7 +130,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { else if (TypeChecker.isFontWeight(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FontWeight - thisSerializer.writeInt32((value_1.valueOf() as int32)) + thisSerializer.writeInt32(((value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts index 853d5eb166904ecc45b577143847f38abec49745..52d618efb80f2d84e9c22bf3ec419afdeaf02ae8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts index b977eeda797e0737ee4d6d3d13be815eae00b106..9446a426c814b3d0cc6b9ae05a527f82f7f8774d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -95,7 +95,7 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) @@ -122,7 +122,7 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color - thisSerializer.writeInt32((value_0.valueOf() as int32)) + thisSerializer.writeInt32(((value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index 30886cd5c4278f15a938d8b1b4a1023f3066125c..6e6ddedef2e80755ae851bae276002a3355598a3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts index e154e1f168422eb1dbf7dae28219ca3a593c5ad8..ab281afa1701396b1e1b1aba130ed104bdfb9589 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -90,7 +90,7 @@ export class ArkVideoPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._VideoAttribute_loop(this.peer.ptr, value ? 1 : 0) } objectFitAttribute(value: ImageFit): void { - ArkUIGeneratedNativeModule._VideoAttribute_objectFit(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._VideoAttribute_objectFit(this.peer.ptr, ((value as ImageFit) as int32)) } onStartAttribute(value: VoidCallback): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts index 372a5ff81f9761f0f4891c690ae8ef1b55e9e53d..1cacc4ea1bda7e5569602a1eb3de023bfdc3e4e0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -103,7 +103,7 @@ export class ArkWaterFlowPeer extends ArkScrollableCommonMethodPeer { ArkUIGeneratedNativeModule._WaterFlowAttribute_rowsGap(this.peer.ptr, value) } layoutDirectionAttribute(value: FlexDirection): void { - ArkUIGeneratedNativeModule._WaterFlowAttribute_layoutDirection(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WaterFlowAttribute_layoutDirection(this.peer.ptr, ((value as FlexDirection) as int32)) } nestedScrollAttribute(value: NestedScrollOptions): void { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts index c1c6e848bc0359fa429650512f262b5dcfeb7def..590c4dd9991e1ac77fb522c6b0a570ae4bd2a977 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" @@ -95,7 +95,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._WebAttribute_imageAccess(this.peer.ptr, value ? 1 : 0) } mixedModeAttribute(value: MixedMode): void { - ArkUIGeneratedNativeModule._WebAttribute_mixedMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_mixedMode(this.peer.ptr, ((value as MixedMode) as int32)) } zoomAccessAttribute(value: boolean): void { ArkUIGeneratedNativeModule._WebAttribute_zoomAccess(this.peer.ptr, value ? 1 : 0) @@ -113,10 +113,10 @@ export class ArkWebPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._WebAttribute_password(this.peer.ptr, value ? 1 : 0) } cacheModeAttribute(value: CacheMode): void { - ArkUIGeneratedNativeModule._WebAttribute_cacheMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_cacheMode(this.peer.ptr, ((value as CacheMode) as int32)) } darkModeAttribute(value: WebDarkMode): void { - ArkUIGeneratedNativeModule._WebAttribute_darkMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_darkMode(this.peer.ptr, ((value as WebDarkMode) as int32)) } forceDarkAccessAttribute(value: boolean): void { ArkUIGeneratedNativeModule._WebAttribute_forceDarkAccess(this.peer.ptr, value ? 1 : 0) @@ -137,7 +137,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._WebAttribute_overviewModeAccess(this.peer.ptr, value ? 1 : 0) } overScrollModeAttribute(value: OverScrollMode): void { - ArkUIGeneratedNativeModule._WebAttribute_overScrollMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_overScrollMode(this.peer.ptr, ((value as OverScrollMode) as int32)) } textZoomAtioAttribute(value: number): void { ArkUIGeneratedNativeModule._WebAttribute_textZoomAtio(this.peer.ptr, value) @@ -559,7 +559,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { thisSerializer.release() } layoutModeAttribute(value: WebLayoutMode): void { - ArkUIGeneratedNativeModule._WebAttribute_layoutMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_layoutMode(this.peer.ptr, ((value as WebLayoutMode) as int32)) } nestedScrollAttribute(value: NestedScrollOptions | NestedScrollOptionsExt): void { const thisSerializer : Serializer = Serializer.hold() @@ -600,7 +600,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { thisSerializer.release() } copyOptionsAttribute(value: CopyOptions): void { - ArkUIGeneratedNativeModule._WebAttribute_copyOptions(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_copyOptions(this.peer.ptr, ((value as CopyOptions) as int32)) } onOverrideUrlLoadingAttribute(value: OnOverrideUrlLoadingCallback): void { const thisSerializer : Serializer = Serializer.hold() @@ -661,7 +661,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { thisSerializer.release() } keyboardAvoidModeAttribute(value: WebKeyboardAvoidMode): void { - ArkUIGeneratedNativeModule._WebAttribute_keyboardAvoidMode(this.peer.ptr, (value.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_keyboardAvoidMode(this.peer.ptr, ((value as WebKeyboardAvoidMode) as int32)) } editMenuOptionsAttribute(value: EditMenuOptions): void { ArkUIGeneratedNativeModule._WebAttribute_editMenuOptions(this.peer.ptr, toPeerPtr(value)) @@ -682,7 +682,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { const options_value = options! thisSerializer.writeSelectionMenuOptionsExt(options_value) } - ArkUIGeneratedNativeModule._WebAttribute_bindSelectionMenu(this.peer.ptr, (elementType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length(), (responseType.valueOf() as int32)) + ArkUIGeneratedNativeModule._WebAttribute_bindSelectionMenu(this.peer.ptr, ((elementType as WebElementType) as int32), thisSerializer.asArray(), thisSerializer.length(), ((responseType as WebResponseType) as int32)) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts index ffa44ee3c943316757ed393783bbae60d17f2032..e0bdd15095ccfa605c8a79d531256390e6f34a71 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts index 9afa23e29af1edb8e858bb1f457c9862844d165d..31f80b1b11c50245e22c2606c804f9576702d1bd 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -18,7 +18,7 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts index 918ceb4803bc3d4c25b32b68fed343d4fc10f49a..c1cf326119e1dff1c71ffd5bf20a69febb928019 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -133,7 +133,7 @@ export function deserializeAndCallCallback_Array_Number_Void(thisDeserializer: D const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((input: Array) => void)) const input_buf_length : int32 = thisDeserializer.readInt32() - let input_buf : Array = new Array() + let input_buf : Array = new Array(input_buf_length) for (let input_buf_i = 0; input_buf_i < input_buf_length; input_buf_i++) { input_buf[input_buf_i] = (thisDeserializer.readNumber() as number) } @@ -144,7 +144,7 @@ export function deserializeAndCallCallback_Array_String_Void(thisDeserializer: D const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value: Array) => void)) const value_buf_length : int32 = thisDeserializer.readInt32() - let value_buf : Array = new Array() + let value_buf : Array = new Array(value_buf_length) for (let value_buf_i = 0; value_buf_i < value_buf_length; value_buf_i++) { value_buf[value_buf_i] = (thisDeserializer.readString() as string) } @@ -155,7 +155,7 @@ export function deserializeAndCallCallback_Array_TouchTestInfo_TouchResult(thisD const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value: Array) => TouchResult)) const value_buf_length : int32 = thisDeserializer.readInt32() - let value_buf : Array = new Array() + let value_buf : Array = new Array(value_buf_length) for (let value_buf_i = 0; value_buf_i < value_buf_length; value_buf_i++) { value_buf[value_buf_i] = thisDeserializer.readTouchTestInfo() } @@ -922,7 +922,7 @@ export function deserializeAndCallCallback_Opt_Array_String_Void(thisDeserialize if ((RuntimeType.UNDEFINED) != (error_buf_runtimeType)) { const error_buf__length : int32 = thisDeserializer.readInt32() - let error_buf_ : Array = new Array() + let error_buf_ : Array = new Array(error_buf__length) for (let error_buf__i = 0; error_buf__i < error_buf__length; error_buf__i++) { error_buf_[error_buf__i] = (thisDeserializer.readString() as string) } @@ -958,7 +958,7 @@ export function deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Voi if ((RuntimeType.UNDEFINED) != (error_buf_runtimeType)) { const error_buf__length : int32 = thisDeserializer.readInt32() - let error_buf_ : Array = new Array() + let error_buf_ : Array = new Array(error_buf__length) for (let error_buf__i = 0; error_buf__i < error_buf__length; error_buf__i++) { error_buf_[error_buf__i] = (thisDeserializer.readString() as string) } @@ -1275,7 +1275,7 @@ export function deserializeAndCallCallback_Union_Number_Array_Number_Void(thisDe } else if (selected_buf_selector == 1) { const selected_buf_u_length : int32 = thisDeserializer.readInt32() - let selected_buf_u : Array = new Array() + let selected_buf_u : Array = new Array(selected_buf_u_length) for (let selected_buf_u_i = 0; selected_buf_u_i < selected_buf_u_length; selected_buf_u_i++) { selected_buf_u[selected_buf_u_i] = (thisDeserializer.readNumber() as number) } @@ -1314,7 +1314,7 @@ export function deserializeAndCallCallback_Union_String_Array_String_Void(thisDe } else if (value_buf_selector == 1) { const value_buf_u_length : int32 = thisDeserializer.readInt32() - let value_buf_u : Array = new Array() + let value_buf_u : Array = new Array(value_buf_u_length) for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { value_buf_u[value_buf_u_i] = (thisDeserializer.readString() as string) } @@ -1391,7 +1391,7 @@ export function deserializeAndCallGestureRecognizerJudgeBeginCallback(thisDeseri let event : BaseGestureEvent = (thisDeserializer.readBaseGestureEvent() as BaseGestureEvent) let current : GestureRecognizer = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) const recognizers_buf_length : int32 = thisDeserializer.readInt32() - let recognizers_buf : Array = new Array() + let recognizers_buf : Array = new Array(recognizers_buf_length) for (let recognizers_buf_i = 0; recognizers_buf_i < recognizers_buf_length; recognizers_buf_i++) { recognizers_buf[recognizers_buf_i] = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) } @@ -1818,7 +1818,7 @@ export function deserializeAndCallShouldBuiltInRecognizerParallelWithCallback(th const _call = (ResourceHolder.instance().get(_resourceId) as ShouldBuiltInRecognizerParallelWithCallback) let current : GestureRecognizer = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) const others_buf_length : int32 = thisDeserializer.readInt32() - let others_buf : Array = new Array() + let others_buf : Array = new Array(others_buf_length) for (let others_buf_i = 0; others_buf_i < others_buf_length; others_buf_i++) { others_buf[others_buf_i] = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) } @@ -1896,7 +1896,7 @@ export function deserializeAndCallType_TextPickerAttribute_onChange_callback(thi } else if (value_buf_selector == 1) { const value_buf_u_length : int32 = thisDeserializer.readInt32() - let value_buf_u : Array = new Array() + let value_buf_u : Array = new Array(value_buf_u_length) for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { value_buf_u[value_buf_u_i] = (thisDeserializer.readString() as string) } @@ -1913,7 +1913,7 @@ export function deserializeAndCallType_TextPickerAttribute_onChange_callback(thi } else if (index_buf_selector == 1) { const index_buf_u_length : int32 = thisDeserializer.readInt32() - let index_buf_u : Array = new Array() + let index_buf_u : Array = new Array(index_buf_u_length) for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { index_buf_u[index_buf_u_i] = (thisDeserializer.readNumber() as number) } diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 7ec653a9b139ea18a56994daf1762ecc0af01e7d..a1c6c61f0eef7514e6eda906faf502555c9b242f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -22,7 +22,7 @@ import { CallbackKind } from "./CallbackKind" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, Context, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, Context, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" @@ -53,18 +53,31 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" +import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" -import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, AnimationRange_Number, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { ImageAttachmentLayoutStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, ImageAttachmentInterface, GestureStyleInterface, DecorationStyleInterface, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" -import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMetrics, CustomSpanMeasureInfo, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -104,9 +117,6 @@ import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" -import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" -import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" @@ -219,16 +229,6 @@ import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, Wo import { BaseShape, BaseShapeInternal } from "./../ArkBaseShapeMaterialized" import { CommonShape, CommonShapeInternal } from "./../ArkCommonShapeMaterialized" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" -import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" -import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" -import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" -import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" -import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" -import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" -import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" -import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" -import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" -import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" @@ -319,7 +319,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) { const params_buf__length : int32 = valueDeserializer.readInt32() - let params_buf_ : Array = new Array() + let params_buf_ : Array = new Array(params_buf__length) for (let params_buf__i = 0; params_buf__i < params_buf__length; params_buf__i++) { params_buf_[params_buf__i] = (valueDeserializer.readString() as string) } @@ -336,11 +336,6 @@ export class Deserializer extends DeserializerBase { let value : Resource = ({bundleName: bundleName_result,moduleName: moduleName_result,id: id_result,params: params_result,type: type_result} as Resource) return value } - readICurve(): ICurve { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return ICurveInternal.fromPtr(ptr) - } readPixelMap(): PixelMap { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -351,6 +346,257 @@ export class Deserializer extends DeserializerBase { let ptr : KPointer = valueDeserializer.readPointer() return LengthMetricsInternal.fromPtr(ptr) } + readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { + let valueDeserializer : Deserializer = this + const pixelMap_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_value0 : Dimension = (valueDeserializer.readLength() as Dimension) + const size_buf_value1 : Dimension = (valueDeserializer.readLength() as Dimension) + const size_result : [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) + let value : LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) + return value + } + readICurve(): ICurve { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ICurveInternal.fromPtr(ptr) + } + readTextBackgroundStyle(): TextBackgroundStyle { + let valueDeserializer : Deserializer = this + const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let color_buf : ResourceColor | undefined + if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) + { + const color_buf__selector : int32 = valueDeserializer.readInt8() + let color_buf_ : Color | number | string | Resource | undefined + if (color_buf__selector == 0) { + color_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (color_buf__selector == 1) { + color_buf_ = (valueDeserializer.readNumber() as number) + } + else if (color_buf__selector == 2) { + color_buf_ = (valueDeserializer.readString() as string) + } + else if (color_buf__selector == 3) { + color_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") + } + color_buf = (color_buf_ as Color | number | string | Resource) + } + const color_result : ResourceColor | undefined = color_buf + const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf : Dimension | BorderRadiuses | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) + { + const radius_buf__selector : int32 = valueDeserializer.readInt8() + let radius_buf_ : Dimension | BorderRadiuses | undefined + if (radius_buf__selector == 0) { + radius_buf_ = (valueDeserializer.readLength() as Dimension) + } + else if (radius_buf__selector == 1) { + const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topLeft : undefined | Length = radius_buf__u_topLeft_buf + const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topRight : undefined | Length = radius_buf__u_topRight_buf + const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomLeft : undefined | Length = radius_buf__u_bottomLeft_buf + const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomRight : undefined | Length = radius_buf__u_bottomRight_buf + radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") + } + radius_buf = (radius_buf_ as Dimension | BorderRadiuses) + } + const radius_result : Dimension | BorderRadiuses | undefined = radius_buf + let value : TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) + return value + } + readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { + let valueDeserializer : Deserializer = this + const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf : LengthMetrics | Margin | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) + { + const margin_buf__selector : int32 = valueDeserializer.readInt8() + let margin_buf_ : LengthMetrics | Margin | undefined + if (margin_buf__selector == 0) { + margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (margin_buf__selector == 1) { + const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_top_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) + { + margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf + const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_right_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) + { + margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf + const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_bottom_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) + { + margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf + const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_left_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) + { + margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf + margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") + } + margin_buf = (margin_buf_ as LengthMetrics | Margin) + } + const margin_result : LengthMetrics | Margin | undefined = margin_buf + const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf : LengthMetrics | Padding | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) + { + const padding_buf__selector : int32 = valueDeserializer.readInt8() + let padding_buf_ : LengthMetrics | Padding | undefined + if (padding_buf__selector == 0) { + padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (padding_buf__selector == 1) { + const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_top_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) + { + padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_top : undefined | Length = padding_buf__u_top_buf + const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_right_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) + { + padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_right : undefined | Length = padding_buf__u_right_buf + const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_bottom_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) + { + padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_bottom : undefined | Length = padding_buf__u_bottom_buf + const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_left_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) + { + padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_left : undefined | Length = padding_buf__u_left_buf + padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") + } + padding_buf = (padding_buf_ as LengthMetrics | Padding) + } + const padding_result : LengthMetrics | Padding | undefined = padding_buf + const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf : LengthMetrics | BorderRadiuses | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) + { + const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() + let borderRadius_buf_ : LengthMetrics | BorderRadiuses | undefined + if (borderRadius_buf__selector == 0) { + borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (borderRadius_buf__selector == 1) { + const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) + { + borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf + const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) + { + borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf + const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) + { + borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf + const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) + { + borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf + borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") + } + borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) + } + const borderRadius_result : LengthMetrics | BorderRadiuses | undefined = borderRadius_buf + let value : ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) + return value + } + readSizeOptions(): SizeOptions { + let valueDeserializer : Deserializer = this + const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let width_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) + { + width_buf = (valueDeserializer.readLength() as Length) + } + const width_result : Length | undefined = width_buf + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readLength() as Length) + } + const height_result : Length | undefined = height_buf + let value : SizeOptions = ({width: width_result,height: height_result} as SizeOptions) + return value + } readPosition(): Position { let valueDeserializer : Deserializer = this const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -376,15 +622,6 @@ export class Deserializer extends DeserializerBase { let value : SymbolGlyphModifier = ({_SymbolGlyphModifierStub: _SymbolGlyphModifierStub_result} as SymbolGlyphModifier) return value } - readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { - let valueDeserializer : Deserializer = this - const pixelMap_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_value0 : Dimension = (valueDeserializer.readLength() as Dimension) - const size_buf_value1 : Dimension = (valueDeserializer.readLength() as Dimension) - const size_result : [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) - let value : LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) - return value - } readShadowOptions(): ShadowOptions { let valueDeserializer : Deserializer = this const radius_buf_selector : int32 = valueDeserializer.readInt8() @@ -523,6 +760,70 @@ export class Deserializer extends DeserializerBase { let value : GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) return value } + readBackgroundColorStyle(): BackgroundColorStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return BackgroundColorStyleInternal.fromPtr(ptr) + } + readUserDataSpan(): UserDataSpan { + let value : UserDataSpan = ({} as UserDataSpan) + return value + } + readCustomSpan(): CustomSpan { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return CustomSpanInternal.fromPtr(ptr) + } + readUrlStyle(): UrlStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return UrlStyleInternal.fromPtr(ptr) + } + readLineHeightStyle(): LineHeightStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LineHeightStyleInternal.fromPtr(ptr) + } + readParagraphStyle(): ParagraphStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ParagraphStyleInternal.fromPtr(ptr) + } + readImageAttachment(): ImageAttachment { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ImageAttachmentInternal.fromPtr(ptr) + } + readGestureStyle(): GestureStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return GestureStyleInternal.fromPtr(ptr) + } + readTextShadowStyle(): TextShadowStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextShadowStyleInternal.fromPtr(ptr) + } + readLetterSpacingStyle(): LetterSpacingStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LetterSpacingStyleInternal.fromPtr(ptr) + } + readBaselineOffsetStyle(): BaselineOffsetStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return BaselineOffsetStyleInternal.fromPtr(ptr) + } + readDecorationStyle(): DecorationStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return DecorationStyleInternal.fromPtr(ptr) + } + readTextStyle_styled_string(): TextStyle_styled_string { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextStyle_styled_stringInternal.fromPtr(ptr) + } readArea(): Area { let valueDeserializer : Deserializer = this const width_result : Length = (valueDeserializer.readLength() as Length) @@ -895,7 +1196,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((state.valueOf() as int32)); + _argsSerializer.writeInt32(((state as SwipeActionState) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -1158,222 +1459,54 @@ export class Deserializer extends DeserializerBase { } readCanvasGradient(): CanvasGradient { let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return CanvasGradientInternal.fromPtr(ptr) - } - readVoidCallback(isSync: boolean = false): VoidCallback { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return ():void => { - const _argsSerializer : Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } - readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy):void => { - const _argsSerializer : Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - _argsSerializer.writeNavigationTransitionProxy(transitionProxy); - (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } - readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (parameter: boolean):void => { - const _argsSerializer : Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - _argsSerializer.writeBoolean(parameter); - (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } - readColorMetrics(): ColorMetrics { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return ColorMetricsInternal.fromPtr(ptr) - } - readStyledStringValue(): StyledStringValue { - let valueDeserializer : Deserializer = this - const stub_result : string = (valueDeserializer.readString() as string) - let value : StyledStringValue = ({stub: stub_result} as StyledStringValue) - return value - } - readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { - let valueDeserializer : Deserializer = this - const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf : LengthMetrics | Margin | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) - { - const margin_buf__selector : int32 = valueDeserializer.readInt8() - let margin_buf_ : LengthMetrics | Margin | undefined - if (margin_buf__selector == 0) { - margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (margin_buf__selector == 1) { - const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_top_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) - { - margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf - const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_right_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) - { - margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf - const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_bottom_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) - { - margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf - const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_left_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) - { - margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf - margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") - } - margin_buf = (margin_buf_ as LengthMetrics | Margin) - } - const margin_result : LengthMetrics | Margin | undefined = margin_buf - const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf : LengthMetrics | Padding | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) - { - const padding_buf__selector : int32 = valueDeserializer.readInt8() - let padding_buf_ : LengthMetrics | Padding | undefined - if (padding_buf__selector == 0) { - padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (padding_buf__selector == 1) { - const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_top_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) - { - padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_top : undefined | Length = padding_buf__u_top_buf - const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_right_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) - { - padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_right : undefined | Length = padding_buf__u_right_buf - const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_bottom_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) - { - padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_bottom : undefined | Length = padding_buf__u_bottom_buf - const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_left_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) - { - padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_left : undefined | Length = padding_buf__u_left_buf - padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") - } - padding_buf = (padding_buf_ as LengthMetrics | Padding) - } - const padding_result : LengthMetrics | Padding | undefined = padding_buf - const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf : LengthMetrics | BorderRadiuses | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) - { - const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() - let borderRadius_buf_ : LengthMetrics | BorderRadiuses | undefined - if (borderRadius_buf__selector == 0) { - borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (borderRadius_buf__selector == 1) { - const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) - { - borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf - const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) - { - borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf - const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) - { - borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf - const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) - { - borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf - borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") - } - borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) - } - const borderRadius_result : LengthMetrics | BorderRadiuses | undefined = borderRadius_buf - let value : ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) - return value + let ptr : KPointer = valueDeserializer.readPointer() + return CanvasGradientInternal.fromPtr(ptr) } - readSizeOptions(): SizeOptions { + readVoidCallback(isSync: boolean = false): VoidCallback { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (transitionProxy: NavigationTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavigationTransitionProxy(transitionProxy); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parameter: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readColorMetrics(): ColorMetrics { let valueDeserializer : Deserializer = this - const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let width_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) - { - width_buf = (valueDeserializer.readLength() as Length) - } - const width_result : Length | undefined = width_buf - const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let height_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) - { - height_buf = (valueDeserializer.readLength() as Length) - } - const height_result : Length | undefined = height_buf - let value : SizeOptions = ({width: width_result,height: height_result} as SizeOptions) - return value + let ptr : KPointer = valueDeserializer.readPointer() + return ColorMetricsInternal.fromPtr(ptr) } readGetItemMainSizeByIndex(isSync: boolean = false): GetItemMainSizeByIndex { const _resource : CallbackResource = this.readCallbackResource() @@ -2166,7 +2299,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) { const fontColor_buf__length : int32 = valueDeserializer.readInt32() - let fontColor_buf_ : Array = new Array() + let fontColor_buf_ : Array = new Array(fontColor_buf__length) for (let fontColor_buf__i = 0; fontColor_buf__i < fontColor_buf__length; fontColor_buf__i++) { const fontColor_buf__buf_selector : int32 = valueDeserializer.readInt8() let fontColor_buf__buf : Color | number | string | Resource | undefined @@ -2258,7 +2391,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (textShadow_buf_runtimeType)) { const textShadow_buf__length : int32 = valueDeserializer.readInt32() - let textShadow_buf_ : Array = new Array() + let textShadow_buf_ : Array = new Array(textShadow_buf__length) for (let textShadow_buf__i = 0; textShadow_buf__i < textShadow_buf__length; textShadow_buf__i++) { textShadow_buf_[textShadow_buf__i] = valueDeserializer.readShadowOptions() } @@ -2464,7 +2597,7 @@ export class Deserializer extends DeserializerBase { } else if (textShadow_buf__selector == 1) { const textShadow_buf__u_length : int32 = valueDeserializer.readInt32() - let textShadow_buf__u : Array = new Array() + let textShadow_buf__u : Array = new Array(textShadow_buf__u_length) for (let textShadow_buf__u_i = 0; textShadow_buf__u_i < textShadow_buf__u_length; textShadow_buf__u_i++) { textShadow_buf__u[textShadow_buf__u_i] = valueDeserializer.readShadowOptions() } @@ -2563,7 +2696,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((mode.valueOf() as int32)); + _argsSerializer.writeInt32(((mode as NavigationMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -2601,7 +2734,7 @@ export class Deserializer extends DeserializerBase { const to_1 = to as NavBar; _argsSerializer.writeString(to_1); } - _argsSerializer.writeInt32((operation.valueOf() as int32)); + _argsSerializer.writeInt32(((operation as NavigationOperation) as int32)); _argsSerializer.writeBoolean(isAnimated); (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); @@ -2932,7 +3065,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((parameter.valueOf() as int32)); + _argsSerializer.writeInt32(((parameter as SheetType) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -3398,7 +3531,7 @@ export class Deserializer extends DeserializerBase { } const direction_result : GradientDirection | undefined = direction_buf const colors_buf_length : int32 = valueDeserializer.readInt32() - let colors_buf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>() + let colors_buf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colors_buf_length) for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { const colors_buf_buf_value0_buf_selector : int32 = valueDeserializer.readInt8() let colors_buf_buf_value0_buf : Color | number | string | Resource | undefined @@ -3746,7 +3879,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (entities_buf_runtimeType)) { const entities_buf__length : int32 = valueDeserializer.readInt32() - let entities_buf_ : Array = new Array() + let entities_buf_ : Array = new Array(entities_buf__length) for (let entities_buf__i = 0; entities_buf__i < entities_buf__length; entities_buf__i++) { entities_buf_[entities_buf__i] = (valueDeserializer.readString() as string) } @@ -3908,95 +4041,54 @@ export class Deserializer extends DeserializerBase { const start_result : number = (valueDeserializer.readNumber() as number) const length_result : number = (valueDeserializer.readNumber() as number) const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_result : StyledStringValue = valueDeserializer.readStyledStringValue() - let value : SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) - return value - } - readTextBackgroundStyle(): TextBackgroundStyle { - let valueDeserializer : Deserializer = this - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf : ResourceColor | undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector : int32 = valueDeserializer.readInt8() - let color_buf_ : Color | number | string | Resource | undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) + const styledValue_buf_selector : int32 = valueDeserializer.readInt8() + let styledValue_buf : TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined + if (styledValue_buf_selector == 0) { + styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) } - const color_result : ResourceColor | undefined = color_buf - const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf : Dimension | BorderRadiuses | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) - { - const radius_buf__selector : int32 = valueDeserializer.readInt8() - let radius_buf_ : Dimension | BorderRadiuses | undefined - if (radius_buf__selector == 0) { - radius_buf_ = (valueDeserializer.readLength() as Dimension) - } - else if (radius_buf__selector == 1) { - const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topLeft : undefined | Length = radius_buf__u_topLeft_buf - const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topRight : undefined | Length = radius_buf__u_topRight_buf - const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomLeft : undefined | Length = radius_buf__u_bottomLeft_buf - const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomRight : undefined | Length = radius_buf__u_bottomRight_buf - radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") - } - radius_buf = (radius_buf_ as Dimension | BorderRadiuses) + else if (styledValue_buf_selector == 1) { + styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) } - const radius_result : Dimension | BorderRadiuses | undefined = radius_buf - let value : TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) + else if (styledValue_buf_selector == 2) { + styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) + } + else if (styledValue_buf_selector == 3) { + styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) + } + else if (styledValue_buf_selector == 4) { + styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) + } + else if (styledValue_buf_selector == 5) { + styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) + } + else if (styledValue_buf_selector == 6) { + styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) + } + else if (styledValue_buf_selector == 7) { + styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) + } + else if (styledValue_buf_selector == 8) { + styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) + } + else if (styledValue_buf_selector == 9) { + styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) + } + else if (styledValue_buf_selector == 10) { + styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) + } + else if (styledValue_buf_selector == 11) { + styledValue_buf = valueDeserializer.readUserDataSpan() + } + else if (styledValue_buf_selector == 12) { + styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) + } + else { + throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + } + const styledValue_result : StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) + let value : SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) return value } - readCustomSpan(): CustomSpan { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return CustomSpanInternal.fromPtr(ptr) - } - readImageAttachment(): ImageAttachment { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return ImageAttachmentInternal.fromPtr(ptr) - } readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -4221,7 +4313,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (types_buf_runtimeType)) { const types_buf__length : int32 = valueDeserializer.readInt32() - let types_buf_ : Array = new Array() + let types_buf_ : Array = new Array(types_buf__length) for (let types_buf__i = 0; types_buf__i < types_buf__length; types_buf__i++) { types_buf_[types_buf__i] = (valueDeserializer.readInt32() as ImageAnalyzerType) } @@ -4246,7 +4338,7 @@ export class Deserializer extends DeserializerBase { readImageAnalyzerConfig(): ImageAnalyzerConfig { let valueDeserializer : Deserializer = this const types_buf_length : int32 = valueDeserializer.readInt32() - let types_buf : Array = new Array() + let types_buf : Array = new Array(types_buf_length) for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { types_buf[types_buf_i] = (valueDeserializer.readInt32() as ImageAnalyzerType) } @@ -4787,7 +4879,7 @@ export class Deserializer extends DeserializerBase { let range_buf : Array | Array> | Resource | Array | Array | undefined if (range_buf_selector == 0) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array = new Array() + let range_buf_u : Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) } @@ -4795,10 +4887,10 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 1) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array> = new Array>() + let range_buf_u : Array> = new Array>(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { const range_buf_u_buf_length : int32 = valueDeserializer.readInt32() - let range_buf_u_buf : Array = new Array() + let range_buf_u_buf : Array = new Array(range_buf_u_buf_length) for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) } @@ -4811,7 +4903,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 3) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array = new Array() + let range_buf_u : Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() } @@ -4819,7 +4911,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 4) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array = new Array() + let range_buf_u : Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() } @@ -4840,7 +4932,7 @@ export class Deserializer extends DeserializerBase { } else if (value_buf__selector == 1) { const value_buf__u_length : int32 = valueDeserializer.readInt32() - let value_buf__u : Array = new Array() + let value_buf__u : Array = new Array(value_buf__u_length) for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) } @@ -4863,7 +4955,7 @@ export class Deserializer extends DeserializerBase { } else if (selected_buf__selector == 1) { const selected_buf__u_length : int32 = valueDeserializer.readInt32() - let selected_buf__u : Array = new Array() + let selected_buf__u : Array = new Array(selected_buf__u_length) for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) } @@ -5990,8 +6082,8 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(xOffset); _argsSerializer.writeNumber(yOffset); - _argsSerializer.writeInt32((scrollState.valueOf() as int32)); - _argsSerializer.writeInt32((scrollSource.valueOf() as int32)); + _argsSerializer.writeInt32(((scrollState as ScrollState) as int32)); + _argsSerializer.writeInt32(((scrollSource as ScrollSource) as int32)); let _continuationValue : OffsetResult | undefined; const _continuationCallback : ((value: OffsetResult) => void) = (value: OffsetResult):void => { _continuationValue = value; } _argsSerializer.holdAndWriteCallback(_continuationCallback); @@ -6266,7 +6358,7 @@ export class Deserializer extends DeserializerBase { const selection_buf_value1 : number = (valueDeserializer.readNumber() as number) const selection_result : [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) const spans_buf_length : int32 = valueDeserializer.readInt32() - let spans_buf : Array = new Array() + let spans_buf : Array = new Array(spans_buf_length) for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { const spans_buf_buf_selector : int32 = valueDeserializer.readInt8() let spans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined @@ -6603,7 +6695,7 @@ export class Deserializer extends DeserializerBase { } else if (radius_buf__selector == 2) { const radius_buf__u_length : int32 = valueDeserializer.readInt32() - let radius_buf__u : Array = new Array() + let radius_buf__u : Array = new Array(radius_buf__u_length) for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { const radius_buf__u_buf_selector : int32 = valueDeserializer.readInt8() let radius_buf__u_buf : number | string | undefined @@ -6882,7 +6974,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((mode.valueOf() as int32)); + _argsSerializer.writeInt32(((mode as PanelMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -7307,7 +7399,7 @@ export class Deserializer extends DeserializerBase { readASTCResource(): ASTCResource { let valueDeserializer : Deserializer = this const sources_buf_length : int32 = valueDeserializer.readInt32() - let sources_buf : Array = new Array() + let sources_buf : Array = new Array(sources_buf_length) for (let sources_buf_i = 0; sources_buf_i < sources_buf_length; sources_buf_i++) { sources_buf[sources_buf_i] = (valueDeserializer.readString() as string) } @@ -7424,7 +7516,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) { const value_buf__length : int32 = valueDeserializer.readInt32() - let value_buf_ : Array = new Array() + let value_buf_ : Array = new Array(value_buf__length) for (let value_buf__i = 0; value_buf__i < value_buf__length; value_buf__i++) { value_buf_[value_buf__i] = (valueDeserializer.readString() as string) } @@ -7871,7 +7963,7 @@ export class Deserializer extends DeserializerBase { readVisibleAreaEventOptions(): VisibleAreaEventOptions { let valueDeserializer : Deserializer = this const ratios_buf_length : int32 = valueDeserializer.readInt32() - let ratios_buf : Array = new Array() + let ratios_buf : Array = new Array(ratios_buf_length) for (let ratios_buf_i = 0; ratios_buf_i < ratios_buf_length; ratios_buf_i++) { ratios_buf[ratios_buf_i] = (valueDeserializer.readNumber() as number) } @@ -7958,21 +8050,6 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } - readOnMoveHandler(isSync: boolean = false): OnMoveHandler { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (from: number, to: number):void => { - const _argsSerializer : Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - _argsSerializer.writeNumber(from); - _argsSerializer.writeNumber(to); - (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } readFadingEdgeOptions(): FadingEdgeOptions { let valueDeserializer : Deserializer = this const fadingEdgeLength_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9745,7 +9822,7 @@ export class Deserializer extends DeserializerBase { } else if (mode_buf__selector == 1) { const mode_buf__u_length : int32 = valueDeserializer.readInt32() - let mode_buf__u : Array = new Array() + let mode_buf__u : Array = new Array(mode_buf__u_length) for (let mode_buf__u_i = 0; mode_buf__u_i < mode_buf__u_length; mode_buf__u_i++) { mode_buf__u[mode_buf__u_i] = (valueDeserializer.readInt32() as DragPreviewMode) } @@ -9849,7 +9926,7 @@ export class Deserializer extends DeserializerBase { readLinearGradientBlurOptions(): LinearGradientBlurOptions { let valueDeserializer : Deserializer = this const fractionStops_buf_length : int32 = valueDeserializer.readInt32() - let fractionStops_buf : Array = new Array() + let fractionStops_buf : Array = new Array(fractionStops_buf_length) for (let fractionStops_buf_i = 0; fractionStops_buf_i < fractionStops_buf_length; fractionStops_buf_i++) { const fractionStops_buf_buf_value0 : number = (valueDeserializer.readNumber() as number) const fractionStops_buf_buf_value1 : number = (valueDeserializer.readNumber() as number) @@ -10397,7 +10474,7 @@ export class Deserializer extends DeserializerBase { const year_result : number = (valueDeserializer.readNumber() as number) const month_result : number = (valueDeserializer.readNumber() as number) const data_buf_length : int32 = valueDeserializer.readInt32() - let data_buf : Array = new Array() + let data_buf : Array = new Array(data_buf_length) for (let data_buf_i = 0; data_buf_i < data_buf_length; data_buf_i++) { data_buf[data_buf_i] = valueDeserializer.readCalendarDay() } @@ -11034,7 +11111,7 @@ export class Deserializer extends DeserializerBase { } const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf const buttons_buf_length : int32 = valueDeserializer.readInt32() - let buttons_buf : Array = new Array() + let buttons_buf : Array = new Array(buttons_buf_length) for (let buttons_buf_i = 0; buttons_buf_i < buttons_buf_length; buttons_buf_i++) { buttons_buf[buttons_buf_i] = valueDeserializer.readAlertDialogButtonOptions() } @@ -12091,7 +12168,7 @@ export class Deserializer extends DeserializerBase { } const cancel_result : VoidCallback | undefined = cancel_buf const sheets_buf_length : int32 = valueDeserializer.readInt32() - let sheets_buf : Array = new Array() + let sheets_buf : Array = new Array(sheets_buf_length) for (let sheets_buf_i = 0; sheets_buf_i < sheets_buf_length; sheets_buf_i++) { sheets_buf[sheets_buf_i] = valueDeserializer.readSheetInfo() } @@ -12687,7 +12764,7 @@ export class Deserializer extends DeserializerBase { } else if (radius_buf__selector == 2) { const radius_buf__u_length : int32 = valueDeserializer.readInt32() - let radius_buf__u : Array = new Array() + let radius_buf__u : Array = new Array(radius_buf__u_length) for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { const radius_buf__u_buf_selector : int32 = valueDeserializer.readInt8() let radius_buf__u_buf : number | string | undefined @@ -12858,7 +12935,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavContentInfo(from); _argsSerializer.writeNavContentInfo(to); - _argsSerializer.writeInt32((operation.valueOf() as int32)); + _argsSerializer.writeInt32(((operation as NavigationOperation) as int32)); let _continuationValue : NavigationAnimatedTransition | undefined; const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; } _argsSerializer.holdAndWriteCallback(_continuationCallback); @@ -12876,7 +12953,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(value); - _argsSerializer.writeInt32((mode.valueOf() as int32)); + _argsSerializer.writeInt32(((mode as SliderChangeMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -12890,7 +12967,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((type.valueOf() as int32)); + _argsSerializer.writeInt32(((type as RouteType) as int32)); _argsSerializer.writeNumber(progress); (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); @@ -12906,11 +12983,26 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(scrollOffset); - _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + _argsSerializer.writeInt32(((scrollState as ScrollState) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } + readOnMoveHandler(isSync: boolean = false): OnMoveHandler { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (from: number, to: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } readIsolatedOptions(): IsolatedOptions { let valueDeserializer : Deserializer = this const want_result : Want = valueDeserializer.readWant() @@ -13219,7 +13311,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((titleMode.valueOf() as int32)); + _argsSerializer.writeInt32(((titleMode as NavigationTitleMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -13233,7 +13325,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((mode.valueOf() as int32)); + _argsSerializer.writeInt32(((mode as NavigationMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -13279,7 +13371,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((value.valueOf() as int32)); + _argsSerializer.writeInt32(((value as HitTestMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -13307,7 +13399,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((value.valueOf() as int32)); + _argsSerializer.writeInt32(((value as GestureJudgeResult) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -13412,16 +13504,6 @@ export class Deserializer extends DeserializerBase { let value : ImageAttachmentInterface = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachmentInterface) return value } - readUrlStyle(): UrlStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return UrlStyleInternal.fromPtr(ptr) - } - readLineHeightStyle(): LineHeightStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return LineHeightStyleInternal.fromPtr(ptr) - } readParagraphStyleInterface(): ParagraphStyleInterface { let valueDeserializer : Deserializer = this const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13480,11 +13562,6 @@ export class Deserializer extends DeserializerBase { let value : ParagraphStyleInterface = ({textAlign: textAlign_result,textIndent: textIndent_result,maxLines: maxLines_result,overflow: overflow_result,wordBreak: wordBreak_result,leadingMargin: leadingMargin_result} as ParagraphStyleInterface) return value } - readParagraphStyle(): ParagraphStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return ParagraphStyleInternal.fromPtr(ptr) - } readGestureStyleInterface(): GestureStyleInterface { let valueDeserializer : Deserializer = this const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13504,36 +13581,6 @@ export class Deserializer extends DeserializerBase { let value : GestureStyleInterface = ({onClick: onClick_result,onLongPress: onLongPress_result} as GestureStyleInterface) return value } - readGestureStyle(): GestureStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return GestureStyleInternal.fromPtr(ptr) - } - readBackgroundColorStyle(): BackgroundColorStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return BackgroundColorStyleInternal.fromPtr(ptr) - } - readTextShadowStyle(): TextShadowStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return TextShadowStyleInternal.fromPtr(ptr) - } - readLetterSpacingStyle(): LetterSpacingStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return LetterSpacingStyleInternal.fromPtr(ptr) - } - readBaselineOffsetStyle(): BaselineOffsetStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return BaselineOffsetStyleInternal.fromPtr(ptr) - } - readDecorationStyle(): DecorationStyle { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return DecorationStyleInternal.fromPtr(ptr) - } readTextStyleInterface(): TextStyleInterface { let valueDeserializer : Deserializer = this const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13616,11 +13663,6 @@ export class Deserializer extends DeserializerBase { let value : TextStyleInterface = ({fontColor: fontColor_result,fontFamily: fontFamily_result,fontSize: fontSize_result,fontWeight: fontWeight_result,fontStyle: fontStyle_result} as TextStyleInterface) return value } - readTextStyle_styled_string(): TextStyle_styled_string { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return TextStyle_styled_stringInternal.fromPtr(ptr) - } readStyleOptions(): StyleOptions { let valueDeserializer : Deserializer = this const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13638,7 +13680,51 @@ export class Deserializer extends DeserializerBase { } const length_result : number | undefined = length_buf const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_result : StyledStringValue = valueDeserializer.readStyledStringValue() + const styledValue_buf_selector : int32 = valueDeserializer.readInt8() + let styledValue_buf : TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined + if (styledValue_buf_selector == 0) { + styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) + } + else if (styledValue_buf_selector == 1) { + styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) + } + else if (styledValue_buf_selector == 2) { + styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) + } + else if (styledValue_buf_selector == 3) { + styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) + } + else if (styledValue_buf_selector == 4) { + styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) + } + else if (styledValue_buf_selector == 5) { + styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) + } + else if (styledValue_buf_selector == 6) { + styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) + } + else if (styledValue_buf_selector == 7) { + styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) + } + else if (styledValue_buf_selector == 8) { + styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) + } + else if (styledValue_buf_selector == 9) { + styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) + } + else if (styledValue_buf_selector == 10) { + styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) + } + else if (styledValue_buf_selector == 11) { + styledValue_buf = valueDeserializer.readUserDataSpan() + } + else if (styledValue_buf_selector == 12) { + styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) + } + else { + throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + } + const styledValue_result : StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) let value : StyleOptions = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as StyleOptions) return value } @@ -13837,7 +13923,7 @@ export class Deserializer extends DeserializerBase { let valueDeserializer : Deserializer = this const url_result : string = (valueDeserializer.readString() as string) const adsBlocked_buf_length : int32 = valueDeserializer.readInt32() - let adsBlocked_buf : Array = new Array() + let adsBlocked_buf : Array = new Array(adsBlocked_buf_length) for (let adsBlocked_buf_i = 0; adsBlocked_buf_i < adsBlocked_buf_length; adsBlocked_buf_i++) { adsBlocked_buf[adsBlocked_buf_i] = (valueDeserializer.readString() as string) } @@ -13920,7 +14006,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((viewportFit.valueOf() as int32)); + _argsSerializer.writeInt32(((viewportFit as ViewportFit) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -14132,7 +14218,7 @@ export class Deserializer extends DeserializerBase { let valueDeserializer : Deserializer = this const script_result : string = (valueDeserializer.readString() as string) const scriptRules_buf_length : int32 = valueDeserializer.readInt32() - let scriptRules_buf : Array = new Array() + let scriptRules_buf : Array = new Array(scriptRules_buf_length) for (let scriptRules_buf_i = 0; scriptRules_buf_i < scriptRules_buf_length; scriptRules_buf_i++) { scriptRules_buf[scriptRules_buf_i] = (valueDeserializer.readString() as string) } @@ -14194,7 +14280,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((threatType.valueOf() as int32)); + _argsSerializer.writeInt32(((threatType as ThreatType) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -14488,13 +14574,13 @@ export class Deserializer extends DeserializerBase { const host_result : string = (valueDeserializer.readString() as string) const port_result : number = (valueDeserializer.readNumber() as number) const keyTypes_buf_length : int32 = valueDeserializer.readInt32() - let keyTypes_buf : Array = new Array() + let keyTypes_buf : Array = new Array(keyTypes_buf_length) for (let keyTypes_buf_i = 0; keyTypes_buf_i < keyTypes_buf_length; keyTypes_buf_i++) { keyTypes_buf[keyTypes_buf_i] = (valueDeserializer.readString() as string) } const keyTypes_result : Array = keyTypes_buf const issuers_buf_length : int32 = valueDeserializer.readInt32() - let issuers_buf : Array = new Array() + let issuers_buf : Array = new Array(issuers_buf_length) for (let issuers_buf_i = 0; issuers_buf_i < issuers_buf_length; issuers_buf_i++) { issuers_buf[issuers_buf_i] = (valueDeserializer.readString() as string) } @@ -14551,7 +14637,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (certChainData_buf_runtimeType)) { const certChainData_buf__length : int32 = valueDeserializer.readInt32() - let certChainData_buf_ : Array = new Array() + let certChainData_buf_ : Array = new Array(certChainData_buf__length) for (let certChainData_buf__i = 0; certChainData_buf__i < certChainData_buf__length; certChainData_buf__i++) { certChainData_buf_[certChainData_buf__i] = (valueDeserializer.readBuffer() as NativeBuffer) } @@ -15303,7 +15389,7 @@ export class Deserializer extends DeserializerBase { const object__result : Object = (valueDeserializer.readCustomObject("Object") as Object) const name_result : string = (valueDeserializer.readString() as string) const methodList_buf_length : int32 = valueDeserializer.readInt32() - let methodList_buf : Array = new Array() + let methodList_buf : Array = new Array(methodList_buf_length) for (let methodList_buf_i = 0; methodList_buf_i < methodList_buf_length; methodList_buf_i++) { methodList_buf[methodList_buf_i] = (valueDeserializer.readString() as string) } @@ -15325,7 +15411,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (asyncMethodList_buf_runtimeType)) { const asyncMethodList_buf__length : int32 = valueDeserializer.readInt32() - let asyncMethodList_buf_ : Array = new Array() + let asyncMethodList_buf_ : Array = new Array(asyncMethodList_buf__length) for (let asyncMethodList_buf__i = 0; asyncMethodList_buf__i < asyncMethodList_buf__length; asyncMethodList_buf__i++) { asyncMethodList_buf_[asyncMethodList_buf__i] = (valueDeserializer.readString() as string) } @@ -15707,7 +15793,7 @@ export class Deserializer extends DeserializerBase { } else if (value_buf_selector == 1) { const value_buf_u_length : int32 = valueDeserializer.readInt32() - let value_buf_u : Array = new Array() + let value_buf_u : Array = new Array(value_buf_u_length) for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { value_buf_u[value_buf_u_i] = (valueDeserializer.readString() as string) } @@ -15724,7 +15810,7 @@ export class Deserializer extends DeserializerBase { } else if (index_buf_selector == 1) { const index_buf_u_length : int32 = valueDeserializer.readInt32() - let index_buf_u : Array = new Array() + let index_buf_u : Array = new Array(index_buf_u_length) for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { index_buf_u[index_buf_u_i] = (valueDeserializer.readNumber() as number) } @@ -15821,7 +15907,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (children_buf_runtimeType)) { const children_buf__length : int32 = valueDeserializer.readInt32() - let children_buf_ : Array = new Array() + let children_buf_ : Array = new Array(children_buf__length) for (let children_buf__i = 0; children_buf__i < children_buf__length; children_buf__i++) { children_buf_[children_buf__i] = valueDeserializer.readTextCascadePickerRangeContent() } @@ -15872,7 +15958,7 @@ export class Deserializer extends DeserializerBase { let range_buf : Array | Array> | Resource | Array | Array | undefined if (range_buf_selector == 0) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array = new Array() + let range_buf_u : Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) } @@ -15880,10 +15966,10 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 1) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array> = new Array>() + let range_buf_u : Array> = new Array>(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { const range_buf_u_buf_length : int32 = valueDeserializer.readInt32() - let range_buf_u_buf : Array = new Array() + let range_buf_u_buf : Array = new Array(range_buf_u_buf_length) for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) } @@ -15896,7 +15982,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 3) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array = new Array() + let range_buf_u : Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() } @@ -15904,7 +15990,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 4) { const range_buf_u_length : int32 = valueDeserializer.readInt32() - let range_buf_u : Array = new Array() + let range_buf_u : Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() } @@ -15925,7 +16011,7 @@ export class Deserializer extends DeserializerBase { } else if (value_buf__selector == 1) { const value_buf__u_length : int32 = valueDeserializer.readInt32() - let value_buf__u : Array = new Array() + let value_buf__u : Array = new Array(value_buf__u_length) for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) } @@ -15948,7 +16034,7 @@ export class Deserializer extends DeserializerBase { } else if (selected_buf__selector == 1) { const selected_buf__u_length : int32 = valueDeserializer.readInt32() - let selected_buf__u : Array = new Array() + let selected_buf__u : Array = new Array(selected_buf__u_length) for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) } @@ -16013,7 +16099,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeInt32(((enterKey as EnterKeyType) as int32)); _argsSerializer.writeSubmitEvent(event); (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); @@ -16131,7 +16217,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((enterKeyType.valueOf() as int32)); + _argsSerializer.writeInt32(((enterKeyType as EnterKeyType) as int32)); let event_type : int32 = RuntimeType.UNDEFINED; event_type = runtimeType(event); _argsSerializer.writeInt8(event_type as int32); @@ -16152,7 +16238,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeInt32(((enterKey as EnterKeyType) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -16569,7 +16655,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(value); - _argsSerializer.writeInt32((mode.valueOf() as int32)); + _argsSerializer.writeInt32(((mode as SliderChangeMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -17096,7 +17182,7 @@ export class Deserializer extends DeserializerBase { } else if (snapPagination_buf__selector == 1) { const snapPagination_buf__u_length : int32 = valueDeserializer.readInt32() - let snapPagination_buf__u : Array = new Array() + let snapPagination_buf__u : Array = new Array(snapPagination_buf__u_length) for (let snapPagination_buf__u_i = 0; snapPagination_buf__u_i < snapPagination_buf__u_length; snapPagination_buf__u_i++) { snapPagination_buf__u[snapPagination_buf__u_i] = (valueDeserializer.readLength() as Dimension) } @@ -17141,7 +17227,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(offset); - _argsSerializer.writeInt32((state.valueOf() as int32)); + _argsSerializer.writeInt32(((state as ScrollState) as int32)); let _continuationValue : OnScrollFrameBeginHandlerResult | undefined; const _continuationCallback : ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult):void => { _continuationValue = value; } _argsSerializer.holdAndWriteCallback(_continuationCallback); @@ -17158,7 +17244,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((side.valueOf() as int32)); + _argsSerializer.writeInt32(((side as Edge) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -17173,7 +17259,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeClickEvent(event); - _argsSerializer.writeInt32((result.valueOf() as int32)); + _argsSerializer.writeInt32(((result as SaveButtonOnClickResult) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -17304,19 +17390,19 @@ export class Deserializer extends DeserializerBase { let valueDeserializer : Deserializer = this const rangeBefore_result : TextRange = valueDeserializer.readTextRange() const replacedSpans_buf_length : int32 = valueDeserializer.readInt32() - let replacedSpans_buf : Array = new Array() + let replacedSpans_buf : Array = new Array(replacedSpans_buf_length) for (let replacedSpans_buf_i = 0; replacedSpans_buf_i < replacedSpans_buf_length; replacedSpans_buf_i++) { replacedSpans_buf[replacedSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() } const replacedSpans_result : Array = replacedSpans_buf const replacedImageSpans_buf_length : int32 = valueDeserializer.readInt32() - let replacedImageSpans_buf : Array = new Array() + let replacedImageSpans_buf : Array = new Array(replacedImageSpans_buf_length) for (let replacedImageSpans_buf_i = 0; replacedImageSpans_buf_i < replacedImageSpans_buf_length; replacedImageSpans_buf_i++) { replacedImageSpans_buf[replacedImageSpans_buf_i] = valueDeserializer.readRichEditorImageSpanResult() } const replacedImageSpans_result : Array = replacedImageSpans_buf const replacedSymbolSpans_buf_length : int32 = valueDeserializer.readInt32() - let replacedSymbolSpans_buf : Array = new Array() + let replacedSymbolSpans_buf : Array = new Array(replacedSymbolSpans_buf_length) for (let replacedSymbolSpans_buf_i = 0; replacedSymbolSpans_buf_i < replacedSymbolSpans_buf_length; replacedSymbolSpans_buf_i++) { replacedSymbolSpans_buf[replacedSymbolSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() } @@ -17355,7 +17441,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeInt32(((enterKey as EnterKeyType) as int32)); _argsSerializer.writeSubmitEvent(event); (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); @@ -17364,7 +17450,7 @@ export class Deserializer extends DeserializerBase { readTextDataDetectorConfig(): TextDataDetectorConfig { let valueDeserializer : Deserializer = this const types_buf_length : int32 = valueDeserializer.readInt32() - let types_buf : Array = new Array() + let types_buf : Array = new Array(types_buf_length) for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { types_buf[types_buf_i] = (valueDeserializer.readInt32() as TextDataDetectorType) } @@ -17448,7 +17534,7 @@ export class Deserializer extends DeserializerBase { const direction_result : RichEditorDeleteDirection = (valueDeserializer.readInt32() as RichEditorDeleteDirection) const length_result : number = (valueDeserializer.readNumber() as number) const richEditorDeleteSpans_buf_length : int32 = valueDeserializer.readInt32() - let richEditorDeleteSpans_buf : Array = new Array() + let richEditorDeleteSpans_buf : Array = new Array(richEditorDeleteSpans_buf_length) for (let richEditorDeleteSpans_buf_i = 0; richEditorDeleteSpans_buf_i < richEditorDeleteSpans_buf_length; richEditorDeleteSpans_buf_i++) { const richEditorDeleteSpans_buf_buf_selector : int32 = valueDeserializer.readInt8() let richEditorDeleteSpans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined @@ -17604,7 +17690,7 @@ export class Deserializer extends DeserializerBase { const id_result : string = (valueDeserializer.readString() as string) const localizedDirection_result : LocalizedBarrierDirection = (valueDeserializer.readInt32() as LocalizedBarrierDirection) const referencedId_buf_length : int32 = valueDeserializer.readInt32() - let referencedId_buf : Array = new Array() + let referencedId_buf : Array = new Array(referencedId_buf_length) for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) } @@ -17617,7 +17703,7 @@ export class Deserializer extends DeserializerBase { const id_result : string = (valueDeserializer.readString() as string) const direction_result : BarrierDirection = (valueDeserializer.readInt32() as BarrierDirection) const referencedId_buf_length : int32 = valueDeserializer.readInt32() - let referencedId_buf : Array = new Array() + let referencedId_buf : Array = new Array(referencedId_buf_length) for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) } @@ -17642,7 +17728,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((state.valueOf() as int32)); + _argsSerializer.writeInt32(((state as RefreshStatus) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -18071,7 +18157,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeClickEvent(event); - _argsSerializer.writeInt32((result.valueOf() as int32)); + _argsSerializer.writeInt32(((result as PasteButtonOnClickResult) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -18113,7 +18199,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(width); _argsSerializer.writeNumber(height); - _argsSerializer.writeInt32((mode.valueOf() as int32)); + _argsSerializer.writeInt32(((mode as PanelMode) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -18415,7 +18501,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeClickEvent(event); - _argsSerializer.writeInt32((result.valueOf() as int32)); + _argsSerializer.writeInt32(((result as LocationButtonOnClickResult) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -19163,7 +19249,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(offset); - _argsSerializer.writeInt32((state.valueOf() as int32)); + _argsSerializer.writeInt32(((state as ScrollState) as int32)); let _continuationValue : Literal_Number_offsetRemain | undefined; const _continuationCallback : ((value: Literal_Number_offsetRemain) => void) = (value: Literal_Number_offsetRemain):void => { _continuationValue = value; } _argsSerializer.holdAndWriteCallback(_continuationCallback); @@ -19293,7 +19379,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (irregularIndexes_buf_runtimeType)) { const irregularIndexes_buf__length : int32 = valueDeserializer.readInt32() - let irregularIndexes_buf_ : Array = new Array() + let irregularIndexes_buf_ : Array = new Array(irregularIndexes_buf__length) for (let irregularIndexes_buf__i = 0; irregularIndexes_buf__i < irregularIndexes_buf__length; irregularIndexes_buf__i++) { irregularIndexes_buf_[irregularIndexes_buf__i] = (valueDeserializer.readNumber() as number) } @@ -19670,7 +19756,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (upperItems_buf_runtimeType)) { const upperItems_buf__length : int32 = valueDeserializer.readInt32() - let upperItems_buf_ : Array = new Array() + let upperItems_buf_ : Array = new Array(upperItems_buf__length) for (let upperItems_buf__i = 0; upperItems_buf__i < upperItems_buf__length; upperItems_buf__i++) { upperItems_buf_[upperItems_buf__i] = (valueDeserializer.readString() as string) } @@ -19933,7 +20019,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (colors_buf_runtimeType)) { const colors_buf__length : int32 = valueDeserializer.readInt32() - let colors_buf_ : Array = new Array() + let colors_buf_ : Array = new Array(colors_buf__length) for (let colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { const colors_buf__buf_selector : int32 = valueDeserializer.readInt8() let colors_buf__buf : ResourceColor | LinearGradient | undefined @@ -19974,7 +20060,7 @@ export class Deserializer extends DeserializerBase { readDataPanelOptions(): DataPanelOptions { let valueDeserializer : Deserializer = this const values_buf_length : int32 = valueDeserializer.readInt32() - let values_buf : Array = new Array() + let values_buf : Array = new Array(values_buf_length) for (let values_buf_i = 0; values_buf_i < values_buf_length; values_buf_i++) { values_buf[values_buf_i] = (valueDeserializer.readNumber() as number) } @@ -20561,7 +20647,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writePointer(_callSync); _argsSerializer.writeNumber(xOffset); _argsSerializer.writeNumber(yOffset); - _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + _argsSerializer.writeInt32(((scrollState as ScrollState) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -20873,7 +20959,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); - _argsSerializer.writeInt32((parameter.valueOf() as int32)); + _argsSerializer.writeInt32(((parameter as PreDragStatus) as int32)); (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } @@ -22379,7 +22465,7 @@ export class Deserializer extends DeserializerBase { readCheckboxGroupResult(): CheckboxGroupResult { let valueDeserializer : Deserializer = this const name_buf_length : int32 = valueDeserializer.readInt32() - let name_buf : Array = new Array() + let name_buf : Array = new Array(name_buf_length) for (let name_buf_i = 0; name_buf_i < name_buf_length; name_buf_i++) { name_buf[name_buf_i] = (valueDeserializer.readString() as string) } @@ -23375,7 +23461,7 @@ export class Deserializer extends DeserializerBase { readAlphabetIndexerOptions(): AlphabetIndexerOptions { let valueDeserializer : Deserializer = this const arrayValue_buf_length : int32 = valueDeserializer.readInt32() - let arrayValue_buf : Array = new Array() + let arrayValue_buf : Array = new Array(arrayValue_buf_length) for (let arrayValue_buf_i = 0; arrayValue_buf_i < arrayValue_buf_length; arrayValue_buf_i++) { arrayValue_buf[arrayValue_buf_i] = (valueDeserializer.readString() as string) } diff --git a/arkoala-arkts/arkui/src/generated/peers/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/peers/GlobalScope.ts index 484bf48406a763972cabc9a54e5da552ba0cec4d..f94db3d498b7a4bccd4518565d313a094f8a66c3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/GlobalScope.ts +++ b/arkoala-arkts/arkui/src/generated/peers/GlobalScope.ts @@ -21,7 +21,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { Callback_Void } from "./../SyntheticDeclarations" import { Profiler } from "./../ArkProfilerNamespace" import { PointerStyle } from "./../ArkArkuiCustomInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, toPeerPtr, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./Serializer" import { CallbackKind } from "./CallbackKind" @@ -44,7 +44,9 @@ export class GlobalScope { } const retval = ArkUIGeneratedNativeModule._GlobalScope_getContext(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval, retval.length).readContext() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : Context = retvalDeserializer.readContext() + return returnResult } public static postCardAction(component: Object, action: Object): void { const component_casted = component as (Object) @@ -73,7 +75,9 @@ export class GlobalScope { } const retval = ArkUIGeneratedNativeModule._GlobalScope_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval, retval.length).readResource() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : Resource = retvalDeserializer.readResource() + return returnResult } public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) @@ -81,7 +85,9 @@ export class GlobalScope { } static dollar_rawfile_serialize(value: string): Resource { const retval = ArkUIGeneratedNativeModule._GlobalScope_dollar_rawfile(value) - return new Deserializer(retval, retval.length).readResource() + let retvalDeserializer : Deserializer = new Deserializer(retval, retval.length) + const returnResult : Resource = retvalDeserializer.readResource() + return returnResult } public static animateTo(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) @@ -204,7 +210,7 @@ export class GlobalScope { return } static cursorControl_setCursor_serialize(value: PointerStyle): void { - ArkUIGeneratedNativeModule._GlobalScope_cursorControl_setCursor((value.valueOf() as int32)) + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_setCursor(((value as PointerStyle) as int32)) } public static cursorControl_restoreDefault(): void { GlobalScope.cursorControl_restoreDefault_serialize() diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index bffe38378e19ecf3376b472a55a388f5ab62bdd8..ed2949fb735467ed17c45d688c77b817c6ebda6d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -13,12 +13,12 @@ * limitations under the License. */ -import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, toPeerPtr, MaterializedBase, nullptr, KPointer } from "@koalaui/interop" +import { SerializerBase, Tags, RuntimeType, runtimeType, toPeerPtr, MaterializedBase, nullptr, KPointer } from "@koalaui/interop" import { int32, float32, unsafeCast, int64 } from "@koalaui/common" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, Context, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, Context, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" @@ -49,18 +49,31 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" +import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" -import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, AnimationRange_Number, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { ImageAttachmentLayoutStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, ImageAttachmentInterface, GestureStyleInterface, DecorationStyleInterface, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" -import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMetrics, CustomSpanMeasureInfo, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -100,9 +113,6 @@ import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" -import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" -import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" @@ -215,16 +225,6 @@ import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, Wo import { BaseShape, BaseShapeInternal } from "./../ArkBaseShapeMaterialized" import { CommonShape, CommonShapeInternal } from "./../ArkCommonShapeMaterialized" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" -import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" -import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" -import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" -import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" -import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" -import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" -import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" -import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" -import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" -import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" @@ -367,18 +367,282 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_type_value) } } - writeICurve(value: ICurve): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writePixelMap(value: PixelMap): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLengthMetrics(value: LengthMetrics): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } + writePixelMap(value: PixelMap): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLengthMetrics(value: LengthMetrics): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { + let valueSerializer : Serializer = this + const value_pixelMap = value.pixelMap + valueSerializer.writePixelMap(value_pixelMap) + const value_size = value.size + const value_size_0 = value_size[0] + valueSerializer.writeLength(value_size_0) + const value_size_1 = value_size[1] + valueSerializer.writeLength(value_size_1) + } + writeICurve(value: ICurve): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeTextBackgroundStyle(value: TextBackgroundStyle): void { + let valueSerializer : Serializer = this + const value_color = value.color + let value_color_type : int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type : int32 = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (TypeChecker.isColor(value_color_value)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) + } + else if (RuntimeType.NUMBER == value_color_value_type) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (RuntimeType.STRING == value_color_value_type) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (RuntimeType.OBJECT == value_color_value_type) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_radius = value.radius + let value_radius_type : int32 = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type : int32 = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isResource(value_radius_value, false, false, false, false, false)))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as Dimension + valueSerializer.writeLength(value_radius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isBorderRadiuses(value_radius_value, false, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as BorderRadiuses + const value_radius_value_1_topLeft = value_radius_value_1.topLeft + let value_radius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) + valueSerializer.writeInt8(value_radius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! + valueSerializer.writeLength(value_radius_value_1_topLeft_value) + } + const value_radius_value_1_topRight = value_radius_value_1.topRight + let value_radius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) + valueSerializer.writeInt8(value_radius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { + const value_radius_value_1_topRight_value = value_radius_value_1_topRight! + valueSerializer.writeLength(value_radius_value_1_topRight_value) + } + const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft + let value_radius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) + } + const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight + let value_radius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! + valueSerializer.writeLength(value_radius_value_1_bottomRight_value) + } + } + } + } + writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { + let valueSerializer : Serializer = this + const value_margin = value.margin + let value_margin_type : int32 = RuntimeType.UNDEFINED + value_margin_type = runtimeType(value_margin) + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type : int32 = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isLengthMetrics(value_margin_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_margin_value_0 = value_margin_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_margin_value_0) + } + else if (TypeChecker.isPadding(value_margin_value, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_margin_value_1 = value_margin_value as Margin + const value_margin_value_1_top = value_margin_value_1.top + let value_margin_value_1_top_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) + valueSerializer.writeInt8(value_margin_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { + const value_margin_value_1_top_value = value_margin_value_1_top! + valueSerializer.writeLength(value_margin_value_1_top_value) + } + const value_margin_value_1_right = value_margin_value_1.right + let value_margin_value_1_right_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) + valueSerializer.writeInt8(value_margin_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { + const value_margin_value_1_right_value = value_margin_value_1_right! + valueSerializer.writeLength(value_margin_value_1_right_value) + } + const value_margin_value_1_bottom = value_margin_value_1.bottom + let value_margin_value_1_bottom_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) + valueSerializer.writeInt8(value_margin_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { + const value_margin_value_1_bottom_value = value_margin_value_1_bottom! + valueSerializer.writeLength(value_margin_value_1_bottom_value) + } + const value_margin_value_1_left = value_margin_value_1.left + let value_margin_value_1_left_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) + valueSerializer.writeInt8(value_margin_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { + const value_margin_value_1_left_value = value_margin_value_1_left! + valueSerializer.writeLength(value_margin_value_1_left_value) + } + } + } + const value_padding = value.padding + let value_padding_type : int32 = RuntimeType.UNDEFINED + value_padding_type = runtimeType(value_padding) + valueSerializer.writeInt8(value_padding_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_type)) { + const value_padding_value = value_padding! + let value_padding_value_type : int32 = RuntimeType.UNDEFINED + value_padding_value_type = runtimeType(value_padding_value) + if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isLengthMetrics(value_padding_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_padding_value_0 = value_padding_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_padding_value_0) + } + else if (TypeChecker.isPadding(value_padding_value, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_padding_value_1 = value_padding_value as Padding + const value_padding_value_1_top = value_padding_value_1.top + let value_padding_value_1_top_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) + valueSerializer.writeInt8(value_padding_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { + const value_padding_value_1_top_value = value_padding_value_1_top! + valueSerializer.writeLength(value_padding_value_1_top_value) + } + const value_padding_value_1_right = value_padding_value_1.right + let value_padding_value_1_right_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) + valueSerializer.writeInt8(value_padding_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { + const value_padding_value_1_right_value = value_padding_value_1_right! + valueSerializer.writeLength(value_padding_value_1_right_value) + } + const value_padding_value_1_bottom = value_padding_value_1.bottom + let value_padding_value_1_bottom_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) + valueSerializer.writeInt8(value_padding_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { + const value_padding_value_1_bottom_value = value_padding_value_1_bottom! + valueSerializer.writeLength(value_padding_value_1_bottom_value) + } + const value_padding_value_1_left = value_padding_value_1.left + let value_padding_value_1_left_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) + valueSerializer.writeInt8(value_padding_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { + const value_padding_value_1_left_value = value_padding_value_1_left! + valueSerializer.writeLength(value_padding_value_1_left_value) + } + } + } + const value_borderRadius = value.borderRadius + let value_borderRadius_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_type = runtimeType(value_borderRadius) + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isLengthMetrics(value_borderRadius_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_borderRadius_value_0 = value_borderRadius_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_borderRadius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) + } + } + } + } + writeSizeOptions(value: SizeOptions): void { + let valueSerializer : Serializer = this + const value_width = value.width + let value_width_type : int32 = RuntimeType.UNDEFINED + value_width_type = runtimeType(value_width) + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value) + } + const value_height = value.height + let value_height_type : int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeLength(value_height_value) + } + } writePosition(value: Position): void { let valueSerializer : Serializer = this const value_x = value.x @@ -403,16 +667,6 @@ export class Serializer extends SerializerBase { const value__SymbolGlyphModifierStub = value._SymbolGlyphModifierStub valueSerializer.writeString(value__SymbolGlyphModifierStub) } - writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { - let valueSerializer : Serializer = this - const value_pixelMap = value.pixelMap - valueSerializer.writePixelMap(value_pixelMap) - const value_size = value.size - const value_size_0 = value_size[0] - valueSerializer.writeLength(value_size_0) - const value_size_1 = value_size[1] - valueSerializer.writeLength(value_size_1) - } writeShadowOptions(value: ShadowOptions): void { let valueSerializer : Serializer = this const value_radius = value.radius @@ -434,7 +688,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as ShadowType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as ShadowType) as int32)) } const value_color = value.color let value_color_type : int32 = RuntimeType.UNDEFINED @@ -447,7 +701,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -563,6 +817,56 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_xxl_value) } } + writeBackgroundColorStyle(value: BackgroundColorStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeUserDataSpan(value: UserDataSpan): void { + } + writeCustomSpan(value: CustomSpan): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeUrlStyle(value: UrlStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLineHeightStyle(value: LineHeightStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeParagraphStyle(value: ParagraphStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeImageAttachment(value: ImageAttachment): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeGestureStyle(value: GestureStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeTextShadowStyle(value: TextShadowStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLetterSpacingStyle(value: LetterSpacingStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeDecorationStyle(value: DecorationStyle): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeTextStyle_styled_string(value: TextStyle_styled_string): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } writeArea(value: Area): void { let valueSerializer : Serializer = this const value_width = value.width @@ -595,7 +899,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isFontWeight(value_weight_value)) { valueSerializer.writeInt8(0 as int32) const value_weight_value_0 = value_weight_value as FontWeight - valueSerializer.writeInt32((value_weight_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_weight_value_0 as FontWeight) as int32)) } else if (RuntimeType.NUMBER == value_weight_value_type) { valueSerializer.writeInt8(1 as int32) @@ -633,7 +937,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as FontStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as FontStyle) as int32)) } } writeLocalizedPadding(value: LocalizedPadding): void { @@ -710,7 +1014,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve - valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_curve_value_0 as Curve) as int32)) } else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) @@ -737,12 +1041,12 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type : int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.NUMBER) == (value_margin_value_type)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (isResource(value_margin_value)))) { + if (((RuntimeType.NUMBER) == (value_margin_value_type)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isResource(value_margin_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_margin_value_0 = value_margin_value as Dimension valueSerializer.writeLength(value_margin_value_0) } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { + else if (TypeChecker.isPadding(value_margin_value, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) const value_margin_value_1 = value_margin_value as Margin const value_margin_value_1_top = value_margin_value_1.top @@ -787,7 +1091,7 @@ export class Serializer extends SerializerBase { const value_borderRadius_value = value_borderRadius! let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isResource(value_borderRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderRadius_value_0 = value_borderRadius_value as Dimension valueSerializer.writeLength(value_borderRadius_value_0) @@ -833,14 +1137,14 @@ export class Serializer extends SerializerBase { writeDecorationStyleResult(value: DecorationStyleResult): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as TextDecorationType) as int32)) const value_color = value.color let value_color_type : int32 = RuntimeType.UNDEFINED value_color_type = runtimeType(value_color) if (TypeChecker.isColor(value_color)) { valueSerializer.writeInt8(0 as int32) const value_color_0 = value_color as Color - valueSerializer.writeInt32((value_color_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1 as int32) @@ -863,13 +1167,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as TextDecorationStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as TextDecorationStyle) as int32)) } } writeDecorationStyleInterface(value: DecorationStyleInterface): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as TextDecorationType) as int32)) const value_color = value.color let value_color_type : int32 = RuntimeType.UNDEFINED value_color_type = runtimeType(value_color) @@ -881,7 +1185,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -905,7 +1209,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as TextDecorationStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as TextDecorationStyle) as int32)) } } writeLocalizedEdgeColors(value: LocalizedEdgeColors): void { @@ -921,7 +1225,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_top_value)) { valueSerializer.writeInt8(0 as int32) const value_top_value_0 = value_top_value as Color - valueSerializer.writeInt32((value_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -950,7 +1254,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_end_value)) { valueSerializer.writeInt8(0 as int32) const value_end_value_0 = value_end_value as Color - valueSerializer.writeInt32((value_end_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_end_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_end_value_type) { valueSerializer.writeInt8(1 as int32) @@ -979,7 +1283,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_bottom_value_0 = value_bottom_value as Color - valueSerializer.writeInt32((value_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1008,7 +1312,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_start_value)) { valueSerializer.writeInt8(0 as int32) const value_start_value_0 = value_start_value as Color - valueSerializer.writeInt32((value_start_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_start_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_start_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1077,254 +1381,77 @@ export class Serializer extends SerializerBase { const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) } - const value_subtitle = value.subtitle - let value_subtitle_type : int32 = RuntimeType.UNDEFINED - value_subtitle_type = runtimeType(value_subtitle) - valueSerializer.writeInt8(value_subtitle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_subtitle_type)) { - const value_subtitle_value = value_subtitle! - let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED - value_subtitle_value_type = runtimeType(value_subtitle_value) - if (RuntimeType.STRING == value_subtitle_value_type) { - valueSerializer.writeInt8(0 as int32) - const value_subtitle_value_0 = value_subtitle_value as string - valueSerializer.writeString(value_subtitle_value_0) - } - else if (RuntimeType.OBJECT == value_subtitle_value_type) { - valueSerializer.writeInt8(1 as int32) - const value_subtitle_value_1 = value_subtitle_value as Resource - valueSerializer.writeResource(value_subtitle_value_1) - } - } - } - writeTransitionEffect(value: TransitionEffect): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLocalizedBorderRadiuses(value: LocalizedBorderRadiuses): void { - let valueSerializer : Serializer = this - const value_topStart = value.topStart - let value_topStart_type : int32 = RuntimeType.UNDEFINED - value_topStart_type = runtimeType(value_topStart) - valueSerializer.writeInt8(value_topStart_type as int32) - if ((RuntimeType.UNDEFINED) != (value_topStart_type)) { - const value_topStart_value = value_topStart! - valueSerializer.writeLengthMetrics(value_topStart_value) - } - const value_topEnd = value.topEnd - let value_topEnd_type : int32 = RuntimeType.UNDEFINED - value_topEnd_type = runtimeType(value_topEnd) - valueSerializer.writeInt8(value_topEnd_type as int32) - if ((RuntimeType.UNDEFINED) != (value_topEnd_type)) { - const value_topEnd_value = value_topEnd! - valueSerializer.writeLengthMetrics(value_topEnd_value) - } - const value_bottomStart = value.bottomStart - let value_bottomStart_type : int32 = RuntimeType.UNDEFINED - value_bottomStart_type = runtimeType(value_bottomStart) - valueSerializer.writeInt8(value_bottomStart_type as int32) - if ((RuntimeType.UNDEFINED) != (value_bottomStart_type)) { - const value_bottomStart_value = value_bottomStart! - valueSerializer.writeLengthMetrics(value_bottomStart_value) - } - const value_bottomEnd = value.bottomEnd - let value_bottomEnd_type : int32 = RuntimeType.UNDEFINED - value_bottomEnd_type = runtimeType(value_bottomEnd) - valueSerializer.writeInt8(value_bottomEnd_type as int32) - if ((RuntimeType.UNDEFINED) != (value_bottomEnd_type)) { - const value_bottomEnd_value = value_bottomEnd! - valueSerializer.writeLengthMetrics(value_bottomEnd_value) - } - } - writeCanvasPattern(value: CanvasPattern): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeCanvasGradient(value: CanvasGradient): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeColorMetrics(value: ColorMetrics): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeStyledStringValue(value: StyledStringValue): void { - let valueSerializer : Serializer = this - const value_stub = value.stub - valueSerializer.writeString(value_stub) - } - writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { - let valueSerializer : Serializer = this - const value_margin = value.margin - let value_margin_type : int32 = RuntimeType.UNDEFINED - value_margin_type = runtimeType(value_margin) - valueSerializer.writeInt8(value_margin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_type)) { - const value_margin_value = value_margin! - let value_margin_value_type : int32 = RuntimeType.UNDEFINED - value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isLengthMetrics(value_margin_value, false, false))) { - valueSerializer.writeInt8(0 as int32) - const value_margin_value_0 = value_margin_value as LengthMetrics - valueSerializer.writeLengthMetrics(value_margin_value_0) - } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_margin_value_1 = value_margin_value as Margin - const value_margin_value_1_top = value_margin_value_1.top - let value_margin_value_1_top_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) - valueSerializer.writeInt8(value_margin_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { - const value_margin_value_1_top_value = value_margin_value_1_top! - valueSerializer.writeLength(value_margin_value_1_top_value) - } - const value_margin_value_1_right = value_margin_value_1.right - let value_margin_value_1_right_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) - valueSerializer.writeInt8(value_margin_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { - const value_margin_value_1_right_value = value_margin_value_1_right! - valueSerializer.writeLength(value_margin_value_1_right_value) - } - const value_margin_value_1_bottom = value_margin_value_1.bottom - let value_margin_value_1_bottom_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) - valueSerializer.writeInt8(value_margin_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { - const value_margin_value_1_bottom_value = value_margin_value_1_bottom! - valueSerializer.writeLength(value_margin_value_1_bottom_value) - } - const value_margin_value_1_left = value_margin_value_1.left - let value_margin_value_1_left_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) - valueSerializer.writeInt8(value_margin_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { - const value_margin_value_1_left_value = value_margin_value_1_left! - valueSerializer.writeLength(value_margin_value_1_left_value) - } - } - } - const value_padding = value.padding - let value_padding_type : int32 = RuntimeType.UNDEFINED - value_padding_type = runtimeType(value_padding) - valueSerializer.writeInt8(value_padding_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_type)) { - const value_padding_value = value_padding! - let value_padding_value_type : int32 = RuntimeType.UNDEFINED - value_padding_value_type = runtimeType(value_padding_value) - if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isLengthMetrics(value_padding_value, false, false))) { - valueSerializer.writeInt8(0 as int32) - const value_padding_value_0 = value_padding_value as LengthMetrics - valueSerializer.writeLengthMetrics(value_padding_value_0) - } - else if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isPadding(value_padding_value, false, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_padding_value_1 = value_padding_value as Padding - const value_padding_value_1_top = value_padding_value_1.top - let value_padding_value_1_top_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) - valueSerializer.writeInt8(value_padding_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { - const value_padding_value_1_top_value = value_padding_value_1_top! - valueSerializer.writeLength(value_padding_value_1_top_value) - } - const value_padding_value_1_right = value_padding_value_1.right - let value_padding_value_1_right_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) - valueSerializer.writeInt8(value_padding_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { - const value_padding_value_1_right_value = value_padding_value_1_right! - valueSerializer.writeLength(value_padding_value_1_right_value) - } - const value_padding_value_1_bottom = value_padding_value_1.bottom - let value_padding_value_1_bottom_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) - valueSerializer.writeInt8(value_padding_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { - const value_padding_value_1_bottom_value = value_padding_value_1_bottom! - valueSerializer.writeLength(value_padding_value_1_bottom_value) - } - const value_padding_value_1_left = value_padding_value_1.left - let value_padding_value_1_left_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) - valueSerializer.writeInt8(value_padding_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { - const value_padding_value_1_left_value = value_padding_value_1_left! - valueSerializer.writeLength(value_padding_value_1_left_value) - } - } - } - const value_borderRadius = value.borderRadius - let value_borderRadius_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_type = runtimeType(value_borderRadius) - valueSerializer.writeInt8(value_borderRadius_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { - const value_borderRadius_value = value_borderRadius! - let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isLengthMetrics(value_borderRadius_value, false, false))) { + const value_subtitle = value.subtitle + let value_subtitle_type : int32 = RuntimeType.UNDEFINED + value_subtitle_type = runtimeType(value_subtitle) + valueSerializer.writeInt8(value_subtitle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_subtitle_type)) { + const value_subtitle_value = value_subtitle! + let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED + value_subtitle_value_type = runtimeType(value_subtitle_value) + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) - const value_borderRadius_value_0 = value_borderRadius_value as LengthMetrics - valueSerializer.writeLengthMetrics(value_borderRadius_value_0) + const value_subtitle_value_0 = value_subtitle_value as string + valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) - const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses - const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft - let value_borderRadius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { - const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! - valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) - } - const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight - let value_borderRadius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) - valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { - const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! - valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) - } - const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft - let value_borderRadius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { - const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! - valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) - } - const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight - let value_borderRadius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { - const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! - valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) - } + const value_subtitle_value_1 = value_subtitle_value as Resource + valueSerializer.writeResource(value_subtitle_value_1) } } } - writeSizeOptions(value: SizeOptions): void { + writeTransitionEffect(value: TransitionEffect): void { let valueSerializer : Serializer = this - const value_width = value.width - let value_width_type : int32 = RuntimeType.UNDEFINED - value_width_type = runtimeType(value_width) - valueSerializer.writeInt8(value_width_type as int32) - if ((RuntimeType.UNDEFINED) != (value_width_type)) { - const value_width_value = value_width! - valueSerializer.writeLength(value_width_value) + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLocalizedBorderRadiuses(value: LocalizedBorderRadiuses): void { + let valueSerializer : Serializer = this + const value_topStart = value.topStart + let value_topStart_type : int32 = RuntimeType.UNDEFINED + value_topStart_type = runtimeType(value_topStart) + valueSerializer.writeInt8(value_topStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_topStart_type)) { + const value_topStart_value = value_topStart! + valueSerializer.writeLengthMetrics(value_topStart_value) } - const value_height = value.height - let value_height_type : int32 = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - valueSerializer.writeInt8(value_height_type as int32) - if ((RuntimeType.UNDEFINED) != (value_height_type)) { - const value_height_value = value_height! - valueSerializer.writeLength(value_height_value) + const value_topEnd = value.topEnd + let value_topEnd_type : int32 = RuntimeType.UNDEFINED + value_topEnd_type = runtimeType(value_topEnd) + valueSerializer.writeInt8(value_topEnd_type as int32) + if ((RuntimeType.UNDEFINED) != (value_topEnd_type)) { + const value_topEnd_value = value_topEnd! + valueSerializer.writeLengthMetrics(value_topEnd_value) + } + const value_bottomStart = value.bottomStart + let value_bottomStart_type : int32 = RuntimeType.UNDEFINED + value_bottomStart_type = runtimeType(value_bottomStart) + valueSerializer.writeInt8(value_bottomStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottomStart_type)) { + const value_bottomStart_value = value_bottomStart! + valueSerializer.writeLengthMetrics(value_bottomStart_value) + } + const value_bottomEnd = value.bottomEnd + let value_bottomEnd_type : int32 = RuntimeType.UNDEFINED + value_bottomEnd_type = runtimeType(value_bottomEnd) + valueSerializer.writeInt8(value_bottomEnd_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottomEnd_type)) { + const value_bottomEnd_value = value_bottomEnd! + valueSerializer.writeLengthMetrics(value_bottomEnd_value) } } + writeCanvasPattern(value: CanvasPattern): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeCanvasGradient(value: CanvasGradient): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeColorMetrics(value: ColorMetrics): void { + let valueSerializer : Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } writeImageAnalyzerController(value: ImageAnalyzerController): void { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) @@ -1399,7 +1526,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1434,7 +1561,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as ButtonType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as ButtonType) as int32)) } const value_style = value.style let value_style_type : int32 = RuntimeType.UNDEFINED @@ -1442,7 +1569,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as ButtonStyleMode) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as ButtonStyleMode) as int32)) } const value_role = value.role let value_role_type : int32 = RuntimeType.UNDEFINED @@ -1450,7 +1577,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_role_type as int32) if ((RuntimeType.UNDEFINED) != (value_role_type)) { const value_role_value = (value_role as ButtonRole) - valueSerializer.writeInt32((value_role_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_role_value as ButtonRole) as int32)) } const value_fontSize = value.fontSize let value_fontSize_type : int32 = RuntimeType.UNDEFINED @@ -1471,7 +1598,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1500,7 +1627,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isFontWeight(value_fontWeight_value)) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as FontWeight - valueSerializer.writeInt32((value_fontWeight_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontWeight_value_0 as FontWeight) as int32)) } else if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1519,7 +1646,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_fontStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { const value_fontStyle_value = (value_fontStyle as FontStyle) - valueSerializer.writeInt32((value_fontStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontStyle_value as FontStyle) as int32)) } const value_fontFamily = value.fontFamily let value_fontFamily_type : int32 = RuntimeType.UNDEFINED @@ -1551,7 +1678,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1577,7 +1704,7 @@ export class Serializer extends SerializerBase { const value_borderRadius_value = value_borderRadius! let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isResource(value_borderRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderRadius_value_0 = value_borderRadius_value as Length valueSerializer.writeLength(value_borderRadius_value_0) @@ -1650,7 +1777,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_selectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value_selectedColor_value_0 = value_selectedColor_value as Color - valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_selectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1679,7 +1806,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_unselectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value_unselectedColor_value_0 = value_unselectedColor_value as Color - valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_unselectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1706,7 +1833,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_overflow_type as int32) if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { const value_overflow_value = (value_overflow as TextOverflow) - valueSerializer.writeInt32((value_overflow_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_overflow_value as TextOverflow) as int32)) } const value_maxLines = value.maxLines let value_maxLines_type : int32 = RuntimeType.UNDEFINED @@ -1782,7 +1909,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_heightAdaptivePolicy_type as int32) if ((RuntimeType.UNDEFINED) != (value_heightAdaptivePolicy_type)) { const value_heightAdaptivePolicy_value = (value_heightAdaptivePolicy as TextHeightAdaptivePolicy) - valueSerializer.writeInt32((value_heightAdaptivePolicy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_heightAdaptivePolicy_value as TextHeightAdaptivePolicy) as int32)) } const value_font = value.font let value_font_type : int32 = RuntimeType.UNDEFINED @@ -1865,7 +1992,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1894,7 +2021,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_selectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value_selectedColor_value_0 = value_selectedColor_value as Color - valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_selectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1942,7 +2069,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -1988,9 +2115,9 @@ export class Serializer extends SerializerBase { const value_size_1 = value_size[1] valueSerializer.writeNumber(value_size_1) const value_verticalAlign = value.verticalAlign - valueSerializer.writeInt32((value_verticalAlign.valueOf() as int32)) + valueSerializer.writeInt32(((value_verticalAlign as ImageSpanAlignment) as int32)) const value_objectFit = value.objectFit - valueSerializer.writeInt32((value_objectFit.valueOf() as int32)) + valueSerializer.writeInt32(((value_objectFit as ImageFit) as int32)) const value_layoutStyle = value.layoutStyle let value_layoutStyle_type : int32 = RuntimeType.UNDEFINED value_layoutStyle_type = runtimeType(value_layoutStyle) @@ -2018,7 +2145,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_textAlign_type as int32) if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { const value_textAlign_value = (value_textAlign as TextAlign) - valueSerializer.writeInt32((value_textAlign_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_textAlign_value as TextAlign) as int32)) } const value_leadingMargin = value.leadingMargin let value_leadingMargin_type : int32 = RuntimeType.UNDEFINED @@ -2028,7 +2155,7 @@ export class Serializer extends SerializerBase { const value_leadingMargin_value = value_leadingMargin! let value_leadingMargin_value_type : int32 = RuntimeType.UNDEFINED value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) - if (((RuntimeType.NUMBER) == (value_leadingMargin_value_type)) || ((RuntimeType.STRING) == (value_leadingMargin_value_type)) || (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (isResource(value_leadingMargin_value)))) { + if (((RuntimeType.NUMBER) == (value_leadingMargin_value_type)) || ((RuntimeType.STRING) == (value_leadingMargin_value_type)) || (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (TypeChecker.isResource(value_leadingMargin_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_leadingMargin_value_0 = value_leadingMargin_value as Dimension valueSerializer.writeLength(value_leadingMargin_value_0) @@ -2045,7 +2172,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_wordBreak_type as int32) if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { const value_wordBreak_value = (value_wordBreak as WordBreak) - valueSerializer.writeInt32((value_wordBreak_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_wordBreak_value as WordBreak) as int32)) } const value_lineBreakStrategy = value.lineBreakStrategy let value_lineBreakStrategy_type : int32 = RuntimeType.UNDEFINED @@ -2053,7 +2180,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_lineBreakStrategy_type as int32) if ((RuntimeType.UNDEFINED) != (value_lineBreakStrategy_type)) { const value_lineBreakStrategy_value = (value_lineBreakStrategy as LineBreakStrategy) - valueSerializer.writeInt32((value_lineBreakStrategy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_lineBreakStrategy_value as LineBreakStrategy) as int32)) } } writeRichEditorSymbolSpanStyle(value: RichEditorSymbolSpanStyle): void { @@ -2096,7 +2223,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value_element)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_element_0 = value_fontColor_value_element as Color - valueSerializer.writeInt32((value_fontColor_value_element_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_element_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_element_type) { valueSerializer.writeInt8(1 as int32) @@ -2131,7 +2258,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isFontWeight(value_fontWeight_value)) { valueSerializer.writeInt8(1 as int32) const value_fontWeight_value_1 = value_fontWeight_value as FontWeight - valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontWeight_value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) @@ -2145,7 +2272,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_effectStrategy_type as int32) if ((RuntimeType.UNDEFINED) != (value_effectStrategy_type)) { const value_effectStrategy_value = (value_effectStrategy as SymbolEffectStrategy) - valueSerializer.writeInt32((value_effectStrategy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_effectStrategy_value as SymbolEffectStrategy) as int32)) } const value_renderingStrategy = value.renderingStrategy let value_renderingStrategy_type : int32 = RuntimeType.UNDEFINED @@ -2153,7 +2280,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_renderingStrategy_type as int32) if ((RuntimeType.UNDEFINED) != (value_renderingStrategy_type)) { const value_renderingStrategy_value = (value_renderingStrategy as SymbolRenderingStrategy) - valueSerializer.writeInt32((value_renderingStrategy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_renderingStrategy_value as SymbolRenderingStrategy) as int32)) } } writeRichEditorTextStyleResult(value: RichEditorTextStyleResult): void { @@ -2164,7 +2291,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_0 = value_fontColor as Color - valueSerializer.writeInt32((value_fontColor_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_type) { valueSerializer.writeInt8(1 as int32) @@ -2184,7 +2311,7 @@ export class Serializer extends SerializerBase { const value_fontSize = value.fontSize valueSerializer.writeNumber(value_fontSize) const value_fontStyle = value.fontStyle - valueSerializer.writeInt32((value_fontStyle.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontStyle as FontStyle) as int32)) const value_fontWeight = value.fontWeight valueSerializer.writeNumber(value_fontWeight) const value_fontFamily = value.fontFamily @@ -2247,7 +2374,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_verticalAlign_type as int32) if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { const value_verticalAlign_value = (value_verticalAlign as ImageSpanAlignment) - valueSerializer.writeInt32((value_verticalAlign_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_verticalAlign_value as ImageSpanAlignment) as int32)) } const value_objectFit = value.objectFit let value_objectFit_type : int32 = RuntimeType.UNDEFINED @@ -2255,7 +2382,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_objectFit_type as int32) if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { const value_objectFit_value = (value_objectFit as ImageFit) - valueSerializer.writeInt32((value_objectFit_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_objectFit_value as ImageFit) as int32)) } const value_layoutStyle = value.layoutStyle let value_layoutStyle_type : int32 = RuntimeType.UNDEFINED @@ -2279,7 +2406,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -2305,7 +2432,7 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type : int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER) == (value_fontSize_value_type)) || ((RuntimeType.STRING) == (value_fontSize_value_type)) || (((RuntimeType.OBJECT) == (value_fontSize_value_type)) && (isResource(value_fontSize_value)))) { + if (((RuntimeType.NUMBER) == (value_fontSize_value_type)) || ((RuntimeType.STRING) == (value_fontSize_value_type)) || (((RuntimeType.OBJECT) == (value_fontSize_value_type)) && (TypeChecker.isResource(value_fontSize_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_fontSize_value_0 = value_fontSize_value as Length valueSerializer.writeLength(value_fontSize_value_0) @@ -2322,7 +2449,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_fontStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { const value_fontStyle_value = (value_fontStyle as FontStyle) - valueSerializer.writeInt32((value_fontStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontStyle_value as FontStyle) as int32)) } const value_fontWeight = value.fontWeight let value_fontWeight_type : int32 = RuntimeType.UNDEFINED @@ -2340,7 +2467,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isFontWeight(value_fontWeight_value)) { valueSerializer.writeInt8(1 as int32) const value_fontWeight_value_1 = value_fontWeight_value as FontWeight - valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontWeight_value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) @@ -2591,7 +2718,7 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type : int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER) == (value_x_value_type)) || ((RuntimeType.STRING) == (value_x_value_type)) || (((RuntimeType.OBJECT) == (value_x_value_type)) && (isResource(value_x_value)))) { + if (((RuntimeType.NUMBER) == (value_x_value_type)) || ((RuntimeType.STRING) == (value_x_value_type)) || (((RuntimeType.OBJECT) == (value_x_value_type)) && (TypeChecker.isResource(value_x_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_x_value_0 = value_x_value as Length valueSerializer.writeLength(value_x_value_0) @@ -2610,7 +2737,7 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type : int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER) == (value_y_value_type)) || ((RuntimeType.STRING) == (value_y_value_type)) || (((RuntimeType.OBJECT) == (value_y_value_type)) && (isResource(value_y_value)))) { + if (((RuntimeType.NUMBER) == (value_y_value_type)) || ((RuntimeType.STRING) == (value_y_value_type)) || (((RuntimeType.OBJECT) == (value_y_value_type)) && (TypeChecker.isResource(value_y_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_y_value_0 = value_y_value as Length valueSerializer.writeLength(value_y_value_0) @@ -2690,7 +2817,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_selectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value_selectedColor_value_0 = value_selectedColor_value as Color - valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_selectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -2719,7 +2846,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_unselectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value_unselectedColor_value_0 = value_unselectedColor_value as Color - valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_unselectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -2748,7 +2875,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_strokeColor_value)) { valueSerializer.writeInt8(0 as int32) const value_strokeColor_value_0 = value_strokeColor_value as Color - valueSerializer.writeInt32((value_strokeColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_strokeColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -2832,7 +2959,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_textColor_value)) { valueSerializer.writeInt8(0 as int32) const value_textColor_value_0 = value_textColor_value as Color - valueSerializer.writeInt32((value_textColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_textColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_textColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -3172,7 +3299,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as GradientDirection) - valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction_value as GradientDirection) as int32)) } const value_colors = value.colors valueSerializer.writeInt32(value_colors.length as int32) @@ -3184,7 +3311,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_colors_element_0)) { valueSerializer.writeInt8(0 as int32) const value_colors_element_0_0 = value_colors_element_0 as Color - valueSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_colors_element_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_colors_element_0_type) { valueSerializer.writeInt8(1 as int32) @@ -3236,7 +3363,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_wordBreak_type as int32) if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { const value_wordBreak_value = (value_wordBreak as WordBreak) - valueSerializer.writeInt32((value_wordBreak_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_wordBreak_value as WordBreak) as int32)) } } writeAlertDialogButtonBaseOptions(value: AlertDialogButtonBaseOptions): void { @@ -3263,7 +3390,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as DialogButtonStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as DialogButtonStyle) as int32)) } const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED @@ -3289,7 +3416,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -3318,7 +3445,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -3402,7 +3529,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as DialogButtonStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as DialogButtonStyle) as int32)) } const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED @@ -3659,99 +3786,75 @@ export class Serializer extends SerializerBase { const value_length = value.length valueSerializer.writeNumber(value_length) const value_styledKey = value.styledKey - valueSerializer.writeInt32((value_styledKey.valueOf() as int32)) + valueSerializer.writeInt32(((value_styledKey as StyledStringKey) as int32)) const value_styledValue = value.styledValue - valueSerializer.writeStyledStringValue(value_styledValue) - } - writeTextBackgroundStyle(value: TextBackgroundStyle): void { - let valueSerializer : Serializer = this - const value_color = value.color - let value_color_type : int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type as int32) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - const value_color_value = value_color! - let value_color_value_type : int32 = RuntimeType.UNDEFINED - value_color_value_type = runtimeType(value_color_value) - if (TypeChecker.isColor(value_color_value)) { - valueSerializer.writeInt8(0 as int32) - const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) - } - else if (RuntimeType.NUMBER == value_color_value_type) { - valueSerializer.writeInt8(1 as int32) - const value_color_value_1 = value_color_value as number - valueSerializer.writeNumber(value_color_value_1) - } - else if (RuntimeType.STRING == value_color_value_type) { - valueSerializer.writeInt8(2 as int32) - const value_color_value_2 = value_color_value as string - valueSerializer.writeString(value_color_value_2) - } - else if (RuntimeType.OBJECT == value_color_value_type) { - valueSerializer.writeInt8(3 as int32) - const value_color_value_3 = value_color_value as Resource - valueSerializer.writeResource(value_color_value_3) - } + let value_styledValue_type : int32 = RuntimeType.UNDEFINED + value_styledValue_type = runtimeType(value_styledValue) + if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextStyle_styled_string(value_styledValue, false, false, false, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_styledValue_0 = value_styledValue as TextStyle_styled_string + valueSerializer.writeTextStyle_styled_string(value_styledValue_0) } - const value_radius = value.radius - let value_radius_type : int32 = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - valueSerializer.writeInt8(value_radius_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_type)) { - const value_radius_value = value_radius! - let value_radius_value_type : int32 = RuntimeType.UNDEFINED - value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { - valueSerializer.writeInt8(0 as int32) - const value_radius_value_0 = value_radius_value as Dimension - valueSerializer.writeLength(value_radius_value_0) - } - else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isBorderRadiuses(value_radius_value, false, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_radius_value_1 = value_radius_value as BorderRadiuses - const value_radius_value_1_topLeft = value_radius_value_1.topLeft - let value_radius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) - valueSerializer.writeInt8(value_radius_value_1_topLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! - valueSerializer.writeLength(value_radius_value_1_topLeft_value) - } - const value_radius_value_1_topRight = value_radius_value_1.topRight - let value_radius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) - valueSerializer.writeInt8(value_radius_value_1_topRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { - const value_radius_value_1_topRight_value = value_radius_value_1_topRight! - valueSerializer.writeLength(value_radius_value_1_topRight_value) - } - const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft - let value_radius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) - } - const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight - let value_radius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! - valueSerializer.writeLength(value_radius_value_1_bottomRight_value) - } - } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isDecorationStyle(value_styledValue, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_styledValue_1 = value_styledValue as DecorationStyle + valueSerializer.writeDecorationStyle(value_styledValue_1) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBaselineOffsetStyle(value_styledValue, false))) { + valueSerializer.writeInt8(2 as int32) + const value_styledValue_2 = value_styledValue as BaselineOffsetStyle + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLetterSpacingStyle(value_styledValue, false))) { + valueSerializer.writeInt8(3 as int32) + const value_styledValue_3 = value_styledValue as LetterSpacingStyle + valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextShadowStyle(value_styledValue, false))) { + valueSerializer.writeInt8(4 as int32) + const value_styledValue_4 = value_styledValue as TextShadowStyle + valueSerializer.writeTextShadowStyle(value_styledValue_4) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isGestureStyle(value_styledValue))) { + valueSerializer.writeInt8(5 as int32) + const value_styledValue_5 = value_styledValue as GestureStyle + valueSerializer.writeGestureStyle(value_styledValue_5) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isImageAttachment(value_styledValue, false, false, false, false, false))) { + valueSerializer.writeInt8(6 as int32) + const value_styledValue_6 = value_styledValue as ImageAttachment + valueSerializer.writeImageAttachment(value_styledValue_6) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isParagraphStyle(value_styledValue, false, false, false, false, false, false))) { + valueSerializer.writeInt8(7 as int32) + const value_styledValue_7 = value_styledValue as ParagraphStyle + valueSerializer.writeParagraphStyle(value_styledValue_7) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLineHeightStyle(value_styledValue, false))) { + valueSerializer.writeInt8(8 as int32) + const value_styledValue_8 = value_styledValue as LineHeightStyle + valueSerializer.writeLineHeightStyle(value_styledValue_8) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isUrlStyle(value_styledValue, false))) { + valueSerializer.writeInt8(9 as int32) + const value_styledValue_9 = value_styledValue as UrlStyle + valueSerializer.writeUrlStyle(value_styledValue_9) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isCustomSpan(value_styledValue))) { + valueSerializer.writeInt8(10 as int32) + const value_styledValue_10 = value_styledValue as CustomSpan + valueSerializer.writeCustomSpan(value_styledValue_10) + } + else if (RuntimeType.OBJECT == value_styledValue_type) { + valueSerializer.writeInt8(11 as int32) + const value_styledValue_11 = value_styledValue as UserDataSpan + valueSerializer.writeUserDataSpan(value_styledValue_11) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBackgroundColorStyle(value_styledValue, false))) { + valueSerializer.writeInt8(12 as int32) + const value_styledValue_12 = value_styledValue as BackgroundColorStyle + valueSerializer.writeBackgroundColorStyle(value_styledValue_12) } - } - writeCustomSpan(value: CustomSpan): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeImageAttachment(value: ImageAttachment): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) } writeWaterFlowAttribute(value: WaterFlowAttribute): void { } @@ -3807,7 +3910,7 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type : int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { + if (TypeChecker.isPadding(value_margin_value, false, false, false, false)) { valueSerializer.writeInt8(0 as int32) const value_margin_value_0 = value_margin_value as Margin const value_margin_value_0_top = value_margin_value_0.top @@ -3843,7 +3946,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_margin_value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value_margin_value_type)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (isResource(value_margin_value)))) { + else if (((RuntimeType.NUMBER) == (value_margin_value_type)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isResource(value_margin_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_margin_value_1 = value_margin_value as Dimension valueSerializer.writeLength(value_margin_value_1) @@ -3878,7 +3981,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -3928,7 +4031,7 @@ export class Serializer extends SerializerBase { const value_shown_1 = value_shown as PixelMap valueSerializer.writePixelMap(value_shown_1) } - else if (isResource(value_shown)) { + else if (TypeChecker.isResource(value_shown, false, false, false, false, false)) { valueSerializer.writeInt8(2 as int32) const value_shown_2 = value_shown as Resource valueSerializer.writeResource(value_shown_2) @@ -3946,7 +4049,7 @@ export class Serializer extends SerializerBase { const value_hidden_1 = value_hidden as PixelMap valueSerializer.writePixelMap(value_hidden_1) } - else if (isResource(value_hidden)) { + else if (TypeChecker.isResource(value_hidden, false, false, false, false, false)) { valueSerializer.writeInt8(2 as int32) const value_hidden_2 = value_hidden as Resource valueSerializer.writeResource(value_hidden_2) @@ -3969,7 +4072,7 @@ export class Serializer extends SerializerBase { const value_switching_value_1 = value_switching_value as PixelMap valueSerializer.writePixelMap(value_switching_value_1) } - else if (isResource(value_switching_value)) { + else if (TypeChecker.isResource(value_switching_value, false, false, false, false, false)) { valueSerializer.writeInt8(2 as int32) const value_switching_value_2 = value_switching_value as Resource valueSerializer.writeResource(value_switching_value_2) @@ -3987,7 +4090,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_types_value.length as int32) for (let i = 0; i < value_types_value.length; i++) { const value_types_value_element : ImageAnalyzerType = value_types_value[i] - valueSerializer.writeInt32((value_types_value_element.valueOf() as int32)) + valueSerializer.writeInt32(((value_types_value_element as ImageAnalyzerType) as int32)) } } const value_aiController = value.aiController @@ -4009,7 +4112,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_types.length as int32) for (let i = 0; i < value_types.length; i++) { const value_types_element : ImageAnalyzerType = value_types[i] - valueSerializer.writeInt32((value_types_element.valueOf() as int32)) + valueSerializer.writeInt32(((value_types_element as ImageAnalyzerType) as int32)) } } writeSurfaceRect(value: SurfaceRect): void { @@ -4082,7 +4185,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_menuType_type as int32) if ((RuntimeType.UNDEFINED) != (value_menuType_type)) { const value_menuType_value = (value_menuType as MenuType) - valueSerializer.writeInt32((value_menuType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_menuType_value as MenuType) as int32)) } } writeWebKeyboardController(value: WebKeyboardController): void { @@ -4186,7 +4289,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_scrollUp_type as int32) if ((RuntimeType.UNDEFINED) != (value_scrollUp_type)) { const value_scrollUp_value = (value_scrollUp as NestedScrollMode) - valueSerializer.writeInt32((value_scrollUp_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollUp_value as NestedScrollMode) as int32)) } const value_scrollDown = value.scrollDown let value_scrollDown_type : int32 = RuntimeType.UNDEFINED @@ -4194,7 +4297,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_scrollDown_type as int32) if ((RuntimeType.UNDEFINED) != (value_scrollDown_type)) { const value_scrollDown_value = (value_scrollDown as NestedScrollMode) - valueSerializer.writeInt32((value_scrollDown_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollDown_value as NestedScrollMode) as int32)) } const value_scrollRight = value.scrollRight let value_scrollRight_type : int32 = RuntimeType.UNDEFINED @@ -4202,7 +4305,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_scrollRight_type as int32) if ((RuntimeType.UNDEFINED) != (value_scrollRight_type)) { const value_scrollRight_value = (value_scrollRight as NestedScrollMode) - valueSerializer.writeInt32((value_scrollRight_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollRight_value as NestedScrollMode) as int32)) } const value_scrollLeft = value.scrollLeft let value_scrollLeft_type : int32 = RuntimeType.UNDEFINED @@ -4210,15 +4313,15 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_scrollLeft_type as int32) if ((RuntimeType.UNDEFINED) != (value_scrollLeft_type)) { const value_scrollLeft_value = (value_scrollLeft as NestedScrollMode) - valueSerializer.writeInt32((value_scrollLeft_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollLeft_value as NestedScrollMode) as int32)) } } writeNestedScrollOptions(value: NestedScrollOptions): void { let valueSerializer : Serializer = this const value_scrollForward = value.scrollForward - valueSerializer.writeInt32((value_scrollForward.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollForward as NestedScrollMode) as int32)) const value_scrollBackward = value.scrollBackward - valueSerializer.writeInt32((value_scrollBackward.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollBackward as NestedScrollMode) as int32)) } writeDataResubmissionHandler(value: DataResubmissionHandler): void { let valueSerializer : Serializer = this @@ -4295,7 +4398,7 @@ export class Serializer extends SerializerBase { writeScreenCaptureConfig(value: ScreenCaptureConfig): void { let valueSerializer : Serializer = this const value_captureMode = value.captureMode - valueSerializer.writeInt32((value_captureMode.valueOf() as int32)) + valueSerializer.writeInt32(((value_captureMode as WebCaptureMode) as int32)) } writeVideoController(value: VideoController): void { let valueSerializer : Serializer = this @@ -4317,7 +4420,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_format_type as int32) if ((RuntimeType.UNDEFINED) != (value_format_type)) { const value_format_value = (value_format as TimePickerFormat) - valueSerializer.writeInt32((value_format_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_format_value as TimePickerFormat) as int32)) } const value_useMilitaryTime = value.useMilitaryTime let value_useMilitaryTime_type : int32 = RuntimeType.UNDEFINED @@ -4381,7 +4484,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -4429,7 +4532,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -4453,7 +4556,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onDidAppear = value.onDidAppear let value_onDidAppear_type : int32 = RuntimeType.UNDEFINED @@ -4503,7 +4606,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_dateTimeOptions = value.dateTimeOptions @@ -4528,7 +4631,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } } writeTextTimerController(value: TextTimerController): void { @@ -4562,7 +4665,7 @@ export class Serializer extends SerializerBase { } } } - else if (isResource(value_range)) { + else if (TypeChecker.isResource(value_range, false, false, false, false, false)) { valueSerializer.writeInt8(2 as int32) const value_range_2 = value_range as Resource valueSerializer.writeResource(value_range_2) @@ -4736,7 +4839,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -4760,7 +4863,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -4784,7 +4887,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onDidAppear = value.onDidAppear let value_onDidAppear_type : int32 = RuntimeType.UNDEFINED @@ -4834,7 +4937,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_enableHoverMode = value.enableHoverMode @@ -4851,7 +4954,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } } writeDividerOptions(value: DividerOptions): void { @@ -4875,7 +4978,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -4955,7 +5058,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_typing_value)) { valueSerializer.writeInt8(0 as int32) const value_typing_value_0 = value_typing_value as Color - valueSerializer.writeInt32((value_typing_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_typing_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_typing_value_type) { valueSerializer.writeInt8(1 as int32) @@ -4984,7 +5087,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_normal_value)) { valueSerializer.writeInt8(0 as int32) const value_normal_value_0 = value_normal_value as Color - valueSerializer.writeInt32((value_normal_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_normal_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_normal_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5013,7 +5116,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_error_value)) { valueSerializer.writeInt8(0 as int32) const value_error_value_0 = value_error_value as Color - valueSerializer.writeInt32((value_error_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_error_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_error_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5042,7 +5145,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_disable_value)) { valueSerializer.writeInt8(0 as int32) const value_disable_value_0 = value_disable_value as Color - valueSerializer.writeInt32((value_disable_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_disable_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_disable_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5073,7 +5176,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_menuPolicy_type as int32) if ((RuntimeType.UNDEFINED) != (value_menuPolicy_type)) { const value_menuPolicy_value = (value_menuPolicy as MenuPolicy) - valueSerializer.writeInt32((value_menuPolicy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_menuPolicy_value as MenuPolicy) as int32)) } } writeTextRange(value: TextRange): void { @@ -5195,7 +5298,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_menuType_type as int32) if ((RuntimeType.UNDEFINED) != (value_menuType_type)) { const value_menuType_value = (value_menuType as MenuType) - valueSerializer.writeInt32((value_menuType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_menuType_value as MenuType) as int32)) } } writeFontSettingOptions(value: FontSettingOptions): void { @@ -5280,7 +5383,7 @@ export class Serializer extends SerializerBase { const value__padding_value = value__padding! let value__padding_value_type : int32 = RuntimeType.UNDEFINED value__padding_value_type = runtimeType(value__padding_value) - if (((RuntimeType.OBJECT) == (value__padding_value_type)) && (TypeChecker.isPadding(value__padding_value, true, false, true, false))) { + if (TypeChecker.isPadding(value__padding_value, false, false, false, false)) { valueSerializer.writeInt8(0 as int32) const value__padding_value_0 = value__padding_value as Padding const value__padding_value_0_top = value__padding_value_0.top @@ -5316,7 +5419,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value__padding_value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value)))) { + else if (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (TypeChecker.isResource(value__padding_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value__padding_value_1 = value__padding_value as Dimension valueSerializer.writeLength(value__padding_value_1) @@ -5333,7 +5436,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value__layoutMode_type as int32) if ((RuntimeType.UNDEFINED) != (value__layoutMode_type)) { const value__layoutMode_value = (value__layoutMode as LayoutMode) - valueSerializer.writeInt32((value__layoutMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value__layoutMode_value as LayoutMode) as int32)) } const value__verticalAlign = value._verticalAlign let value__verticalAlign_type : int32 = RuntimeType.UNDEFINED @@ -5341,7 +5444,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value__verticalAlign_type as int32) if ((RuntimeType.UNDEFINED) != (value__verticalAlign_type)) { const value__verticalAlign_value = (value__verticalAlign as VerticalAlign) - valueSerializer.writeInt32((value__verticalAlign_value.valueOf() as int32)) + valueSerializer.writeInt32(((value__verticalAlign_value as VerticalAlign) as int32)) } const value__symmetricExtensible = value._symmetricExtensible let value__symmetricExtensible_type : int32 = RuntimeType.UNDEFINED @@ -5383,7 +5486,7 @@ export class Serializer extends SerializerBase { const value__content_value_0 = value__content_value as string valueSerializer.writeString(value__content_value_0) } - else if (isResource(value__content_value)) { + else if (TypeChecker.isResource(value__content_value, false, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) const value__content_value_1 = value__content_value as Resource valueSerializer.writeResource(value__content_value_1) @@ -5408,7 +5511,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value__selectedMode_type as int32) if ((RuntimeType.UNDEFINED) != (value__selectedMode_type)) { const value__selectedMode_value = (value__selectedMode as SelectedMode) - valueSerializer.writeInt32((value__selectedMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value__selectedMode_value as SelectedMode) as int32)) } const value__board = value._board let value__board_type : int32 = RuntimeType.UNDEFINED @@ -5434,12 +5537,12 @@ export class Serializer extends SerializerBase { const value__padding_value = value__padding! let value__padding_value_type : int32 = RuntimeType.UNDEFINED value__padding_value_type = runtimeType(value__padding_value) - if ((((RuntimeType.OBJECT) == (value__padding_value_type)) && (TypeChecker.isPadding(value__padding_value, false, false, false, false))) || (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value))))) { + if ((TypeChecker.isPadding(value__padding_value, false, false, false, false)) || (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (TypeChecker.isResource(value__padding_value, false, false, false, false, false))))) { valueSerializer.writeInt8(0 as int32) const value__padding_value_0 = value__padding_value as Padding | Dimension let value__padding_value_0_type : int32 = RuntimeType.UNDEFINED value__padding_value_0_type = runtimeType(value__padding_value_0) - if (((RuntimeType.OBJECT) == (value__padding_value_0_type)) && (TypeChecker.isPadding(value__padding_value_0, false, false, false, false))) { + if (TypeChecker.isPadding(value__padding_value_0, false, false, false, false)) { valueSerializer.writeInt8(0 as int32) const value__padding_value_0_0 = value__padding_value_0 as Padding const value__padding_value_0_0_top = value__padding_value_0_0.top @@ -5475,7 +5578,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value__padding_value_0_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value__padding_value_0_type)) || ((RuntimeType.STRING) == (value__padding_value_0_type)) || (((RuntimeType.OBJECT) == (value__padding_value_0_type)) && (isResource(value__padding_value_0)))) { + else if (((RuntimeType.NUMBER) == (value__padding_value_0_type)) || ((RuntimeType.STRING) == (value__padding_value_0_type)) || (((RuntimeType.OBJECT) == (value__padding_value_0_type)) && (TypeChecker.isResource(value__padding_value_0, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value__padding_value_0_1 = value__padding_value_0 as Dimension valueSerializer.writeLength(value__padding_value_0_1) @@ -5547,7 +5650,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_colorMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { const value_colorMode_value = (value_colorMode as ThemeColorMode) - valueSerializer.writeInt32((value_colorMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_colorMode_value as ThemeColorMode) as int32)) } const value_adaptiveColor = value.adaptiveColor let value_adaptiveColor_type : int32 = RuntimeType.UNDEFINED @@ -5555,7 +5658,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_adaptiveColor_type as int32) if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { const value_adaptiveColor_value = (value_adaptiveColor as AdaptiveColor) - valueSerializer.writeInt32((value_adaptiveColor_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_adaptiveColor_value as AdaptiveColor) as int32)) } const value_scale = value.scale let value_scale_type : int32 = RuntimeType.UNDEFINED @@ -5579,7 +5682,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_policy_type as int32) if ((RuntimeType.UNDEFINED) != (value_policy_type)) { const value_policy_value = (value_policy as BlurStyleActivePolicy) - valueSerializer.writeInt32((value_policy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_policy_value as BlurStyleActivePolicy) as int32)) } const value_inactiveColor = value.inactiveColor let value_inactiveColor_type : int32 = RuntimeType.UNDEFINED @@ -5592,7 +5695,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_inactiveColor_value)) { valueSerializer.writeInt8(0 as int32) const value_inactiveColor_value_0 = value_inactiveColor_value as Color - valueSerializer.writeInt32((value_inactiveColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_inactiveColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5627,7 +5730,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_nonScrollableLayoutStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_nonScrollableLayoutStyle_type)) { const value_nonScrollableLayoutStyle_value = (value_nonScrollableLayoutStyle as LayoutStyle) - valueSerializer.writeInt32((value_nonScrollableLayoutStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_nonScrollableLayoutStyle_value as LayoutStyle) as int32)) } } writeTabContentAnimatedTransition(value: TabContentAnimatedTransition): void { @@ -5712,7 +5815,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value__fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value__fontColor_value_0 = value__fontColor_value as Color - valueSerializer.writeInt32((value__fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value__fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value__fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5741,7 +5844,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value__selectedFontColor_value)) { valueSerializer.writeInt8(0 as int32) const value__selectedFontColor_value_0 = value__selectedFontColor_value as Color - valueSerializer.writeInt32((value__selectedFontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value__selectedFontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value__selectedFontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5877,7 +5980,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value__color_value)) { valueSerializer.writeInt8(0 as int32) const value__color_value_0 = value__color_value as Color - valueSerializer.writeInt32((value__color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value__color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value__color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5906,7 +6009,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value__selectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value__selectedColor_value_0 = value__selectedColor_value as Color - valueSerializer.writeInt32((value__selectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value__selectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value__selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -5988,7 +6091,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -6025,7 +6128,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_arrowColor_value)) { valueSerializer.writeInt8(0 as int32) const value_arrowColor_value_0 = value_arrowColor_value as Color - valueSerializer.writeInt32((value_arrowColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_arrowColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_arrowColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -6143,7 +6246,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -6178,7 +6281,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as CancelButtonStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as CancelButtonStyle) as int32)) } const value_icon = value.icon let value_icon_type : int32 = RuntimeType.UNDEFINED @@ -6197,7 +6300,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as CancelButtonStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as CancelButtonStyle) as int32)) } const value_icon = value.icon let value_icon_type : int32 = RuntimeType.UNDEFINED @@ -6351,7 +6454,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -6928,7 +7031,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as Color - valueSerializer.writeInt32((value_borderColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -6981,7 +7084,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7040,7 +7143,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_status_type as int32) if ((RuntimeType.UNDEFINED) != (value_status_type)) { const value_status_value = (value_status as ProgressStatus) - valueSerializer.writeInt32((value_status_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_status_value as ProgressStatus) as int32)) } } writeLinearStyleOptions(value: LinearStyleOptions): void { @@ -7106,7 +7209,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7159,7 +7262,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_mode_type as int32) if ((RuntimeType.UNDEFINED) != (value_mode_type)) { const value_mode_value = (value_mode as NavDestinationMode) - valueSerializer.writeInt32((value_mode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_mode_value as NavDestinationMode) as int32)) } const value_param = value.param let value_param_type : int32 = RuntimeType.UNDEFINED @@ -7217,7 +7320,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_launchMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_launchMode_type)) { const value_launchMode_value = (value_launchMode as LaunchMode) - valueSerializer.writeInt32((value_launchMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_launchMode_value as LaunchMode) as int32)) } const value_animated = value.animated let value_animated_type : int32 = RuntimeType.UNDEFINED @@ -7243,7 +7346,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7267,7 +7370,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_barStyle = value.barStyle let value_barStyle_type : int32 = RuntimeType.UNDEFINED @@ -7275,7 +7378,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_barStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { const value_barStyle_value = (value_barStyle as BarStyle) - valueSerializer.writeInt32((value_barStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_barStyle_value as BarStyle) as int32)) } } writeNavigationTitleOptions(value: NavigationTitleOptions): void { @@ -7291,7 +7394,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7315,7 +7418,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_barStyle = value.barStyle let value_barStyle_type : int32 = RuntimeType.UNDEFINED @@ -7323,7 +7426,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_barStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { const value_barStyle_value = (value_barStyle as BarStyle) - valueSerializer.writeInt32((value_barStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_barStyle_value as BarStyle) as int32)) } const value_paddingStart = value.paddingStart let value_paddingStart_type : int32 = RuntimeType.UNDEFINED @@ -7376,9 +7479,9 @@ export class Serializer extends SerializerBase { if (TypeChecker.isTitleHeight(value_height)) { valueSerializer.writeInt8(0 as int32) const value_height_0 = value_height as TitleHeight - valueSerializer.writeInt32((value_height_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_height_0 as TitleHeight) as int32)) } - else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { + else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (TypeChecker.isResource(value_height, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_height_1 = value_height as Length valueSerializer.writeLength(value_height_1) @@ -7551,7 +7654,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7621,7 +7724,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7668,7 +7771,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_itemGroupArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { const value_itemGroupArea_value = (value_itemGroupArea as ListItemGroupArea) - valueSerializer.writeInt32((value_itemGroupArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_itemGroupArea_value as ListItemGroupArea) as int32)) } const value_itemIndexInGroup = value.itemIndexInGroup let value_itemIndexInGroup_type : int32 = RuntimeType.UNDEFINED @@ -7719,7 +7822,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_reference_type as int32) if ((RuntimeType.UNDEFINED) != (value_reference_type)) { const value_reference_value = (value_reference as BreakpointsReference) - valueSerializer.writeInt32((value_reference_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_reference_value as BreakpointsReference) as int32)) } } writeGridAttribute(value: GridAttribute): void { @@ -7876,7 +7979,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -7940,7 +8043,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -7964,7 +8067,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onDidAppear = value.onDidAppear let value_onDidAppear_type : int32 = RuntimeType.UNDEFINED @@ -8014,7 +8117,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_dateTimeOptions = value.dateTimeOptions @@ -8039,7 +8142,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } } writeAnimateParam(value: AnimateParam): void { @@ -8071,7 +8174,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve - valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_curve_value_0 as Curve) as int32)) } else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8106,7 +8209,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_playMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_playMode_type)) { const value_playMode_value = (value_playMode as PlayMode) - valueSerializer.writeInt32((value_playMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_playMode_value as PlayMode) as int32)) } const value_onFinish = value.onFinish let value_onFinish_type : int32 = RuntimeType.UNDEFINED @@ -8122,7 +8225,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_finishCallbackType_type as int32) if ((RuntimeType.UNDEFINED) != (value_finishCallbackType_type)) { const value_finishCallbackType_value = (value_finishCallbackType as FinishCallbackType) - valueSerializer.writeInt32((value_finishCallbackType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_finishCallbackType_value as FinishCallbackType) as int32)) } const value_expectedFrameRateRange = value.expectedFrameRateRange let value_expectedFrameRateRange_type : int32 = RuntimeType.UNDEFINED @@ -8255,7 +8358,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8316,9 +8419,9 @@ export class Serializer extends SerializerBase { if (TypeChecker.isSheetSize(value_height_value)) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as SheetSize - valueSerializer.writeInt32((value_height_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_height_value_0 as SheetSize) as int32)) } - else if (((RuntimeType.NUMBER) == (value_height_value_type)) || ((RuntimeType.STRING) == (value_height_value_type)) || (((RuntimeType.OBJECT) == (value_height_value_type)) && (isResource(value_height_value)))) { + else if (((RuntimeType.NUMBER) == (value_height_value_type)) || ((RuntimeType.STRING) == (value_height_value_type)) || (((RuntimeType.OBJECT) == (value_height_value_type)) && (TypeChecker.isResource(value_height_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as Length valueSerializer.writeLength(value_height_value_1) @@ -8343,7 +8446,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_maskColor_value)) { valueSerializer.writeInt8(0 as int32) const value_maskColor_value_0 = value_maskColor_value as Color - valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_maskColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8373,9 +8476,9 @@ export class Serializer extends SerializerBase { if (TypeChecker.isSheetSize(value_detents_value_0)) { valueSerializer.writeInt8(0 as int32) const value_detents_value_0_0 = value_detents_value_0 as SheetSize - valueSerializer.writeInt32((value_detents_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_detents_value_0_0 as SheetSize) as int32)) } - else if (((RuntimeType.NUMBER) == (value_detents_value_0_type)) || ((RuntimeType.STRING) == (value_detents_value_0_type)) || (((RuntimeType.OBJECT) == (value_detents_value_0_type)) && (isResource(value_detents_value_0)))) { + else if (((RuntimeType.NUMBER) == (value_detents_value_0_type)) || ((RuntimeType.STRING) == (value_detents_value_0_type)) || (((RuntimeType.OBJECT) == (value_detents_value_0_type)) && (TypeChecker.isResource(value_detents_value_0, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_detents_value_0_1 = value_detents_value_0 as Length valueSerializer.writeLength(value_detents_value_0_1) @@ -8391,9 +8494,9 @@ export class Serializer extends SerializerBase { if (TypeChecker.isSheetSize(value_detents_value_1_value)) { valueSerializer.writeInt8(0 as int32) const value_detents_value_1_value_0 = value_detents_value_1_value as SheetSize - valueSerializer.writeInt32((value_detents_value_1_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_detents_value_1_value_0 as SheetSize) as int32)) } - else if (((RuntimeType.NUMBER) == (value_detents_value_1_value_type)) || ((RuntimeType.STRING) == (value_detents_value_1_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_1_value_type)) && (isResource(value_detents_value_1_value)))) { + else if (((RuntimeType.NUMBER) == (value_detents_value_1_value_type)) || ((RuntimeType.STRING) == (value_detents_value_1_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_1_value_type)) && (TypeChecker.isResource(value_detents_value_1_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_detents_value_1_value_1 = value_detents_value_1_value as Length valueSerializer.writeLength(value_detents_value_1_value_1) @@ -8410,9 +8513,9 @@ export class Serializer extends SerializerBase { if (TypeChecker.isSheetSize(value_detents_value_2_value)) { valueSerializer.writeInt8(0 as int32) const value_detents_value_2_value_0 = value_detents_value_2_value as SheetSize - valueSerializer.writeInt32((value_detents_value_2_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_detents_value_2_value_0 as SheetSize) as int32)) } - else if (((RuntimeType.NUMBER) == (value_detents_value_2_value_type)) || ((RuntimeType.STRING) == (value_detents_value_2_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_2_value_type)) && (isResource(value_detents_value_2_value)))) { + else if (((RuntimeType.NUMBER) == (value_detents_value_2_value_type)) || ((RuntimeType.STRING) == (value_detents_value_2_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_2_value_type)) && (TypeChecker.isResource(value_detents_value_2_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_detents_value_2_value_1 = value_detents_value_2_value as Length valueSerializer.writeLength(value_detents_value_2_value_1) @@ -8425,7 +8528,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_blurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_blurStyle_type)) { const value_blurStyle_value = (value_blurStyle as BlurStyle) - valueSerializer.writeInt32((value_blurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_blurStyle_value as BlurStyle) as int32)) } const value_showClose = value.showClose let value_showClose_type : int32 = RuntimeType.UNDEFINED @@ -8452,7 +8555,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_preferType_type as int32) if ((RuntimeType.UNDEFINED) != (value_preferType_type)) { const value_preferType_value = (value_preferType as SheetType) - valueSerializer.writeInt32((value_preferType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_preferType_value as SheetType) as int32)) } const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED @@ -8521,7 +8624,7 @@ export class Serializer extends SerializerBase { const value_borderWidth_value = value_borderWidth! let value_borderWidth_value_type : int32 = RuntimeType.UNDEFINED value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (TypeChecker.isResource(value_borderWidth_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderWidth_value_0 = value_borderWidth_value as Dimension valueSerializer.writeLength(value_borderWidth_value_0) @@ -8584,7 +8687,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_0)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) @@ -8616,7 +8719,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_top_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8645,7 +8748,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_right_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8674,7 +8777,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8703,7 +8806,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_left_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8739,7 +8842,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8750,7 +8853,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { const value_borderStyle_value_1_top_value = (value_borderStyle_value_1_top as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_top_value as BorderStyle) as int32)) } const value_borderStyle_value_1_right = value_borderStyle_value_1.right let value_borderStyle_value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -8758,7 +8861,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { const value_borderStyle_value_1_right_value = (value_borderStyle_value_1_right as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_right_value as BorderStyle) as int32)) } const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom let value_borderStyle_value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -8766,7 +8869,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { const value_borderStyle_value_1_bottom_value = (value_borderStyle_value_1_bottom as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_bottom_value as BorderStyle) as int32)) } const value_borderStyle_value_1_left = value_borderStyle_value_1.left let value_borderStyle_value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -8774,7 +8877,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { const value_borderStyle_value_1_left_value = (value_borderStyle_value_1_left as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_left_value as BorderStyle) as int32)) } } } @@ -8794,7 +8897,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_onHeightDidChange = value.onHeightDidChange @@ -8811,7 +8914,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_mode_type as int32) if ((RuntimeType.UNDEFINED) != (value_mode_type)) { const value_mode_value = (value_mode as SheetMode) - valueSerializer.writeInt32((value_mode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_mode_value as SheetMode) as int32)) } const value_scrollSizeMode = value.scrollSizeMode let value_scrollSizeMode_type : int32 = RuntimeType.UNDEFINED @@ -8819,7 +8922,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_scrollSizeMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_scrollSizeMode_type)) { const value_scrollSizeMode_value = (value_scrollSizeMode as ScrollSizeMode) - valueSerializer.writeInt32((value_scrollSizeMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_scrollSizeMode_value as ScrollSizeMode) as int32)) } const value_onDetentsDidChange = value.onDetentsDidChange let value_onDetentsDidChange_type : int32 = RuntimeType.UNDEFINED @@ -8859,7 +8962,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_keyboardAvoidMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_keyboardAvoidMode_type)) { const value_keyboardAvoidMode_value = (value_keyboardAvoidMode as SheetKeyboardAvoidMode) - valueSerializer.writeInt32((value_keyboardAvoidMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_keyboardAvoidMode_value as SheetKeyboardAvoidMode) as int32)) } } writeContentCoverOptions(value: ContentCoverOptions): void { @@ -8875,7 +8978,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -8931,7 +9034,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_modalTransition_type as int32) if ((RuntimeType.UNDEFINED) != (value_modalTransition_type)) { const value_modalTransition_value = (value_modalTransition as ModalTransition) - valueSerializer.writeInt32((value_modalTransition_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_modalTransition_value as ModalTransition) as int32)) } const value_onWillDismiss = value.onWillDismiss let value_onWillDismiss_type : int32 = RuntimeType.UNDEFINED @@ -8966,7 +9069,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_placement_type as int32) if ((RuntimeType.UNDEFINED) != (value_placement_type)) { const value_placement_value = (value_placement as Placement) - valueSerializer.writeInt32((value_placement_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_placement_value as Placement) as int32)) } const value_enableArrow = value.enableArrow let value_enableArrow_type : int32 = RuntimeType.UNDEFINED @@ -8995,7 +9098,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isMenuPreviewMode(value_preview_value)) { valueSerializer.writeInt8(0 as int32) const value_preview_value_0 = value_preview_value as MenuPreviewMode - valueSerializer.writeInt32((value_preview_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_preview_value_0 as MenuPreviewMode) as int32)) } else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9011,7 +9114,7 @@ export class Serializer extends SerializerBase { const value_borderRadius_value = value_borderRadius! let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isResource(value_borderRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderRadius_value_0 = value_borderRadius_value as Length valueSerializer.writeLength(value_borderRadius_value_0) @@ -9148,7 +9251,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9172,7 +9275,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_transition = value.transition let value_transition_type : int32 = RuntimeType.UNDEFINED @@ -9207,7 +9310,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_placement_type as int32) if ((RuntimeType.UNDEFINED) != (value_placement_type)) { const value_placement_value = (value_placement as Placement) - valueSerializer.writeInt32((value_placement_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_placement_value as Placement) as int32)) } const value_enableArrow = value.enableArrow let value_enableArrow_type : int32 = RuntimeType.UNDEFINED @@ -9236,7 +9339,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isMenuPreviewMode(value_preview_value)) { valueSerializer.writeInt8(0 as int32) const value_preview_value_0 = value_preview_value as MenuPreviewMode - valueSerializer.writeInt32((value_preview_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_preview_value_0 as MenuPreviewMode) as int32)) } else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9252,7 +9355,7 @@ export class Serializer extends SerializerBase { const value_borderRadius_value = value_borderRadius! let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isResource(value_borderRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderRadius_value_0 = value_borderRadius_value as Length valueSerializer.writeLength(value_borderRadius_value_0) @@ -9389,7 +9492,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9413,7 +9516,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_transition = value.transition let value_transition_type : int32 = RuntimeType.UNDEFINED @@ -9469,7 +9572,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_placement_type as int32) if ((RuntimeType.UNDEFINED) != (value_placement_type)) { const value_placement_value = (value_placement as Placement) - valueSerializer.writeInt32((value_placement_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_placement_value as Placement) as int32)) } const value_maskColor = value.maskColor let value_maskColor_type : int32 = RuntimeType.UNDEFINED @@ -9482,7 +9585,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_maskColor_value)) { valueSerializer.writeInt8(0 as int32) const value_maskColor_value_0 = value_maskColor_value as Color - valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_maskColor_value_0 as Color) as int32)) } else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9511,7 +9614,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_popupColor_value)) { valueSerializer.writeInt8(0 as int32) const value_popupColor_value_0 = value_popupColor_value as Color - valueSerializer.writeInt32((value_popupColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_popupColor_value_0 as Color) as int32)) } else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9591,7 +9694,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_mask_value_1_color)) { valueSerializer.writeInt8(0 as int32) const value_mask_value_1_color_0 = value_mask_value_1_color as Color - valueSerializer.writeInt32((value_mask_value_1_color_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_mask_value_1_color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1 as int32) @@ -9682,7 +9785,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_backgroundBlurStyle = value.backgroundBlurStyle @@ -9691,7 +9794,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_focusable = value.focusable let value_focusable_type : int32 = RuntimeType.UNDEFINED @@ -9763,7 +9866,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_placement_type as int32) if ((RuntimeType.UNDEFINED) != (value_placement_type)) { const value_placement_value = (value_placement as Placement) - valueSerializer.writeInt32((value_placement_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_placement_value as Placement) as int32)) } const value_primaryButton = value.primaryButton let value_primaryButton_type : int32 = RuntimeType.UNDEFINED @@ -9833,7 +9936,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_mask_value_1_color)) { valueSerializer.writeInt8(0 as int32) const value_mask_value_1_color_0 = value_mask_value_1_color as Color - valueSerializer.writeInt32((value_mask_value_1_color_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_mask_value_1_color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1 as int32) @@ -9895,7 +9998,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_popupColor_value)) { valueSerializer.writeInt8(0 as int32) const value_popupColor_value_0 = value_popupColor_value as Color - valueSerializer.writeInt32((value_popupColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_popupColor_value_0 as Color) as int32)) } else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -9977,7 +10080,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_backgroundBlurStyle = value.backgroundBlurStyle @@ -9986,7 +10089,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_transition = value.transition let value_transition_type : int32 = RuntimeType.UNDEFINED @@ -10048,7 +10151,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hierarchyStrategy_type as int32) if ((RuntimeType.UNDEFINED) != (value_hierarchyStrategy_type)) { const value_hierarchyStrategy_value = (value_hierarchyStrategy as TransitionHierarchyStrategy) - valueSerializer.writeInt32((value_hierarchyStrategy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hierarchyStrategy_value as TransitionHierarchyStrategy) as int32)) } } writeBlender(value: Blender): void { @@ -10064,7 +10167,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_align_type as int32) if ((RuntimeType.UNDEFINED) != (value_align_type)) { const value_align_value = (value_align as Alignment) - valueSerializer.writeInt32((value_align_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_align_value as Alignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -10107,7 +10210,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isDragPreviewMode(value_mode_value)) { valueSerializer.writeInt8(0 as int32) const value_mode_value_0 = value_mode_value as DragPreviewMode - valueSerializer.writeInt32((value_mode_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_mode_value_0 as DragPreviewMode) as int32)) } else if (RuntimeType.OBJECT == value_mode_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10115,7 +10218,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_mode_value_1.length as int32) for (let i = 0; i < value_mode_value_1.length; i++) { const value_mode_value_1_element : DragPreviewMode = value_mode_value_1[i] - valueSerializer.writeInt32((value_mode_value_1_element.valueOf() as int32)) + valueSerializer.writeInt32(((value_mode_value_1_element as DragPreviewMode) as int32)) } } } @@ -10168,7 +10271,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve - valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_curve_value_0 as Curve) as int32)) } else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10211,7 +10314,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as SharedTransitionEffectType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as SharedTransitionEffectType) as int32)) } } writeLinearGradientBlurOptions(value: LinearGradientBlurOptions): void { @@ -10226,7 +10329,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_fractionStops_element_1) } const value_direction = value.direction - valueSerializer.writeInt32((value_direction.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction as GradientDirection) as int32)) } writeForegroundBlurStyleOptions(value: ForegroundBlurStyleOptions): void { let valueSerializer : Serializer = this @@ -10236,7 +10339,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_colorMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { const value_colorMode_value = (value_colorMode as ThemeColorMode) - valueSerializer.writeInt32((value_colorMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_colorMode_value as ThemeColorMode) as int32)) } const value_adaptiveColor = value.adaptiveColor let value_adaptiveColor_type : int32 = RuntimeType.UNDEFINED @@ -10244,7 +10347,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_adaptiveColor_type as int32) if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { const value_adaptiveColor_value = (value_adaptiveColor as AdaptiveColor) - valueSerializer.writeInt32((value_adaptiveColor_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_adaptiveColor_value as AdaptiveColor) as int32)) } const value_scale = value.scale let value_scale_type : int32 = RuntimeType.UNDEFINED @@ -10309,7 +10412,7 @@ export class Serializer extends SerializerBase { writeClickEffect(value: ClickEffect): void { let valueSerializer : Serializer = this const value_level = value.level - valueSerializer.writeInt32((value_level.valueOf() as int32)) + valueSerializer.writeInt32(((value_level as ClickEffectLevel) as int32)) const value_scale = value.scale let value_scale_type : int32 = RuntimeType.UNDEFINED value_scale_type = runtimeType(value_scale) @@ -10343,14 +10446,14 @@ export class Serializer extends SerializerBase { const value_anchor = value.anchor valueSerializer.writeString(value_anchor) const value_align = value.align - valueSerializer.writeInt32((value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_align as VerticalAlign) as int32)) } writeLocalizedHorizontalAlignParam(value: LocalizedHorizontalAlignParam): void { let valueSerializer : Serializer = this const value_anchor = value.anchor valueSerializer.writeString(value_anchor) const value_align = value.align - valueSerializer.writeInt32((value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_align as HorizontalAlign) as int32)) } writeLocalizedPosition(value: LocalizedPosition): void { let valueSerializer : Serializer = this @@ -10397,7 +10500,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as TransitionType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as TransitionType) as int32)) } const value_opacity = value.opacity let value_opacity_type : int32 = RuntimeType.UNDEFINED @@ -10458,7 +10561,7 @@ export class Serializer extends SerializerBase { writeTouchObject(value: TouchObject): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as TouchType) as int32)) const value_id = value.id valueSerializer.writeNumber(value_id) const value_displayX = value.displayX @@ -10523,7 +10626,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10663,7 +10766,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10687,7 +10790,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_acceptButtonStyle = value.acceptButtonStyle let value_acceptButtonStyle_type : int32 = RuntimeType.UNDEFINED @@ -10753,7 +10856,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_enableHoverMode = value.enableHoverMode @@ -10770,7 +10873,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } } writeCalendarPickerAttribute(value: CalendarPickerAttribute): void { @@ -10805,7 +10908,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10872,7 +10975,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_badgeColor_value)) { valueSerializer.writeInt8(0 as int32) const value_badgeColor_value_0 = value_badgeColor_value as Color - valueSerializer.writeInt32((value_badgeColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_badgeColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_badgeColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10901,7 +11004,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as Color - valueSerializer.writeInt32((value_borderColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -10943,7 +11046,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isFontWeight(value_fontWeight_value)) { valueSerializer.writeInt8(1 as int32) const value_fontWeight_value_1 = value_fontWeight_value as FontWeight - valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontWeight_value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) @@ -11029,7 +11132,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -11085,7 +11188,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11109,7 +11212,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onWillDismiss = value.onWillDismiss let value_onWillDismiss_type : int32 = RuntimeType.UNDEFINED @@ -11135,7 +11238,7 @@ export class Serializer extends SerializerBase { const value_cornerRadius_value = value_cornerRadius! let value_cornerRadius_value_type : int32 = RuntimeType.UNDEFINED value_cornerRadius_value_type = runtimeType(value_cornerRadius_value) - if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (isResource(value_cornerRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (TypeChecker.isResource(value_cornerRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_cornerRadius_value_0 = value_cornerRadius_value as Dimension valueSerializer.writeLength(value_cornerRadius_value_0) @@ -11206,7 +11309,7 @@ export class Serializer extends SerializerBase { const value_borderWidth_value = value_borderWidth! let value_borderWidth_value_type : int32 = RuntimeType.UNDEFINED value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (TypeChecker.isResource(value_borderWidth_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderWidth_value_0 = value_borderWidth_value as Dimension valueSerializer.writeLength(value_borderWidth_value_0) @@ -11269,7 +11372,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_0)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) @@ -11301,7 +11404,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_top_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11330,7 +11433,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_right_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11359,7 +11462,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11388,7 +11491,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_left_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11424,7 +11527,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11435,7 +11538,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { const value_borderStyle_value_1_top_value = (value_borderStyle_value_1_top as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_top_value as BorderStyle) as int32)) } const value_borderStyle_value_1_right = value_borderStyle_value_1.right let value_borderStyle_value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -11443,7 +11546,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { const value_borderStyle_value_1_right_value = (value_borderStyle_value_1_right as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_right_value as BorderStyle) as int32)) } const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom let value_borderStyle_value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -11451,7 +11554,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { const value_borderStyle_value_1_bottom_value = (value_borderStyle_value_1_bottom as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_bottom_value as BorderStyle) as int32)) } const value_borderStyle_value_1_left = value_borderStyle_value_1.left let value_borderStyle_value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -11459,7 +11562,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { const value_borderStyle_value_1_left_value = (value_borderStyle_value_1_left as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_left_value as BorderStyle) as int32)) } } } @@ -11479,7 +11582,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_textStyle = value.textStyle @@ -11504,7 +11607,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } const value_buttons = value.buttons valueSerializer.writeInt32(value_buttons.length as int32) @@ -11518,7 +11621,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_buttonDirection_type as int32) if ((RuntimeType.UNDEFINED) != (value_buttonDirection_type)) { const value_buttonDirection_value = (value_buttonDirection as DialogButtonDirection) - valueSerializer.writeInt32((value_buttonDirection_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_buttonDirection_value as DialogButtonDirection) as int32)) } } writeAlertDialogParamWithButtons(value: AlertDialogParamWithButtons): void { @@ -11596,7 +11699,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -11652,7 +11755,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11676,7 +11779,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onWillDismiss = value.onWillDismiss let value_onWillDismiss_type : int32 = RuntimeType.UNDEFINED @@ -11702,7 +11805,7 @@ export class Serializer extends SerializerBase { const value_cornerRadius_value = value_cornerRadius! let value_cornerRadius_value_type : int32 = RuntimeType.UNDEFINED value_cornerRadius_value_type = runtimeType(value_cornerRadius_value) - if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (isResource(value_cornerRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (TypeChecker.isResource(value_cornerRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_cornerRadius_value_0 = value_cornerRadius_value as Dimension valueSerializer.writeLength(value_cornerRadius_value_0) @@ -11773,7 +11876,7 @@ export class Serializer extends SerializerBase { const value_borderWidth_value = value_borderWidth! let value_borderWidth_value_type : int32 = RuntimeType.UNDEFINED value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (TypeChecker.isResource(value_borderWidth_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderWidth_value_0 = value_borderWidth_value as Dimension valueSerializer.writeLength(value_borderWidth_value_0) @@ -11836,7 +11939,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_0)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) @@ -11868,7 +11971,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_top_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11897,7 +12000,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_right_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11926,7 +12029,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11955,7 +12058,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_left_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -11991,7 +12094,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12002,7 +12105,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { const value_borderStyle_value_1_top_value = (value_borderStyle_value_1_top as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_top_value as BorderStyle) as int32)) } const value_borderStyle_value_1_right = value_borderStyle_value_1.right let value_borderStyle_value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -12010,7 +12113,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { const value_borderStyle_value_1_right_value = (value_borderStyle_value_1_right as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_right_value as BorderStyle) as int32)) } const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom let value_borderStyle_value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -12018,7 +12121,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { const value_borderStyle_value_1_bottom_value = (value_borderStyle_value_1_bottom as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_bottom_value as BorderStyle) as int32)) } const value_borderStyle_value_1_left = value_borderStyle_value_1.left let value_borderStyle_value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -12026,7 +12129,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { const value_borderStyle_value_1_left_value = (value_borderStyle_value_1_left as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_left_value as BorderStyle) as int32)) } } } @@ -12046,7 +12149,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_textStyle = value.textStyle @@ -12071,7 +12174,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } const value_primaryButton = value.primaryButton valueSerializer.writeAlertDialogButtonBaseOptions(value_primaryButton) @@ -12153,7 +12256,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -12209,7 +12312,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12233,7 +12336,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onWillDismiss = value.onWillDismiss let value_onWillDismiss_type : int32 = RuntimeType.UNDEFINED @@ -12259,7 +12362,7 @@ export class Serializer extends SerializerBase { const value_cornerRadius_value = value_cornerRadius! let value_cornerRadius_value_type : int32 = RuntimeType.UNDEFINED value_cornerRadius_value_type = runtimeType(value_cornerRadius_value) - if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (isResource(value_cornerRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (TypeChecker.isResource(value_cornerRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_cornerRadius_value_0 = value_cornerRadius_value as Dimension valueSerializer.writeLength(value_cornerRadius_value_0) @@ -12330,7 +12433,7 @@ export class Serializer extends SerializerBase { const value_borderWidth_value = value_borderWidth! let value_borderWidth_value_type : int32 = RuntimeType.UNDEFINED value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (TypeChecker.isResource(value_borderWidth_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderWidth_value_0 = value_borderWidth_value as Dimension valueSerializer.writeLength(value_borderWidth_value_0) @@ -12393,7 +12496,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_0)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) @@ -12425,7 +12528,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_top_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12454,7 +12557,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_right_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12483,7 +12586,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12512,7 +12615,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_left_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12548,7 +12651,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12559,7 +12662,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { const value_borderStyle_value_1_top_value = (value_borderStyle_value_1_top as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_top_value as BorderStyle) as int32)) } const value_borderStyle_value_1_right = value_borderStyle_value_1.right let value_borderStyle_value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -12567,7 +12670,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { const value_borderStyle_value_1_right_value = (value_borderStyle_value_1_right as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_right_value as BorderStyle) as int32)) } const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom let value_borderStyle_value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -12575,7 +12678,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { const value_borderStyle_value_1_bottom_value = (value_borderStyle_value_1_bottom as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_bottom_value as BorderStyle) as int32)) } const value_borderStyle_value_1_left = value_borderStyle_value_1.left let value_borderStyle_value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -12583,7 +12686,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { const value_borderStyle_value_1_left_value = (value_borderStyle_value_1_left as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_left_value as BorderStyle) as int32)) } } } @@ -12603,7 +12706,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_textStyle = value.textStyle @@ -12628,7 +12731,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } const value_confirm = value.confirm let value_confirm_type : int32 = RuntimeType.UNDEFINED @@ -12722,7 +12825,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -12767,7 +12870,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -12791,7 +12894,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_onWillDismiss = value.onWillDismiss let value_onWillDismiss_type : int32 = RuntimeType.UNDEFINED @@ -12817,7 +12920,7 @@ export class Serializer extends SerializerBase { const value_cornerRadius_value = value_cornerRadius! let value_cornerRadius_value_type : int32 = RuntimeType.UNDEFINED value_cornerRadius_value_type = runtimeType(value_cornerRadius_value) - if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (isResource(value_cornerRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (TypeChecker.isResource(value_cornerRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_cornerRadius_value_0 = value_cornerRadius_value as Dimension valueSerializer.writeLength(value_cornerRadius_value_0) @@ -12888,7 +12991,7 @@ export class Serializer extends SerializerBase { const value_borderWidth_value = value_borderWidth! let value_borderWidth_value_type : int32 = RuntimeType.UNDEFINED value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (TypeChecker.isResource(value_borderWidth_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderWidth_value_0 = value_borderWidth_value as Dimension valueSerializer.writeLength(value_borderWidth_value_0) @@ -12951,7 +13054,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_0)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) @@ -12983,7 +13086,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_top_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -13012,7 +13115,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_right_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -13041,7 +13144,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -13070,7 +13173,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_left_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -13106,7 +13209,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) @@ -13117,7 +13220,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { const value_borderStyle_value_1_top_value = (value_borderStyle_value_1_top as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_top_value as BorderStyle) as int32)) } const value_borderStyle_value_1_right = value_borderStyle_value_1.right let value_borderStyle_value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -13125,7 +13228,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { const value_borderStyle_value_1_right_value = (value_borderStyle_value_1_right as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_right_value as BorderStyle) as int32)) } const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom let value_borderStyle_value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -13133,7 +13236,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { const value_borderStyle_value_1_bottom_value = (value_borderStyle_value_1_bottom as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_bottom_value as BorderStyle) as int32)) } const value_borderStyle_value_1_left = value_borderStyle_value_1.left let value_borderStyle_value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -13141,7 +13244,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { const value_borderStyle_value_1_left_value = (value_borderStyle_value_1_left as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_left_value as BorderStyle) as int32)) } } } @@ -13161,7 +13264,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_enableHoverMode = value.enableHoverMode @@ -13178,7 +13281,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } } writeClickEvent(value: ClickEvent): void { @@ -13418,7 +13521,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isCurve(value_curve)) { valueSerializer.writeInt8(0 as int32) const value_curve_0 = value_curve as Curve - valueSerializer.writeInt32((value_curve_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_curve_0 as Curve) as int32)) } else if (RuntimeType.STRING == value_curve_type) { valueSerializer.writeInt8(1 as int32) @@ -13463,7 +13566,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_colorMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { const value_colorMode_value = (value_colorMode as ThemeColorMode) - valueSerializer.writeInt32((value_colorMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_colorMode_value as ThemeColorMode) as int32)) } } writeIsolatedOptions(value: IsolatedOptions): void { @@ -13499,7 +13602,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_verticalAlign_type as int32) if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { const value_verticalAlign_value = (value_verticalAlign as ImageSpanAlignment) - valueSerializer.writeInt32((value_verticalAlign_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_verticalAlign_value as ImageSpanAlignment) as int32)) } const value_objectFit = value.objectFit let value_objectFit_type : int32 = RuntimeType.UNDEFINED @@ -13507,7 +13610,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_objectFit_type as int32) if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { const value_objectFit_value = (value_objectFit as ImageFit) - valueSerializer.writeInt32((value_objectFit_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_objectFit_value as ImageFit) as int32)) } const value_layoutStyle = value.layoutStyle let value_layoutStyle_type : int32 = RuntimeType.UNDEFINED @@ -13518,14 +13621,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } - writeUrlStyle(value: UrlStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLineHeightStyle(value: LineHeightStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeParagraphStyleInterface(value: ParagraphStyleInterface): void { let valueSerializer : Serializer = this const value_textAlign = value.textAlign @@ -13534,7 +13629,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_textAlign_type as int32) if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { const value_textAlign_value = (value_textAlign as TextAlign) - valueSerializer.writeInt32((value_textAlign_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_textAlign_value as TextAlign) as int32)) } const value_textIndent = value.textIndent let value_textIndent_type : int32 = RuntimeType.UNDEFINED @@ -13558,7 +13653,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_overflow_type as int32) if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { const value_overflow_value = (value_overflow as TextOverflow) - valueSerializer.writeInt32((value_overflow_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_overflow_value as TextOverflow) as int32)) } const value_wordBreak = value.wordBreak let value_wordBreak_type : int32 = RuntimeType.UNDEFINED @@ -13566,7 +13661,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_wordBreak_type as int32) if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { const value_wordBreak_value = (value_wordBreak as WordBreak) - valueSerializer.writeInt32((value_wordBreak_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_wordBreak_value as WordBreak) as int32)) } const value_leadingMargin = value.leadingMargin let value_leadingMargin_type : int32 = RuntimeType.UNDEFINED @@ -13588,10 +13683,6 @@ export class Serializer extends SerializerBase { } } } - writeParagraphStyle(value: ParagraphStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeGestureStyleInterface(value: GestureStyleInterface): void { let valueSerializer : Serializer = this const value_onClick = value.onClick @@ -13611,30 +13702,6 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(value_onLongPress_value) } } - writeGestureStyle(value: GestureStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeBackgroundColorStyle(value: BackgroundColorStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeTextShadowStyle(value: TextShadowStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLetterSpacingStyle(value: LetterSpacingStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeDecorationStyle(value: DecorationStyle): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeTextStyleInterface(value: TextStyleInterface): void { let valueSerializer : Serializer = this const value_fontColor = value.fontColor @@ -13648,7 +13715,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -13709,7 +13776,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isFontWeight(value_fontWeight_value)) { valueSerializer.writeInt8(1 as int32) const value_fontWeight_value_1 = value_fontWeight_value as FontWeight - valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontWeight_value_1 as FontWeight) as int32)) } else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) @@ -13723,13 +13790,9 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_fontStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { const value_fontStyle_value = (value_fontStyle as FontStyle) - valueSerializer.writeInt32((value_fontStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontStyle_value as FontStyle) as int32)) } } - writeTextStyle_styled_string(value: TextStyle_styled_string): void { - let valueSerializer : Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeStyleOptions(value: StyleOptions): void { let valueSerializer : Serializer = this const value_start = value.start @@ -13749,9 +13812,75 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_length_value) } const value_styledKey = value.styledKey - valueSerializer.writeInt32((value_styledKey.valueOf() as int32)) + valueSerializer.writeInt32(((value_styledKey as StyledStringKey) as int32)) const value_styledValue = value.styledValue - valueSerializer.writeStyledStringValue(value_styledValue) + let value_styledValue_type : int32 = RuntimeType.UNDEFINED + value_styledValue_type = runtimeType(value_styledValue) + if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextStyle_styled_string(value_styledValue, false, false, false, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_styledValue_0 = value_styledValue as TextStyle_styled_string + valueSerializer.writeTextStyle_styled_string(value_styledValue_0) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isDecorationStyle(value_styledValue, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_styledValue_1 = value_styledValue as DecorationStyle + valueSerializer.writeDecorationStyle(value_styledValue_1) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBaselineOffsetStyle(value_styledValue, false))) { + valueSerializer.writeInt8(2 as int32) + const value_styledValue_2 = value_styledValue as BaselineOffsetStyle + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLetterSpacingStyle(value_styledValue, false))) { + valueSerializer.writeInt8(3 as int32) + const value_styledValue_3 = value_styledValue as LetterSpacingStyle + valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextShadowStyle(value_styledValue, false))) { + valueSerializer.writeInt8(4 as int32) + const value_styledValue_4 = value_styledValue as TextShadowStyle + valueSerializer.writeTextShadowStyle(value_styledValue_4) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isGestureStyle(value_styledValue))) { + valueSerializer.writeInt8(5 as int32) + const value_styledValue_5 = value_styledValue as GestureStyle + valueSerializer.writeGestureStyle(value_styledValue_5) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isImageAttachment(value_styledValue, false, false, false, false, false))) { + valueSerializer.writeInt8(6 as int32) + const value_styledValue_6 = value_styledValue as ImageAttachment + valueSerializer.writeImageAttachment(value_styledValue_6) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isParagraphStyle(value_styledValue, false, false, false, false, false, false))) { + valueSerializer.writeInt8(7 as int32) + const value_styledValue_7 = value_styledValue as ParagraphStyle + valueSerializer.writeParagraphStyle(value_styledValue_7) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLineHeightStyle(value_styledValue, false))) { + valueSerializer.writeInt8(8 as int32) + const value_styledValue_8 = value_styledValue as LineHeightStyle + valueSerializer.writeLineHeightStyle(value_styledValue_8) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isUrlStyle(value_styledValue, false))) { + valueSerializer.writeInt8(9 as int32) + const value_styledValue_9 = value_styledValue as UrlStyle + valueSerializer.writeUrlStyle(value_styledValue_9) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isCustomSpan(value_styledValue))) { + valueSerializer.writeInt8(10 as int32) + const value_styledValue_10 = value_styledValue as CustomSpan + valueSerializer.writeCustomSpan(value_styledValue_10) + } + else if (RuntimeType.OBJECT == value_styledValue_type) { + valueSerializer.writeInt8(11 as int32) + const value_styledValue_11 = value_styledValue as UserDataSpan + valueSerializer.writeUserDataSpan(value_styledValue_11) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBackgroundColorStyle(value_styledValue, false))) { + valueSerializer.writeInt8(12 as int32) + const value_styledValue_12 = value_styledValue as BackgroundColorStyle + valueSerializer.writeBackgroundColorStyle(value_styledValue_12) + } } writeReceiveCallback(value: ReceiveCallback): void { let valueSerializer : Serializer = this @@ -13796,7 +13925,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_dpiFollowStrategy_type as int32) if ((RuntimeType.UNDEFINED) != (value_dpiFollowStrategy_type)) { const value_dpiFollowStrategy_value = (value_dpiFollowStrategy as DpiFollowStrategy) - valueSerializer.writeInt32((value_dpiFollowStrategy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_dpiFollowStrategy_value as DpiFollowStrategy) as int32)) } } writeUIExtensionProxy(value: UIExtensionProxy): void { @@ -13835,7 +13964,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_layoutMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_layoutMode_type)) { const value_layoutMode_value = (value_layoutMode as WaterFlowLayoutMode) - valueSerializer.writeInt32((value_layoutMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_layoutMode_value as WaterFlowLayoutMode) as int32)) } } writeWindowAnimationTarget(value: WindowAnimationTarget): void { @@ -13895,7 +14024,7 @@ export class Serializer extends SerializerBase { writeXComponentOptions(value: XComponentOptions): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as XComponentType) as int32)) const value_controller = value.controller valueSerializer.writeXComponentController(value_controller) const value_imageAIOptions = value.imageAIOptions @@ -13996,7 +14125,7 @@ export class Serializer extends SerializerBase { const value_pid = value.pid valueSerializer.writeNumber(value_pid) const value_reason = value.reason - valueSerializer.writeInt32((value_reason.valueOf() as int32)) + valueSerializer.writeInt32(((value_reason as RenderProcessNotRespondingReason) as int32)) } writeNativeMediaPlayerConfig(value: NativeMediaPlayerConfig): void { let valueSerializer : Serializer = this @@ -14047,7 +14176,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_status_type as int32) if ((RuntimeType.UNDEFINED) != (value_status_type)) { const value_status_value = (value_status as NativeEmbedStatus) - valueSerializer.writeInt32((value_status_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_status_value as NativeEmbedStatus) as int32)) } const value_surfaceId = value.surfaceId let value_surfaceId_type : int32 = RuntimeType.UNDEFINED @@ -14101,7 +14230,7 @@ export class Serializer extends SerializerBase { const value_didReplaceEntry = value.didReplaceEntry valueSerializer.writeBoolean(value_didReplaceEntry) const value_navigationType = value.navigationType - valueSerializer.writeInt32((value_navigationType.valueOf() as int32)) + valueSerializer.writeInt32(((value_navigationType as WebNavigationType) as int32)) const value_url = value.url valueSerializer.writeString(value_url) } @@ -14258,7 +14387,7 @@ export class Serializer extends SerializerBase { const value_handler = value.handler valueSerializer.writeSslErrorHandler(value_handler) const value_error = value.error - valueSerializer.writeInt32((value_error.valueOf() as int32)) + valueSerializer.writeInt32(((value_error as SslError) as int32)) const value_url = value.url valueSerializer.writeString(value_url) const value_originalUrl = value.originalUrl @@ -14275,7 +14404,7 @@ export class Serializer extends SerializerBase { const value_handler = value.handler valueSerializer.writeSslErrorHandler(value_handler) const value_error = value.error - valueSerializer.writeInt32((value_error.valueOf() as int32)) + valueSerializer.writeInt32(((value_error as SslError) as int32)) const value_certChainData = value.certChainData let value_certChainData_type : int32 = RuntimeType.UNDEFINED value_certChainData_type = runtimeType(value_certChainData) @@ -14379,7 +14508,7 @@ export class Serializer extends SerializerBase { writeOnRenderExitedEvent(value: OnRenderExitedEvent): void { let valueSerializer : Serializer = this const value_renderExitReason = value.renderExitReason - valueSerializer.writeInt32((value_renderExitReason.valueOf() as int32)) + valueSerializer.writeInt32(((value_renderExitReason as RenderExitReason) as int32)) } writeOnRefreshAccessedHistoryEvent(value: OnRefreshAccessedHistoryEvent): void { let valueSerializer : Serializer = this @@ -14584,7 +14713,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_renderMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_renderMode_type)) { const value_renderMode_value = (value_renderMode as RenderMode) - valueSerializer.writeInt32((value_renderMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_renderMode_value as RenderMode) as int32)) } const value_incognitoMode = value.incognitoMode let value_incognitoMode_type : int32 = RuntimeType.UNDEFINED @@ -14667,7 +14796,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isPlaybackSpeed(value_currentProgressRate_value)) { valueSerializer.writeInt8(2 as int32) const value_currentProgressRate_value_2 = value_currentProgressRate_value as PlaybackSpeed - valueSerializer.writeInt32((value_currentProgressRate_value_2.valueOf() as int32)) + valueSerializer.writeInt32(((value_currentProgressRate_value_2 as PlaybackSpeed) as int32)) } } const value_previewUri = value.previewUri @@ -14688,7 +14817,7 @@ export class Serializer extends SerializerBase { const value_previewUri_value_1 = value_previewUri_value as PixelMap valueSerializer.writePixelMap(value_previewUri_value_1) } - else if (isResource(value_previewUri_value)) { + else if (TypeChecker.isResource(value_previewUri_value, false, false, false, false, false)) { valueSerializer.writeInt8(2 as int32) const value_previewUri_value_2 = value_previewUri_value as Resource valueSerializer.writeResource(value_previewUri_value_2) @@ -14743,7 +14872,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_unselectedColor_value)) { valueSerializer.writeInt8(0 as int32) const value_unselectedColor_value_0 = value_unselectedColor_value as Color - valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_unselectedColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -14772,7 +14901,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_pointColor_value)) { valueSerializer.writeInt8(0 as int32) const value_pointColor_value_0 = value_pointColor_value as Color - valueSerializer.writeInt32((value_pointColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_pointColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_pointColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -14813,7 +14942,7 @@ export class Serializer extends SerializerBase { writeToggleOptions(value: ToggleOptions): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as ToggleType) as int32)) const value_isOn = value.isOn let value_isOn_type : int32 = RuntimeType.UNDEFINED value_isOn_type = runtimeType(value_isOn) @@ -14852,7 +14981,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_format_type as int32) if ((RuntimeType.UNDEFINED) != (value_format_type)) { const value_format_value = (value_format as TimePickerFormat) - valueSerializer.writeInt32((value_format_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_format_value as TimePickerFormat) as int32)) } } writeTextTimerOptions(value: TextTimerOptions): void { @@ -15013,7 +15142,7 @@ export class Serializer extends SerializerBase { } } } - else if (isResource(value_range)) { + else if (TypeChecker.isResource(value_range, false, false, false, false, false)) { valueSerializer.writeInt8(2 as int32) const value_range_2 = value_range as Resource valueSerializer.writeResource(value_range_2) @@ -15261,7 +15390,7 @@ export class Serializer extends SerializerBase { writeTextOverflowOptions(value: TextOverflowOptions): void { let valueSerializer : Serializer = this const value_overflow = value.overflow - valueSerializer.writeInt32((value_overflow.valueOf() as int32)) + valueSerializer.writeInt32(((value_overflow as TextOverflow) as int32)) } writeTextOptions(value: TextOptions): void { let valueSerializer : Serializer = this @@ -15332,7 +15461,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_barPosition_type as int32) if ((RuntimeType.UNDEFINED) != (value_barPosition_type)) { const value_barPosition_value = (value_barPosition as BarPosition) - valueSerializer.writeInt32((value_barPosition_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_barPosition_value as BarPosition) as int32)) } const value_index = value.index let value_index_type : int32 = RuntimeType.UNDEFINED @@ -15409,7 +15538,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignContent_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignContent_type)) { const value_alignContent_value = (value_alignContent as Alignment) - valueSerializer.writeInt32((value_alignContent_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignContent_value as Alignment) as int32)) } } writeSlideRange(value: SlideRange): void { @@ -15434,7 +15563,7 @@ export class Serializer extends SerializerBase { writeSliderBlockStyle(value: SliderBlockStyle): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as SliderBlockType) as int32)) const value_image = value.image let value_image_type : int32 = RuntimeType.UNDEFINED value_image_type = runtimeType(value_image) @@ -15503,7 +15632,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as SliderStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as SliderStyle) as int32)) } const value_direction = value.direction let value_direction_type : int32 = RuntimeType.UNDEFINED @@ -15511,7 +15640,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as Axis) - valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction_value as Axis) as int32)) } const value_reverse = value.reverse let value_reverse_type : int32 = RuntimeType.UNDEFINED @@ -15649,7 +15778,7 @@ export class Serializer extends SerializerBase { const value_deleteOffset = value.deleteOffset valueSerializer.writeNumber(value_deleteOffset) const value_direction = value.direction - valueSerializer.writeInt32((value_direction.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction as TextDeleteDirection) as int32)) const value_deleteValue = value.deleteValue valueSerializer.writeString(value_deleteValue) } @@ -15663,7 +15792,7 @@ export class Serializer extends SerializerBase { writeTextDecorationOptions(value: TextDecorationOptions): void { let valueSerializer : Serializer = this const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as TextDecorationType) as int32)) const value_color = value.color let value_color_type : int32 = RuntimeType.UNDEFINED value_color_type = runtimeType(value_color) @@ -15675,7 +15804,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -15699,7 +15828,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as TextDecorationStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as TextDecorationStyle) as int32)) } } writeCaretStyle(value: CaretStyle): void { @@ -15723,7 +15852,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -15798,7 +15927,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as ScrollBarDirection) - valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction_value as ScrollBarDirection) as int32)) } const value_state = value.state let value_state_type : int32 = RuntimeType.UNDEFINED @@ -15806,7 +15935,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_state_type as int32) if ((RuntimeType.UNDEFINED) != (value_state_type)) { const value_state_value = (value_state as BarState) - valueSerializer.writeInt32((value_state_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_state_value as BarState) as int32)) } } writeOffsetOptions(value: OffsetOptions): void { @@ -15831,7 +15960,7 @@ export class Serializer extends SerializerBase { writeScrollSnapOptions(value: ScrollSnapOptions): void { let valueSerializer : Serializer = this const value_snapAlign = value.snapAlign - valueSerializer.writeInt32((value_snapAlign.valueOf() as int32)) + valueSerializer.writeInt32(((value_snapAlign as ScrollSnapAlign) as int32)) const value_snapPagination = value.snapPagination let value_snapPagination_type : int32 = RuntimeType.UNDEFINED value_snapPagination_type = runtimeType(value_snapPagination) @@ -15840,7 +15969,7 @@ export class Serializer extends SerializerBase { const value_snapPagination_value = value_snapPagination! let value_snapPagination_value_type : int32 = RuntimeType.UNDEFINED value_snapPagination_value_type = runtimeType(value_snapPagination_value) - if (((RuntimeType.NUMBER) == (value_snapPagination_value_type)) || ((RuntimeType.STRING) == (value_snapPagination_value_type)) || (((RuntimeType.OBJECT) == (value_snapPagination_value_type)) && (isResource(value_snapPagination_value)))) { + if (((RuntimeType.NUMBER) == (value_snapPagination_value_type)) || ((RuntimeType.STRING) == (value_snapPagination_value_type)) || (((RuntimeType.OBJECT) == (value_snapPagination_value_type)) && (TypeChecker.isResource(value_snapPagination_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_snapPagination_value_0 = value_snapPagination_value as Dimension valueSerializer.writeLength(value_snapPagination_value_0) @@ -15885,7 +16014,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_icon_type as int32) if ((RuntimeType.UNDEFINED) != (value_icon_type)) { const value_icon_value = (value_icon as SaveIconStyle) - valueSerializer.writeInt32((value_icon_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_icon_value as SaveIconStyle) as int32)) } const value_text = value.text let value_text_type : int32 = RuntimeType.UNDEFINED @@ -15893,7 +16022,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_text_type as int32) if ((RuntimeType.UNDEFINED) != (value_text_type)) { const value_text_value = (value_text as SaveDescription) - valueSerializer.writeInt32((value_text_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_text_value as SaveDescription) as int32)) } const value_buttonType = value.buttonType let value_buttonType_type : int32 = RuntimeType.UNDEFINED @@ -15901,7 +16030,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_buttonType_type as int32) if ((RuntimeType.UNDEFINED) != (value_buttonType_type)) { const value_buttonType_value = (value_buttonType as ButtonType) - valueSerializer.writeInt32((value_buttonType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_buttonType_value as ButtonType) as int32)) } } writeRowOptions(value: RowOptions): void { @@ -15997,7 +16126,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_types.length as int32) for (let i = 0; i < value_types.length; i++) { const value_types_element : TextDataDetectorType = value_types[i] - valueSerializer.writeInt32((value_types_element.valueOf() as int32)) + valueSerializer.writeInt32(((value_types_element as TextDataDetectorType) as int32)) } const value_onDetectResultUpdate = value.onDetectResultUpdate let value_onDetectResultUpdate_type : int32 = RuntimeType.UNDEFINED @@ -16018,7 +16147,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -16061,7 +16190,7 @@ export class Serializer extends SerializerBase { const value_offset = value.offset valueSerializer.writeNumber(value_offset) const value_direction = value.direction - valueSerializer.writeInt32((value_direction.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction as RichEditorDeleteDirection) as int32)) const value_length = value.length valueSerializer.writeNumber(value_length) const value_richEditorDeleteSpans = value.richEditorDeleteSpans @@ -16131,7 +16260,7 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeString(value_id) const value_localizedDirection = value.localizedDirection - valueSerializer.writeInt32((value_localizedDirection.valueOf() as int32)) + valueSerializer.writeInt32(((value_localizedDirection as LocalizedBarrierDirection) as int32)) const value_referencedId = value.referencedId valueSerializer.writeInt32(value_referencedId.length as int32) for (let i = 0; i < value_referencedId.length; i++) { @@ -16144,7 +16273,7 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeString(value_id) const value_direction = value.direction - valueSerializer.writeInt32((value_direction.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction as BarrierDirection) as int32)) const value_referencedId = value.referencedId valueSerializer.writeInt32(value_referencedId.length as int32) for (let i = 0; i < value_referencedId.length; i++) { @@ -16157,7 +16286,7 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeString(value_id) const value_direction = value.direction - valueSerializer.writeInt32((value_direction.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction as Axis) as int32)) const value_position = value.position valueSerializer.writeGuideLinePosition(value_position) } @@ -16280,7 +16409,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_checkedBackgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_checkedBackgroundColor_value_0 = value_checkedBackgroundColor_value as Color - valueSerializer.writeInt32((value_checkedBackgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_checkedBackgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -16309,7 +16438,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_uncheckedBorderColor_value)) { valueSerializer.writeInt8(0 as int32) const value_uncheckedBorderColor_value_0 = value_uncheckedBorderColor_value as Color - valueSerializer.writeInt32((value_uncheckedBorderColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_uncheckedBorderColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -16338,7 +16467,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_indicatorColor_value)) { valueSerializer.writeInt8(0 as int32) const value_indicatorColor_value_0 = value_indicatorColor_value as Color - valueSerializer.writeInt32((value_indicatorColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_indicatorColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_indicatorColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -16369,7 +16498,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_indicatorType_type as int32) if ((RuntimeType.UNDEFINED) != (value_indicatorType_type)) { const value_indicatorType_value = (value_indicatorType as RadioIndicatorType) - valueSerializer.writeInt32((value_indicatorType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_indicatorType_value as RadioIndicatorType) as int32)) } const value_indicatorBuilder = value.indicatorBuilder let value_indicatorBuilder_type : int32 = RuntimeType.UNDEFINED @@ -16398,7 +16527,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as ProgressStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as ProgressStyle) as int32)) } const value_type = value.type let value_type_type : int32 = RuntimeType.UNDEFINED @@ -16406,7 +16535,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as ProgressType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as ProgressType) as int32)) } } writePolylineOptions(value: PolylineOptions): void { @@ -16573,7 +16702,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_icon_type as int32) if ((RuntimeType.UNDEFINED) != (value_icon_type)) { const value_icon_value = (value_icon as PasteIconStyle) - valueSerializer.writeInt32((value_icon_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_icon_value as PasteIconStyle) as int32)) } const value_text = value.text let value_text_type : int32 = RuntimeType.UNDEFINED @@ -16581,7 +16710,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_text_type as int32) if ((RuntimeType.UNDEFINED) != (value_text_type)) { const value_text_value = (value_text as PasteDescription) - valueSerializer.writeInt32((value_text_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_text_value as PasteDescription) as int32)) } const value_buttonType = value.buttonType let value_buttonType_type : int32 = RuntimeType.UNDEFINED @@ -16589,7 +16718,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_buttonType_type as int32) if ((RuntimeType.UNDEFINED) != (value_buttonType_type)) { const value_buttonType_value = (value_buttonType as ButtonType) - valueSerializer.writeInt32((value_buttonType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_buttonType_value as ButtonType) as int32)) } } writeNodeController(value: NodeController): void { @@ -16667,7 +16796,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_status_type as int32) if ((RuntimeType.UNDEFINED) != (value_status_type)) { const value_status_value = (value_status as ToolbarItemStatus) - valueSerializer.writeInt32((value_status_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_status_value as ToolbarItemStatus) as int32)) } const value_activeIcon = value.activeIcon let value_activeIcon_type : int32 = RuntimeType.UNDEFINED @@ -16865,7 +16994,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_icon_type as int32) if ((RuntimeType.UNDEFINED) != (value_icon_type)) { const value_icon_value = (value_icon as LocationIconStyle) - valueSerializer.writeInt32((value_icon_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_icon_value as LocationIconStyle) as int32)) } const value_text = value.text let value_text_type : int32 = RuntimeType.UNDEFINED @@ -16873,7 +17002,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_text_type as int32) if ((RuntimeType.UNDEFINED) != (value_text_type)) { const value_text_value = (value_text as LocationDescription) - valueSerializer.writeInt32((value_text_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_text_value as LocationDescription) as int32)) } const value_buttonType = value.buttonType let value_buttonType_type : int32 = RuntimeType.UNDEFINED @@ -16881,7 +17010,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_buttonType_type as int32) if ((RuntimeType.UNDEFINED) != (value_buttonType_type)) { const value_buttonType_value = (value_buttonType as ButtonType) - valueSerializer.writeInt32((value_buttonType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_buttonType_value as ButtonType) as int32)) } } writeListItemGroupOptions(value: ListItemGroupOptions): void { @@ -16943,7 +17072,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as ListItemGroupStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as ListItemGroupStyle) as int32)) } } writeSwipeActionOptions(value: SwipeActionOptions): void { @@ -16992,7 +17121,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_edgeEffect_type as int32) if ((RuntimeType.UNDEFINED) != (value_edgeEffect_type)) { const value_edgeEffect_value = (value_edgeEffect as SwipeEdgeEffect) - valueSerializer.writeInt32((value_edgeEffect_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_edgeEffect_value as SwipeEdgeEffect) as int32)) } const value_onOffsetChange = value.onOffsetChange let value_onOffsetChange_type : int32 = RuntimeType.UNDEFINED @@ -17011,7 +17140,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as ListItemStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as ListItemStyle) as int32)) } } writeChainAnimationOptions(value: ChainAnimationOptions): void { @@ -17042,7 +17171,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_edgeEffect_type as int32) if ((RuntimeType.UNDEFINED) != (value_edgeEffect_type)) { const value_edgeEffect_value = (value_edgeEffect as ChainEdgeEffect) - valueSerializer.writeInt32((value_edgeEffect_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_edgeEffect_value as ChainEdgeEffect) as int32)) } const value_stiffness = value.stiffness let value_stiffness_type : int32 = RuntimeType.UNDEFINED @@ -17175,7 +17304,7 @@ export class Serializer extends SerializerBase { const value_src_0 = value_src as string valueSerializer.writeString(value_src_0) } - else if (isResource(value_src)) { + else if (TypeChecker.isResource(value_src, false, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) const value_src_1 = value_src as Resource valueSerializer.writeResource(value_src_1) @@ -17301,7 +17430,7 @@ export class Serializer extends SerializerBase { const value_gutter_value = value_gutter! let value_gutter_value_type : int32 = RuntimeType.UNDEFINED value_gutter_value_type = runtimeType(value_gutter_value) - if (((RuntimeType.NUMBER) == (value_gutter_value_type)) || ((RuntimeType.STRING) == (value_gutter_value_type)) || (((RuntimeType.OBJECT) == (value_gutter_value_type)) && (isResource(value_gutter_value)))) { + if (((RuntimeType.NUMBER) == (value_gutter_value_type)) || ((RuntimeType.STRING) == (value_gutter_value_type)) || (((RuntimeType.OBJECT) == (value_gutter_value_type)) && (TypeChecker.isResource(value_gutter_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_gutter_value_0 = value_gutter_value as Length valueSerializer.writeLength(value_gutter_value_0) @@ -17345,7 +17474,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as GridRowDirection) - valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction_value as GridRowDirection) as int32)) } } writeGridContainerOptions(value: GridContainerOptions): void { @@ -17375,7 +17504,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_sizeType_type as int32) if ((RuntimeType.UNDEFINED) != (value_sizeType_type)) { const value_sizeType_value = (value_sizeType as SizeType) - valueSerializer.writeInt32((value_sizeType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_sizeType_value as SizeType) as int32)) } const value_gutter = value.gutter let value_gutter_type : int32 = RuntimeType.UNDEFINED @@ -17484,7 +17613,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as GridItemStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as GridItemStyle) as int32)) } } writeItemDragInfo(value: ItemDragInfo): void { @@ -17765,7 +17894,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_dimension_type as int32) if ((RuntimeType.UNDEFINED) != (value_dimension_type)) { const value_dimension_value = (value_dimension as FormDimension) - valueSerializer.writeInt32((value_dimension_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_dimension_value as FormDimension) as int32)) } const value_temporary = value.temporary let value_temporary_type : int32 = RuntimeType.UNDEFINED @@ -17789,7 +17918,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_renderingMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_renderingMode_type)) { const value_renderingMode_value = (value_renderingMode as FormRenderingMode) - valueSerializer.writeInt32((value_renderingMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_renderingMode_value as FormRenderingMode) as int32)) } const value_shape = value.shape let value_shape_type : int32 = RuntimeType.UNDEFINED @@ -17797,24 +17926,24 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_shape_type as int32) if ((RuntimeType.UNDEFINED) != (value_shape_type)) { const value_shape_value = (value_shape as FormShape) - valueSerializer.writeInt32((value_shape_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_shape_value as FormShape) as int32)) } } writeHoverEventParam(value: HoverEventParam): void { let valueSerializer : Serializer = this const value_foldStatus = value.foldStatus - valueSerializer.writeInt32((value_foldStatus.valueOf() as int32)) + valueSerializer.writeInt32(((value_foldStatus as FoldStatus) as int32)) const value_isHoverMode = value.isHoverMode valueSerializer.writeBoolean(value_isHoverMode) const value_appRotation = value.appRotation - valueSerializer.writeInt32((value_appRotation.valueOf() as int32)) + valueSerializer.writeInt32(((value_appRotation as AppRotation) as int32)) const value_windowStatusType = value.windowStatusType valueSerializer.writeWindowStatusType(value_windowStatusType) } writeOnFoldStatusChangeInfo(value: OnFoldStatusChangeInfo): void { let valueSerializer : Serializer = this const value_foldStatus = value.foldStatus - valueSerializer.writeInt32((value_foldStatus.valueOf() as int32)) + valueSerializer.writeInt32(((value_foldStatus as FoldStatus) as int32)) } writeFolderStackOptions(value: FolderStackOptions): void { let valueSerializer : Serializer = this @@ -17839,7 +17968,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_direction_type as int32) if ((RuntimeType.UNDEFINED) != (value_direction_type)) { const value_direction_value = (value_direction as FlexDirection) - valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_direction_value as FlexDirection) as int32)) } const value_wrap = value.wrap let value_wrap_type : int32 = RuntimeType.UNDEFINED @@ -17847,7 +17976,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_wrap_type as int32) if ((RuntimeType.UNDEFINED) != (value_wrap_type)) { const value_wrap_value = (value_wrap as FlexWrap) - valueSerializer.writeInt32((value_wrap_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_wrap_value as FlexWrap) as int32)) } const value_justifyContent = value.justifyContent let value_justifyContent_type : int32 = RuntimeType.UNDEFINED @@ -17855,7 +17984,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_justifyContent_type as int32) if ((RuntimeType.UNDEFINED) != (value_justifyContent_type)) { const value_justifyContent_value = (value_justifyContent as FlexAlign) - valueSerializer.writeInt32((value_justifyContent_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_justifyContent_value as FlexAlign) as int32)) } const value_alignItems = value.alignItems let value_alignItems_type : int32 = RuntimeType.UNDEFINED @@ -17863,7 +17992,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignItems_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignItems_type)) { const value_alignItems_value = (value_alignItems as ItemAlign) - valueSerializer.writeInt32((value_alignItems_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignItems_value as ItemAlign) as int32)) } const value_alignContent = value.alignContent let value_alignContent_type : int32 = RuntimeType.UNDEFINED @@ -17871,7 +18000,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignContent_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignContent_type)) { const value_alignContent_value = (value_alignContent as FlexAlign) - valueSerializer.writeInt32((value_alignContent_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignContent_value as FlexAlign) as int32)) } const value_space = value.space let value_space_type : int32 = RuntimeType.UNDEFINED @@ -18077,7 +18206,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_colors_value_element_0)) { valueSerializer.writeInt8(0 as int32) const value_colors_value_element_0_0 = value_colors_value_element_0 as Color - valueSerializer.writeInt32((value_colors_value_element_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_colors_value_element_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_colors_value_element_0_type) { valueSerializer.writeInt8(1 as int32) @@ -18125,7 +18254,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as DataPanelType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as DataPanelType) as int32)) } } writeColorStop(value: ColorStop): void { @@ -18136,7 +18265,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color)) { valueSerializer.writeInt8(0 as int32) const value_color_0 = value_color as Color - valueSerializer.writeInt32((value_color_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1 as int32) @@ -18182,7 +18311,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_alignment_type as int32) if ((RuntimeType.UNDEFINED) != (value_alignment_type)) { const value_alignment_value = (value_alignment as DialogAlignment) - valueSerializer.writeInt32((value_alignment_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_alignment_value as DialogAlignment) as int32)) } const value_offset = value.offset let value_offset_type : int32 = RuntimeType.UNDEFINED @@ -18222,7 +18351,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_maskColor_value)) { valueSerializer.writeInt8(0 as int32) const value_maskColor_value_0 = value_maskColor_value as Color - valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_maskColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18283,7 +18412,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18309,7 +18438,7 @@ export class Serializer extends SerializerBase { const value_cornerRadius_value = value_cornerRadius! let value_cornerRadius_value_type : int32 = RuntimeType.UNDEFINED value_cornerRadius_value_type = runtimeType(value_cornerRadius_value) - if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (isResource(value_cornerRadius_value)))) { + if (((RuntimeType.NUMBER) == (value_cornerRadius_value_type)) || ((RuntimeType.STRING) == (value_cornerRadius_value_type)) || (((RuntimeType.OBJECT) == (value_cornerRadius_value_type)) && (TypeChecker.isResource(value_cornerRadius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_cornerRadius_value_0 = value_cornerRadius_value as Dimension valueSerializer.writeLength(value_cornerRadius_value_0) @@ -18391,7 +18520,7 @@ export class Serializer extends SerializerBase { const value_borderWidth_value = value_borderWidth! let value_borderWidth_value_type : int32 = RuntimeType.UNDEFINED value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (TypeChecker.isResource(value_borderWidth_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_borderWidth_value_0 = value_borderWidth_value as Dimension valueSerializer.writeLength(value_borderWidth_value_0) @@ -18449,7 +18578,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_0)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_0_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) @@ -18481,7 +18610,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_top_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18510,7 +18639,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_right_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18539,7 +18668,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18568,7 +18697,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_borderColor_value_1_left_value)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderColor_value_1_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18599,7 +18728,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_0 as BorderStyle) as int32)) } else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) @@ -18610,7 +18739,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { const value_borderStyle_value_1_top_value = (value_borderStyle_value_1_top as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_top_value as BorderStyle) as int32)) } const value_borderStyle_value_1_right = value_borderStyle_value_1.right let value_borderStyle_value_1_right_type : int32 = RuntimeType.UNDEFINED @@ -18618,7 +18747,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { const value_borderStyle_value_1_right_value = (value_borderStyle_value_1_right as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_right_value as BorderStyle) as int32)) } const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom let value_borderStyle_value_1_bottom_type : int32 = RuntimeType.UNDEFINED @@ -18626,7 +18755,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { const value_borderStyle_value_1_bottom_value = (value_borderStyle_value_1_bottom as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_bottom_value as BorderStyle) as int32)) } const value_borderStyle_value_1_left = value_borderStyle_value_1.left let value_borderStyle_value_1_left_type : int32 = RuntimeType.UNDEFINED @@ -18634,7 +18763,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { const value_borderStyle_value_1_left_value = (value_borderStyle_value_1_left as BorderStyle) - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_borderStyle_value_1_left_value as BorderStyle) as int32)) } } } @@ -18654,7 +18783,7 @@ export class Serializer extends SerializerBase { else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_shadow_value_1 as ShadowStyle) as int32)) } } const value_backgroundBlurStyle = value.backgroundBlurStyle @@ -18663,7 +18792,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { const value_backgroundBlurStyle_value = (value_backgroundBlurStyle as BlurStyle) - valueSerializer.writeInt32((value_backgroundBlurStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundBlurStyle_value as BlurStyle) as int32)) } const value_keyboardAvoidMode = value.keyboardAvoidMode let value_keyboardAvoidMode_type : int32 = RuntimeType.UNDEFINED @@ -18671,7 +18800,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_keyboardAvoidMode_type as int32) if ((RuntimeType.UNDEFINED) != (value_keyboardAvoidMode_type)) { const value_keyboardAvoidMode_value = (value_keyboardAvoidMode as KeyboardAvoidMode) - valueSerializer.writeInt32((value_keyboardAvoidMode_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_keyboardAvoidMode_value as KeyboardAvoidMode) as int32)) } const value_enableHoverMode = value.enableHoverMode let value_enableHoverMode_type : int32 = RuntimeType.UNDEFINED @@ -18687,7 +18816,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_hoverModeArea_type as int32) if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_hoverModeArea_value as HoverModeAreaType) as int32)) } } writeCustomDialogController(value: CustomDialogController): void { @@ -18736,7 +18865,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_modelType_type as int32) if ((RuntimeType.UNDEFINED) != (value_modelType_type)) { const value_modelType_value = (value_modelType as ModelType) - valueSerializer.writeInt32((value_modelType_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_modelType_value as ModelType) as int32)) } } writeUICommonEvent(value: UICommonEvent): void { @@ -18769,7 +18898,7 @@ export class Serializer extends SerializerBase { const value_dismiss = value.dismiss valueSerializer.holdAndWriteCallback(value_dismiss) const value_reason = value.reason - valueSerializer.writeInt32((value_reason.valueOf() as int32)) + valueSerializer.writeInt32(((value_reason as DismissReason) as int32)) } writeSheetDismiss(value: SheetDismiss): void { let valueSerializer : Serializer = this @@ -18781,7 +18910,7 @@ export class Serializer extends SerializerBase { const value_dismiss = value.dismiss valueSerializer.holdAndWriteCallback(value_dismiss) const value_reason = value.reason - valueSerializer.writeInt32((value_reason.valueOf() as int32)) + valueSerializer.writeInt32(((value_reason as DismissReason) as int32)) } writeMenuElement(value: MenuElement): void { let valueSerializer : Serializer = this @@ -18841,7 +18970,7 @@ export class Serializer extends SerializerBase { const value_dismiss = value.dismiss valueSerializer.holdAndWriteCallback(value_dismiss) const value_reason = value.reason - valueSerializer.writeInt32((value_reason.valueOf() as int32)) + valueSerializer.writeInt32(((value_reason as DismissReason) as int32)) } writeGestureRecognizer(value: GestureRecognizer): void { let valueSerializer : Serializer = this @@ -18879,7 +19008,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_tag_value) } const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) + valueSerializer.writeInt32(((value_type as GestureControl.GestureType) as int32)) const value_isSystemGesture = value.isSystemGesture valueSerializer.writeBoolean(value_isSystemGesture) } @@ -19055,7 +19184,7 @@ export class Serializer extends SerializerBase { const value_left_value_anchor = value_left_value.anchor valueSerializer.writeString(value_left_value_anchor) const value_left_value_align = value_left_value.align - valueSerializer.writeInt32((value_left_value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_left_value_align as HorizontalAlign) as int32)) } const value_right = value.right let value_right_type : int32 = RuntimeType.UNDEFINED @@ -19066,7 +19195,7 @@ export class Serializer extends SerializerBase { const value_right_value_anchor = value_right_value.anchor valueSerializer.writeString(value_right_value_anchor) const value_right_value_align = value_right_value.align - valueSerializer.writeInt32((value_right_value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_right_value_align as HorizontalAlign) as int32)) } const value_middle = value.middle let value_middle_type : int32 = RuntimeType.UNDEFINED @@ -19077,7 +19206,7 @@ export class Serializer extends SerializerBase { const value_middle_value_anchor = value_middle_value.anchor valueSerializer.writeString(value_middle_value_anchor) const value_middle_value_align = value_middle_value.align - valueSerializer.writeInt32((value_middle_value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_middle_value_align as HorizontalAlign) as int32)) } const value_top = value.top let value_top_type : int32 = RuntimeType.UNDEFINED @@ -19088,7 +19217,7 @@ export class Serializer extends SerializerBase { const value_top_value_anchor = value_top_value.anchor valueSerializer.writeString(value_top_value_anchor) const value_top_value_align = value_top_value.align - valueSerializer.writeInt32((value_top_value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_top_value_align as VerticalAlign) as int32)) } const value_bottom = value.bottom let value_bottom_type : int32 = RuntimeType.UNDEFINED @@ -19099,7 +19228,7 @@ export class Serializer extends SerializerBase { const value_bottom_value_anchor = value_bottom_value.anchor valueSerializer.writeString(value_bottom_value_anchor) const value_bottom_value_align = value_bottom_value.align - valueSerializer.writeInt32((value_bottom_value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_bottom_value_align as VerticalAlign) as int32)) } const value_center = value.center let value_center_type : int32 = RuntimeType.UNDEFINED @@ -19110,7 +19239,7 @@ export class Serializer extends SerializerBase { const value_center_value_anchor = value_center_value.anchor valueSerializer.writeString(value_center_value_anchor) const value_center_value_align = value_center_value.align - valueSerializer.writeInt32((value_center_value_align.valueOf() as int32)) + valueSerializer.writeInt32(((value_center_value_align as VerticalAlign) as int32)) } const value_bias = value.bias let value_bias_type : int32 = RuntimeType.UNDEFINED @@ -19201,7 +19330,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_width_value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (isResource(value_width_value)))) { + else if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (TypeChecker.isResource(value_width_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as Dimension valueSerializer.writeLength(value_width_value_1) @@ -19229,7 +19358,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_top_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color - valueSerializer.writeInt32((value_color_value_0_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19258,7 +19387,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_right_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color - valueSerializer.writeInt32((value_color_value_0_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19287,7 +19416,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color - valueSerializer.writeInt32((value_color_value_0_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19316,7 +19445,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_left_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color - valueSerializer.writeInt32((value_color_value_0_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19343,7 +19472,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_1)) { valueSerializer.writeInt8(0 as int32) const value_color_value_1_0 = value_color_value_1 as Color - valueSerializer.writeInt32((value_color_value_1_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_1_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1 as int32) @@ -19411,7 +19540,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_radius_value_0_bottomRight_value) } } - else if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + else if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isResource(value_radius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as Dimension valueSerializer.writeLength(value_radius_value_1) @@ -19434,7 +19563,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_top_type)) { const value_style_value_0_top_value = (value_style_value_0_top as OutlineStyle) - valueSerializer.writeInt32((value_style_value_0_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_top_value as OutlineStyle) as int32)) } const value_style_value_0_right = value_style_value_0.right let value_style_value_0_right_type : int32 = RuntimeType.UNDEFINED @@ -19442,7 +19571,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_right_type)) { const value_style_value_0_right_value = (value_style_value_0_right as OutlineStyle) - valueSerializer.writeInt32((value_style_value_0_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_right_value as OutlineStyle) as int32)) } const value_style_value_0_bottom = value_style_value_0.bottom let value_style_value_0_bottom_type : int32 = RuntimeType.UNDEFINED @@ -19450,7 +19579,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_bottom_type)) { const value_style_value_0_bottom_value = (value_style_value_0_bottom as OutlineStyle) - valueSerializer.writeInt32((value_style_value_0_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_bottom_value as OutlineStyle) as int32)) } const value_style_value_0_left = value_style_value_0.left let value_style_value_0_left_type : int32 = RuntimeType.UNDEFINED @@ -19458,13 +19587,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_left_type)) { const value_style_value_0_left_value = (value_style_value_0_left as OutlineStyle) - valueSerializer.writeInt32((value_style_value_0_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_left_value as OutlineStyle) as int32)) } } else if (TypeChecker.isOutlineStyle(value_style_value)) { valueSerializer.writeInt8(1 as int32) const value_style_value_1 = value_style_value as OutlineStyle - valueSerializer.writeInt32((value_style_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_1 as OutlineStyle) as int32)) } } } @@ -19478,7 +19607,7 @@ export class Serializer extends SerializerBase { const value_slice_value = value_slice! let value_slice_value_type : int32 = RuntimeType.UNDEFINED value_slice_value_type = runtimeType(value_slice_value) - if (((RuntimeType.NUMBER) == (value_slice_value_type)) || ((RuntimeType.STRING) == (value_slice_value_type)) || (((RuntimeType.OBJECT) == (value_slice_value_type)) && (isResource(value_slice_value)))) { + if (((RuntimeType.NUMBER) == (value_slice_value_type)) || ((RuntimeType.STRING) == (value_slice_value_type)) || (((RuntimeType.OBJECT) == (value_slice_value_type)) && (TypeChecker.isResource(value_slice_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_slice_value_0 = value_slice_value as Length valueSerializer.writeLength(value_slice_value_0) @@ -19531,7 +19660,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_repeat_type as int32) if ((RuntimeType.UNDEFINED) != (value_repeat_type)) { const value_repeat_value = (value_repeat as RepeatMode) - valueSerializer.writeInt32((value_repeat_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_repeat_value as RepeatMode) as int32)) } const value_source = value.source let value_source_type : int32 = RuntimeType.UNDEFINED @@ -19546,7 +19675,7 @@ export class Serializer extends SerializerBase { const value_source_value_0 = value_source_value as string valueSerializer.writeString(value_source_value_0) } - else if (isResource(value_source_value)) { + else if (TypeChecker.isResource(value_source_value, false, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) const value_source_value_1 = value_source_value as Resource valueSerializer.writeResource(value_source_value_1) @@ -19565,7 +19694,7 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (isResource(value_width_value)))) { + if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (TypeChecker.isResource(value_width_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as Length valueSerializer.writeLength(value_width_value_0) @@ -19620,7 +19749,7 @@ export class Serializer extends SerializerBase { const value_outset_value = value_outset! let value_outset_value_type : int32 = RuntimeType.UNDEFINED value_outset_value_type = runtimeType(value_outset_value) - if (((RuntimeType.NUMBER) == (value_outset_value_type)) || ((RuntimeType.STRING) == (value_outset_value_type)) || (((RuntimeType.OBJECT) == (value_outset_value_type)) && (isResource(value_outset_value)))) { + if (((RuntimeType.NUMBER) == (value_outset_value_type)) || ((RuntimeType.STRING) == (value_outset_value_type)) || (((RuntimeType.OBJECT) == (value_outset_value_type)) && (TypeChecker.isResource(value_outset_value, false, false, false, false, false)))) { valueSerializer.writeInt8(0 as int32) const value_outset_value_0 = value_outset_value as Length valueSerializer.writeLength(value_outset_value_0) @@ -19722,7 +19851,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_width_value_0_left_value) } } - else if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (isResource(value_width_value)))) { + else if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (TypeChecker.isResource(value_width_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as Length valueSerializer.writeLength(value_width_value_1) @@ -19755,7 +19884,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_top_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color - valueSerializer.writeInt32((value_color_value_0_top_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_top_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19784,7 +19913,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_right_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color - valueSerializer.writeInt32((value_color_value_0_right_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_right_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19813,7 +19942,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_bottom_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color - valueSerializer.writeInt32((value_color_value_0_bottom_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_bottom_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19842,7 +19971,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_0_left_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color - valueSerializer.writeInt32((value_color_value_0_left_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0_left_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1 as int32) @@ -19869,7 +19998,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value_1)) { valueSerializer.writeInt8(0 as int32) const value_color_value_1_0 = value_color_value_1 as Color - valueSerializer.writeInt32((value_color_value_1_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_1_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1 as int32) @@ -19937,7 +20066,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_radius_value_0_bottomRight_value) } } - else if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + else if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isResource(value_radius_value, false, false, false, false, false)))) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as Length valueSerializer.writeLength(value_radius_value_1) @@ -19965,7 +20094,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_top_type)) { const value_style_value_0_top_value = (value_style_value_0_top as BorderStyle) - valueSerializer.writeInt32((value_style_value_0_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_top_value as BorderStyle) as int32)) } const value_style_value_0_right = value_style_value_0.right let value_style_value_0_right_type : int32 = RuntimeType.UNDEFINED @@ -19973,7 +20102,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_right_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_right_type)) { const value_style_value_0_right_value = (value_style_value_0_right as BorderStyle) - valueSerializer.writeInt32((value_style_value_0_right_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_right_value as BorderStyle) as int32)) } const value_style_value_0_bottom = value_style_value_0.bottom let value_style_value_0_bottom_type : int32 = RuntimeType.UNDEFINED @@ -19981,7 +20110,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_bottom_type)) { const value_style_value_0_bottom_value = (value_style_value_0_bottom as BorderStyle) - valueSerializer.writeInt32((value_style_value_0_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_bottom_value as BorderStyle) as int32)) } const value_style_value_0_left = value_style_value_0.left let value_style_value_0_left_type : int32 = RuntimeType.UNDEFINED @@ -19989,13 +20118,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_value_0_left_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_value_0_left_type)) { const value_style_value_0_left_value = (value_style_value_0_left as BorderStyle) - valueSerializer.writeInt32((value_style_value_0_left_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_0_left_value as BorderStyle) as int32)) } } else if (TypeChecker.isBorderStyle(value_style_value)) { valueSerializer.writeInt8(1 as int32) const value_style_value_1 = value_style_value as BorderStyle - valueSerializer.writeInt32((value_style_value_1.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value_1 as BorderStyle) as int32)) } } const value_dashGap = value.dashGap @@ -20205,7 +20334,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_color_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20229,7 +20358,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_adaptiveColor_type as int32) if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { const value_adaptiveColor_value = (value_adaptiveColor as AdaptiveColor) - valueSerializer.writeInt32((value_adaptiveColor_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_adaptiveColor_value as AdaptiveColor) as int32)) } const value_blurOptions = value.blurOptions let value_blurOptions_type : int32 = RuntimeType.UNDEFINED @@ -20245,7 +20374,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_policy_type as int32) if ((RuntimeType.UNDEFINED) != (value_policy_type)) { const value_policy_value = (value_policy as BlurStyleActivePolicy) - valueSerializer.writeInt32((value_policy_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_policy_value as BlurStyleActivePolicy) as int32)) } const value_inactiveColor = value.inactiveColor let value_inactiveColor_type : int32 = RuntimeType.UNDEFINED @@ -20258,7 +20387,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_inactiveColor_value)) { valueSerializer.writeInt8(0 as int32) const value_inactiveColor_value_0 = value_inactiveColor_value as Color - valueSerializer.writeInt32((value_inactiveColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_inactiveColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20285,7 +20414,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_start_type as int32) if ((RuntimeType.UNDEFINED) != (value_start_type)) { const value_start_value = (value_start as PixelRoundCalcPolicy) - valueSerializer.writeInt32((value_start_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_start_value as PixelRoundCalcPolicy) as int32)) } const value_top = value.top let value_top_type : int32 = RuntimeType.UNDEFINED @@ -20293,7 +20422,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_top_type)) { const value_top_value = (value_top as PixelRoundCalcPolicy) - valueSerializer.writeInt32((value_top_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_top_value as PixelRoundCalcPolicy) as int32)) } const value_end = value.end let value_end_type : int32 = RuntimeType.UNDEFINED @@ -20301,7 +20430,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_end_type as int32) if ((RuntimeType.UNDEFINED) != (value_end_type)) { const value_end_value = (value_end as PixelRoundCalcPolicy) - valueSerializer.writeInt32((value_end_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_end_value as PixelRoundCalcPolicy) as int32)) } const value_bottom = value.bottom let value_bottom_type : int32 = RuntimeType.UNDEFINED @@ -20309,7 +20438,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { const value_bottom_value = (value_bottom as PixelRoundCalcPolicy) - valueSerializer.writeInt32((value_bottom_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_bottom_value as PixelRoundCalcPolicy) as int32)) } } writeChainWeightOptions(value: ChainWeightOptions): void { @@ -20334,7 +20463,7 @@ export class Serializer extends SerializerBase { writeTouchResult(value: TouchResult): void { let valueSerializer : Serializer = this const value_strategy = value.strategy - valueSerializer.writeInt32((value_strategy.valueOf() as int32)) + valueSerializer.writeInt32(((value_strategy as TouchTestStrategy) as int32)) const value_id = value.id let value_id_type : int32 = RuntimeType.UNDEFINED value_id_type = runtimeType(value_id) @@ -20418,7 +20547,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_illuminated_type as int32) if ((RuntimeType.UNDEFINED) != (value_illuminated_type)) { const value_illuminated_value = (value_illuminated as IlluminatedType) - valueSerializer.writeInt32((value_illuminated_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_illuminated_value as IlluminatedType) as int32)) } const value_bloom = value.bloom let value_bloom_type : int32 = RuntimeType.UNDEFINED @@ -20501,7 +20630,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_name_element) } const value_status = value.status - valueSerializer.writeInt32((value_status.valueOf() as int32)) + valueSerializer.writeInt32(((value_status as SelectStatus) as int32)) } writeCheckboxGroupOptions(value: CheckboxGroupOptions): void { let valueSerializer : Serializer = this @@ -20527,7 +20656,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_strokeColor_value)) { valueSerializer.writeInt8(0 as int32) const value_strokeColor_value_0 = value_strokeColor_value as Color - valueSerializer.writeInt32((value_strokeColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_strokeColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20675,7 +20804,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_workDayMarkColor_value)) { valueSerializer.writeInt8(0 as int32) const value_workDayMarkColor_value_0 = value_workDayMarkColor_value as Color - valueSerializer.writeInt32((value_workDayMarkColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_workDayMarkColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20704,7 +20833,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_offDayMarkColor_value)) { valueSerializer.writeInt8(0 as int32) const value_offDayMarkColor_value_0 = value_offDayMarkColor_value as Color - valueSerializer.writeInt32((value_offDayMarkColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_offDayMarkColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20776,7 +20905,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_weekColor_value)) { valueSerializer.writeInt8(0 as int32) const value_weekColor_value_0 = value_weekColor_value as Color - valueSerializer.writeInt32((value_weekColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_weekColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_weekColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20805,7 +20934,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_weekendDayColor_value)) { valueSerializer.writeInt8(0 as int32) const value_weekendDayColor_value_0 = value_weekendDayColor_value as Color - valueSerializer.writeInt32((value_weekendDayColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_weekendDayColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_weekendDayColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20834,7 +20963,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_weekendLunarColor_value)) { valueSerializer.writeInt8(0 as int32) const value_weekendLunarColor_value_0 = value_weekendLunarColor_value as Color - valueSerializer.writeInt32((value_weekendLunarColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_weekendLunarColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20898,7 +21027,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_focusedDayColor_value)) { valueSerializer.writeInt8(0 as int32) const value_focusedDayColor_value_0 = value_focusedDayColor_value as Color - valueSerializer.writeInt32((value_focusedDayColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_focusedDayColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_focusedDayColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20927,7 +21056,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_focusedLunarColor_value)) { valueSerializer.writeInt8(0 as int32) const value_focusedLunarColor_value_0 = value_focusedLunarColor_value as Color - valueSerializer.writeInt32((value_focusedLunarColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_focusedLunarColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20956,7 +21085,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_focusedAreaBackgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_focusedAreaBackgroundColor_value_0 = value_focusedAreaBackgroundColor_value as Color - valueSerializer.writeInt32((value_focusedAreaBackgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_focusedAreaBackgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -20996,7 +21125,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_nonCurrentMonthDayColor_value)) { valueSerializer.writeInt8(0 as int32) const value_nonCurrentMonthDayColor_value_0 = value_nonCurrentMonthDayColor_value as Color - valueSerializer.writeInt32((value_nonCurrentMonthDayColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_nonCurrentMonthDayColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21025,7 +21154,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_nonCurrentMonthLunarColor_value)) { valueSerializer.writeInt8(0 as int32) const value_nonCurrentMonthLunarColor_value_0 = value_nonCurrentMonthLunarColor_value as Color - valueSerializer.writeInt32((value_nonCurrentMonthLunarColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_nonCurrentMonthLunarColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21054,7 +21183,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_nonCurrentMonthWorkDayMarkColor_value)) { valueSerializer.writeInt8(0 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_0 = value_nonCurrentMonthWorkDayMarkColor_value as Color - valueSerializer.writeInt32((value_nonCurrentMonthWorkDayMarkColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_nonCurrentMonthWorkDayMarkColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21083,7 +21212,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_nonCurrentMonthOffDayMarkColor_value)) { valueSerializer.writeInt8(0 as int32) const value_nonCurrentMonthOffDayMarkColor_value_0 = value_nonCurrentMonthOffDayMarkColor_value as Color - valueSerializer.writeInt32((value_nonCurrentMonthOffDayMarkColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_nonCurrentMonthOffDayMarkColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21115,7 +21244,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_dayColor_value)) { valueSerializer.writeInt8(0 as int32) const value_dayColor_value_0 = value_dayColor_value as Color - valueSerializer.writeInt32((value_dayColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_dayColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_dayColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21144,7 +21273,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_lunarColor_value)) { valueSerializer.writeInt8(0 as int32) const value_lunarColor_value_0 = value_lunarColor_value as Color - valueSerializer.writeInt32((value_lunarColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_lunarColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_lunarColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21173,7 +21302,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_markLunarColor_value)) { valueSerializer.writeInt8(0 as int32) const value_markLunarColor_value_0 = value_markLunarColor_value as Color - valueSerializer.writeInt32((value_markLunarColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_markLunarColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_markLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21385,7 +21514,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_type_type as int32) if ((RuntimeType.UNDEFINED) != (value_type_type)) { const value_type_value = (value_type as ButtonType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_type_value as ButtonType) as int32)) } const value_stateEffect = value.stateEffect let value_stateEffect_type : int32 = RuntimeType.UNDEFINED @@ -21401,7 +21530,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_buttonStyle_type as int32) if ((RuntimeType.UNDEFINED) != (value_buttonStyle_type)) { const value_buttonStyle_value = (value_buttonStyle as ButtonStyleMode) - valueSerializer.writeInt32((value_buttonStyle_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_buttonStyle_value as ButtonStyleMode) as int32)) } const value_controlSize = value.controlSize let value_controlSize_type : int32 = RuntimeType.UNDEFINED @@ -21417,7 +21546,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_role_type as int32) if ((RuntimeType.UNDEFINED) != (value_role_type)) { const value_role_value = (value_role as ButtonRole) - valueSerializer.writeInt32((value_role_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_role_value as ButtonRole) as int32)) } } writeBadgeParamWithString(value: BadgeParamWithString): void { @@ -21433,7 +21562,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBadgePosition(value_position_value)) { valueSerializer.writeInt8(0 as int32) const value_position_value_0 = value_position_value as BadgePosition - valueSerializer.writeInt32((value_position_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_position_value_0 as BadgePosition) as int32)) } else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21459,7 +21588,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isBadgePosition(value_position_value)) { valueSerializer.writeInt8(0 as int32) const value_position_value_0 = value_position_value as BadgePosition - valueSerializer.writeInt32((value_position_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_position_value_0 as BadgePosition) as int32)) } else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21531,7 +21660,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_style_type as int32) if ((RuntimeType.UNDEFINED) != (value_style_type)) { const value_style_value = (value_style as DialogButtonStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + valueSerializer.writeInt32(((value_style_value as DialogButtonStyle) as int32)) } const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED @@ -21557,7 +21686,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_fontColor_value)) { valueSerializer.writeInt8(0 as int32) const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_fontColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21586,7 +21715,7 @@ export class Serializer extends SerializerBase { if (TypeChecker.isColor(value_backgroundColor_value)) { valueSerializer.writeInt8(0 as int32) const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) + valueSerializer.writeInt32(((value_backgroundColor_value_0 as Color) as int32)) } else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) @@ -21624,7 +21753,7 @@ export class Serializer extends SerializerBase { const value_dismiss = value.dismiss valueSerializer.holdAndWriteCallback(value_dismiss) const value_reason = value.reason - valueSerializer.writeInt32((value_reason.valueOf() as int32)) + valueSerializer.writeInt32(((value_reason as DismissReason) as int32)) } writeSheetInfo(value: SheetInfo): void { let valueSerializer : Serializer = this diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 23a3e7fae5331027135af548c2f5d4c5f8455f21..a686941dfa4e7d37ffcafb30371ba7847b6a1405 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -4,7 +4,7 @@ import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_O import { Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, DialogButtonStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, CheckBoxShape, LineCapStyle, LineJoinStyle, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, DynamicNode, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" @@ -96,7 +96,6 @@ import { Measurable } from "./../ArkMeasurableMaterialized" import { View } from "./../ArkViewMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollDirection, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" -import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { UICommonEvent } from "./../ArkUICommonEventMaterialized" import { EnvPropsOptions, PersistPropsOptions } from "./../ArkCommonTsEtsApiInterfaces" @@ -15851,14 +15850,6 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof StyledStringKey") } } - static isStyledStringValue(value: object|string|number|undefined|null|boolean, duplicated_stub: boolean): boolean { - if ((!duplicated_stub) && (value?.hasOwnProperty("stub"))) { - return true - } - else { - throw new Error("Can not discriminate value typeof StyledStringValue") - } - } static isStyleOptions(value: object|string|number|undefined|null|boolean, duplicated_start: boolean, duplicated_length: boolean, duplicated_styledKey: boolean, duplicated_styledValue: boolean): boolean { if ((!duplicated_styledKey) && (value?.hasOwnProperty("styledKey"))) { return true diff --git a/arkoala-arkts/arkui/src/generated/use_properties.ts b/arkoala-arkts/arkui/src/generated/use_properties.ts deleted file mode 100644 index 5804368ce4c81c71f1f2a877de68517cb9da3c49..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/use_properties.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PeerEventsProperties } from "./peer_events" - -export function UseEventsProperties(properties: PeerEventsProperties) { - -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.d.sts b/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.d.sts index f0c98fa39199843d81f5abcca746a2db8e56f80d..87d7a7f5b3b2c53e71037a95588517e896ea277a 100644 --- a/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.d.sts +++ b/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.d.sts @@ -19,7 +19,7 @@ @memo @BuildLambda("ArkColumn") export declare function ArkColumn( - options?: ColumnOptions | undefined | ColumnOptions | ColumnOptionsV2 | undefined | undefined, + options?: ColumnOptions | undefined, @memo _content?: () => void, ): ArkColumnComponent @@ -28,7 +28,7 @@ export declare function ArkColumn( export declare function ArkColumnImpl( @memo _style: ((attributes: ArkColumnComponent) => void) | undefined, - options?: ColumnOptions | undefined | ColumnOptions | ColumnOptionsV2 | undefined | undefined, + options?: ColumnOptions | undefined, @memo _content?: () => void, ): void diff --git a/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.sts b/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.sts index fda8a9359f6bac7fdf0819a32550112f43d4ab20..c9bdb236a7d298b8f228c3c96a9449cdfa0f11d2 100644 --- a/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.sts +++ b/arkoala-arkts/arkui/src/sts/generated/ArkColumnInterfaces.sts @@ -19,7 +19,7 @@ @memo @BuildLambda("Column") export function Column( - options?: ColumnOptions | undefined | ColumnOptions | ColumnOptionsV2 | undefined | undefined, + options?: ColumnOptions | undefined, @memo content?: () => void, ): ArkColumnComponent { @@ -30,7 +30,7 @@ export function Column( export function ColumnImpl( @memo style: ((attributes: ArkColumnComponent) => void) | undefined, - options?: ColumnOptions | undefined | ColumnOptions | ColumnOptionsV2 | undefined | undefined, + options?: ColumnOptions | undefined, @memo content?: () => void, ): void { diff --git a/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.d.sts b/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.d.sts index 55c8a49dbe59ca9daa79154defe306182b3e689c..feb2fa4c1049bf613ab2a7693d5ff9e0b42d53e4 100644 --- a/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.d.sts +++ b/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.d.sts @@ -19,7 +19,7 @@ @memo @BuildLambda("ArkRow") export declare function ArkRow( - options?: RowOptions | undefined | RowOptions | RowOptionsV2 | undefined | undefined, + options?: RowOptions | undefined, @memo _content?: () => void, ): ArkRowComponent @@ -28,7 +28,7 @@ export declare function ArkRow( export declare function ArkRowImpl( @memo _style: ((attributes: ArkRowComponent) => void) | undefined, - options?: RowOptions | undefined | RowOptions | RowOptionsV2 | undefined | undefined, + options?: RowOptions | undefined, @memo _content?: () => void, ): void diff --git a/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.sts b/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.sts index 9cd9eac1cfe603384050ce045a74bd9779d80298..13489ec749cab6da2ddb2a1e3fc2a56a01e2b92a 100644 --- a/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.sts +++ b/arkoala-arkts/arkui/src/sts/generated/ArkRowInterfaces.sts @@ -19,7 +19,7 @@ @memo @BuildLambda("Row") export function Row( - options?: RowOptions | undefined | RowOptions | RowOptionsV2 | undefined | undefined, + options?: RowOptions | undefined, @memo content?: () => void, ): ArkRowComponent { @@ -30,7 +30,7 @@ export function Row( export function RowImpl( @memo style: ((attributes: ArkRowComponent) => void) | undefined, - options?: RowOptions | undefined | RowOptions | RowOptionsV2 | undefined | undefined, + options?: RowOptions | undefined, @memo content?: () => void, ): void { diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 7b9bd2e58f9f00cc0d8c9c568e12924a1fa6c5e6..ac0d6ab6737236163df5345ac5fe28b326f6d0ab 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -8732,9 +8732,7 @@ declare class UrlStyle { constructor(url: string); readonly url: string; } -declare interface StyledStringValue { - stub: string; -} +declare type StyledStringValue = (TextStyle_styled_string|DecorationStyle|BaselineOffsetStyle|LetterSpacingStyle|TextShadowStyle|GestureStyle|ImageAttachment|ParagraphStyle|LineHeightStyle|UrlStyle|CustomSpan|UserDataSpan|BackgroundColorStyle); declare class MutableStyledString extends StyledString { replaceString(start: number, length: number, other: string): void; insertString(start: number, other: string): void; diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 9b430255d9294004316373c92046f6e319db8918..30f13e54c0a3c4f49c471b6dd2765a85530093ea 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -8804,9 +8804,7 @@ declare class UrlStyle { constructor(url: string); readonly url: string; } -declare interface StyledStringValue { - stub: string; -} +declare type StyledStringValue = (TextStyle_styled_string|DecorationStyle|BaselineOffsetStyle|LetterSpacingStyle|TextShadowStyle|GestureStyle|ImageAttachment|ParagraphStyle|LineHeightStyle|UrlStyle|CustomSpan|UserDataSpan|BackgroundColorStyle); declare class MutableStyledString extends StyledString { replaceString(start: number, length: number, other: string): void; insertString(start: number, other: string): void; diff --git a/arkoala/arkui/src/generated/ArkAbilityComponent.ts b/arkoala/arkui/src/generated/ArkAbilityComponent.ts index 1efbc2f98bd33962e6cf357fcc8e42b4b356b3e6..0e243d2b4aed9bfe4e1513caa1f2e9baa4c0a7ae 100644 --- a/arkoala/arkui/src/generated/ArkAbilityComponent.ts +++ b/arkoala/arkui/src/generated/ArkAbilityComponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { public onConnect(value: (() => void)): this { if (this.checkPriority("onConnect")) { const value_casted = value as ((() => void)) - UseEventsProperties({AbilityComponent_onConnect: value_casted}) this.getPeer()?.onConnectAttribute(value_casted) return this } @@ -85,7 +84,6 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { public onDisconnect(value: (() => void)): this { if (this.checkPriority("onDisconnect")) { const value_casted = value as ((() => void)) - UseEventsProperties({AbilityComponent_onDisconnect: value_casted}) this.getPeer()?.onDisconnectAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts b/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index ad14549299f2acca30cc65f2dfc11fe5eccf1370..caa4516524e6b71612348cf46442482d8c7db808 100644 --- a/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -21,10 +21,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts b/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts index 75c753cc81a324dc83f4c283b9d036959a8c9f95..1db5386a408d45b50f238a424157629e57fef2f1 100644 --- a/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -26,10 +26,11 @@ import { BorderStyle, DialogButtonStyle, Color, ColoringStrategy, Curve, PlayMod import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts index 9be0c10c0f3d4c490073eeee4eb33ad428aabeba..34ea02c5d73f5a9ee17a70f38267469bc9804c60 100644 --- a/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -26,10 +26,11 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterial import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts b/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts index 06b07d4d989765b258dc22b0694eadeca8f3e496..c5e23c605b1d333bd8be5007365fc7ce796dbadb 100644 --- a/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts +++ b/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage, Area, Bias } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { public onSelected(value: ((index: number) => void)): this { if (this.checkPriority("onSelected")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({AlphabetIndexer_onSelected: value_casted}) this.getPeer()?.onSelectedAttribute(value_casted) return this } @@ -211,7 +210,6 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { public onSelect(value: OnAlphabetIndexerSelectCallback): this { if (this.checkPriority("onSelect")) { const value_casted = value as (OnAlphabetIndexerSelectCallback) - UseEventsProperties({AlphabetIndexer_onSelect: value_casted}) this.getPeer()?.onSelectAttribute(value_casted) return this } @@ -221,7 +219,6 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback): this { if (this.checkPriority("onRequestPopupData")) { const value_casted = value as (OnAlphabetIndexerRequestPopupDataCallback) - UseEventsProperties({AlphabetIndexer_onRequestPopupData: value_casted}) this.getPeer()?.onRequestPopupDataAttribute(value_casted) return this } @@ -231,7 +228,6 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback): this { if (this.checkPriority("onPopupSelect")) { const value_casted = value as (OnAlphabetIndexerPopupSelectCallback) - UseEventsProperties({AlphabetIndexer_onPopupSelect: value_casted}) this.getPeer()?.onPopupSelectAttribute(value_casted) return this } @@ -323,7 +319,6 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((index: number) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({AlphabetIndexer__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts b/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 55691b1964c323b7b1df96efdb305bb9a1590f17..119c98bcfd3e16e3a7801fd6b711aaf27a0e6bac 100644 --- a/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -20,10 +20,11 @@ import { AnimateParam, TranslateOptions, FinishCallbackType, ExpectedFrameRateRa import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./ArkAnimationExtenderInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkAnimator.ts b/arkoala/arkui/src/generated/ArkAnimator.ts index 18b91959faf82dbe526da59e4d23c16cb02b5631..ae8b821db243828da589c748d96e3eabf564a720 100644 --- a/arkoala/arkui/src/generated/ArkAnimator.ts +++ b/arkoala/arkui/src/generated/ArkAnimator.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -149,7 +149,6 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({Animator_onStart: value_casted}) this.getPeer()?.onStartAttribute(value_casted) return this } @@ -159,7 +158,6 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { public onPause(value: (() => void)): this { if (this.checkPriority("onPause")) { const value_casted = value as ((() => void)) - UseEventsProperties({Animator_onPause: value_casted}) this.getPeer()?.onPauseAttribute(value_casted) return this } @@ -169,7 +167,6 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { public onRepeat(value: (() => void)): this { if (this.checkPriority("onRepeat")) { const value_casted = value as ((() => void)) - UseEventsProperties({Animator_onRepeat: value_casted}) this.getPeer()?.onRepeatAttribute(value_casted) return this } @@ -179,7 +176,6 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) - UseEventsProperties({Animator_onCancel: value_casted}) this.getPeer()?.onCancelAttribute(value_casted) return this } @@ -189,7 +185,6 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) - UseEventsProperties({Animator_onFinish: value_casted}) this.getPeer()?.onFinishAttribute(value_casted) return this } @@ -199,7 +194,6 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { public onFrame(value: ((index: number) => void)): this { if (this.checkPriority("onFrame")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Animator_onFrame: value_casted}) this.getPeer()?.onFrameAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts index c5e98d8e0e71387d6daeb361e7ea043b5fadb40e..fbed126fbb7a83d298b94dc99b220f82007d4283 100644 --- a/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts index 455807f3f0e49b595f146dfc3131a1d5ef1d79f9..b40e8e4efbdb7ca2f7195883ef187af391a38a26 100644 --- a/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -18,10 +18,11 @@ import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkBadge.ts b/arkoala/arkui/src/generated/ArkBadge.ts index b3b71daf102c075f127d073cdf93e6af3641d3fb..b90988569ba9b533eb7f6645446a197c214d0ebf 100644 --- a/arkoala/arkui/src/generated/ArkBadge.ts +++ b/arkoala/arkui/src/generated/ArkBadge.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBadgePeer } from "./peers/ArkBadgePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts index 48c64848eb651092d62c387090e594b82b3839f3..71c3f52a4a2cdab3734747347e6c5b1540aba36e 100644 --- a/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -19,10 +19,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index 448f59e45294901c869f3ed009b0886151234207..5b97075060291ea5bbe65e7d7592d31797aa80d9 100644 --- a/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -21,10 +21,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -64,7 +65,14 @@ export class BaseGestureEventInternal extends BaseEventInternal implements Mater } private getFingerList_serialize(): Array { const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_getFingerList(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readFingerInfo() + } + const returnResult: Array = buffer + return returnResult } private setFingerList_serialize(fingerList: Array): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkBaseShapeMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseShapeMaterialized.ts index 658fbe3c42a4f2c9db58382034cdf65de7fd2ddc..191bf6ddfe6c8c7436bd7191268509054077144e 100644 --- a/arkoala/arkui/src/generated/ArkBaseShapeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseShapeMaterialized.ts @@ -18,10 +18,11 @@ import { Length, SizeOptions } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts index 51c263adf19feb42ac769ef66b5fd8c4b06f6cfd..9e36083284fd4cc29b4ae7a883ac91c1b1135816 100644 --- a/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts @@ -19,10 +19,11 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkBlank.ts b/arkoala/arkui/src/generated/ArkBlank.ts index 9fa31e53ce5d1a36d22c5cdaf8e2ae6776fa45bf..f843051575c6c413f4b23c12678c88a944ce60ba 100644 --- a/arkoala/arkui/src/generated/ArkBlank.ts +++ b/arkoala/arkui/src/generated/ArkBlank.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts index e730d4a4efa84a507213cb3dcfa3a33aa576bf3c..46aa6da29f4e1d68c2591ec1129ca53697e57929 100644 --- a/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope, EffectDirection } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkButton.ts b/arkoala/arkui/src/generated/ArkButton.ts index bbecab8258c50140a1efe380ccc0260f090eb5d1..e4b44ffb691e967306d69385cdc4506a1575719b 100644 --- a/arkoala/arkui/src/generated/ArkButton.ts +++ b/arkoala/arkui/src/generated/ArkButton.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkCalendar.ts b/arkoala/arkui/src/generated/ArkCalendar.ts index e2d130ca71a2005a1e2575c3d22f904343a2419e..fad5517a563690e201adde46d21addb34c41ce66 100644 --- a/arkoala/arkui/src/generated/ArkCalendar.ts +++ b/arkoala/arkui/src/generated/ArkCalendar.ts @@ -17,11 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" -import { UseEventsProperties } from "./use_properties" import { Axis } from "./ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute, CalendarDay } from "./ArkCalendarInterfaces" import { ResourceColor } from "./ArkUnitsInterfaces" @@ -143,7 +143,6 @@ export class ArkCalendarComponent extends ComponentBase { public onSelectChange(value: ((event: CalendarSelectedDate) => void)): this { if (this.checkPriority("onSelectChange")) { const value_casted = value as (((event: CalendarSelectedDate) => void)) - UseEventsProperties({Calendar_onSelectChange: value_casted}) this.getPeer()?.onSelectChangeAttribute(value_casted) return this } @@ -153,7 +152,6 @@ export class ArkCalendarComponent extends ComponentBase { public onRequestData(value: ((event: CalendarRequestedData) => void)): this { if (this.checkPriority("onRequestData")) { const value_casted = value as (((event: CalendarRequestedData) => void)) - UseEventsProperties({Calendar_onRequestData: value_casted}) this.getPeer()?.onRequestDataAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts index 77d6e237da50351040afa87aaab0ff7ae59fd747..d61dfa1632d6e7e42bfcb69758e5a202efe7fbd4 100644 --- a/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCalendarPicker.ts b/arkoala/arkui/src/generated/ArkCalendarPicker.ts index 513983a88a053d3bfba7695782ecae810931dc71..fdb1e46e1051a3487681ab3db244fc863aae2946 100644 --- a/arkoala/arkui/src/generated/ArkCalendarPicker.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPicker.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -84,7 +84,6 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { public onChange(value: ((parameter: Date) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: Date) => void)) - UseEventsProperties({CalendarPicker_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index f64ca5cd93d0da447835ee5d806b6b42a2c17e23..1889361e7c926067ad60556867add5f799909e19 100644 --- a/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -22,10 +22,11 @@ import { VoidCallback, ResourceColor, Length, BorderRadiuses } from "./ArkUnitsI import { BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCanvas.ts b/arkoala/arkui/src/generated/ArkCanvas.ts index b3f953b607884de2bcc77741c55a43a89f793610..7207db309d9c8e0cbd2cb3c292ef5f70e559d2f7 100644 --- a/arkoala/arkui/src/generated/ArkCanvas.ts +++ b/arkoala/arkui/src/generated/ArkCanvas.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage, Area, Bias, Font, LengthMetricsUnit } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -101,7 +101,6 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { public onReady(value: VoidCallback): this { if (this.checkPriority("onReady")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Canvas_onReady: value_casted}) this.getPeer()?.onReadyAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts index ac4a4be53d36542a1f0ba2679ae4bc020ff6a977..0ad2b23821a9e2a1b7d6b3a2a52c7e3af78d6f5f 100644 --- a/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts index d0f2cc70912a089d3577b3659b9821b86e069458..3546425a703b67079b5e0d2ed6d4b951e77df41d 100644 --- a/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts index d062972a7caa282499d6662867a35ef9389506a1..3224340f09856eb04020db1eff5531673ec447ae 100644 --- a/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -18,10 +18,11 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts index a3cd3fd035067c297174dd0d43b25433a456b23e..aa8a783a771a8d12a051c32fc71da7da947e5491 100644 --- a/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -26,10 +26,11 @@ import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -908,7 +909,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private getLineDash_serialize(): Array { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_getLineDash(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readNumber() as number) + } + const returnResult: Array = buffer + return returnResult } private setLineDash_serialize(segments: Array): void { const thisSerializer: Serializer = Serializer.hold() @@ -949,7 +957,9 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - return new Deserializer(retval.buffer, retval.byteLength).readTextMetrics() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: TextMetrics = retvalDeserializer.readTextMetrics() + return returnResult } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index 063fefe57ce0d2425ab03cf52e0e0248858806b2..d5f1a3193ac4e707f1f61fadac6b898d5f96a27a 100644 --- a/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -31,10 +31,11 @@ import { RenderingContextSettings, RenderingContextSettingsInternal } from "./Ar import { LengthMetricsUnit, Position, Length } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { UIContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCheckbox.ts b/arkoala/arkui/src/generated/ArkCheckbox.ts index 4f6e48bbcd7136bb896b2457727571362943e13e..a70e1d4551b19a4114337da99621d25309d4028c 100644 --- a/arkoala/arkui/src/generated/ArkCheckbox.ts +++ b/arkoala/arkui/src/generated/ArkCheckbox.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -120,7 +120,6 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { public onChange(value: OnCheckboxChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnCheckboxChangeCallback) - UseEventsProperties({Checkbox_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -139,7 +138,6 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { public _onChangeEvent_select(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_select")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Checkbox__onChangeEvent_select: callback_casted}) this.getPeer()?._onChangeEvent_selectAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkCheckboxgroup.ts b/arkoala/arkui/src/generated/ArkCheckboxgroup.ts index b1588a73e5fee454bfaf16ec5e657496fa57baf3..3e27ffac49e92a7cb543e46c82970ab9f0756e71 100644 --- a/arkoala/arkui/src/generated/ArkCheckboxgroup.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxgroup.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -111,7 +111,6 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { public onChange(value: OnCheckboxGroupChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnCheckboxGroupChangeCallback) - UseEventsProperties({CheckboxGroup_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -130,7 +129,6 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { public _onChangeEvent_selectAll(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_selectAll")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({CheckboxGroup__onChangeEvent_selectAll: callback_casted}) this.getPeer()?._onChangeEvent_selectAllAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts b/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index a0eeb2b93347a9f27910629f2fa00aeb455b68b8..30cadaf2af4dff9f2642bd9e4ec5b70dc4197a6f 100644 --- a/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCircle.ts b/arkoala/arkui/src/generated/ArkCircle.ts index 97bcfcb2282118778e5b4c5697415f9f6747bb3b..95e3ca5f7bf7b942903e02d62dd5ed5b71057f00 100644 --- a/arkoala/arkui/src/generated/ArkCircle.ts +++ b/arkoala/arkui/src/generated/ArkCircle.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkCirclePeer } from "./peers/ArkCirclePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkCircleShapeMaterialized.ts b/arkoala/arkui/src/generated/ArkCircleShapeMaterialized.ts index 9613ab02a4dbaf7c729d19082b45ca82a5e2efcc..9649db07bd932d8a2c623ca12c15c0c379754987 100644 --- a/arkoala/arkui/src/generated/ArkCircleShapeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCircleShapeMaterialized.ts @@ -20,10 +20,11 @@ import { ShapeSize } from "./ArkArkuiExternalInterfaces" import { Position, ResourceColor, Length, SizeOptions } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts b/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts index 96b60c3c4aa9ad55172fe7008c1ff1e7cb2a4243..6e00ce9fd6b3b40e599b4ab264ab87c474e22496 100644 --- a/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts @@ -20,10 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index bb614cb746f0bba326888830b0d025ddaabd440c..1b69fa6840ceb1e94c976b5ca72f5a8f175bc11d 100644 --- a/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts b/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts index cd709ca83d2178a9607c8784110377f3838f28f2..b817bdeeef167bf154a84d0fa2ad187270563079 100644 --- a/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkColorMetricsMaterialized.ts b/arkoala/arkui/src/generated/ArkColorMetricsMaterialized.ts index d52f0fe0e561473b9b9b44b2c1801a7a9a13e7b3..2a3658db3b059550edfa612398c6db7116f3409e 100644 --- a/arkoala/arkui/src/generated/ArkColorMetricsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkColorMetricsMaterialized.ts @@ -19,10 +19,11 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkColumn.ts b/arkoala/arkui/src/generated/ArkColumn.ts index 041b31f4b355fb8c94f4150dde21cf3e315bfaad..1fe62360062108b340d35d301151de011af29ee1 100644 --- a/arkoala/arkui/src/generated/ArkColumn.ts +++ b/arkoala/arkui/src/generated/ArkColumn.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkColumnSplit.ts b/arkoala/arkui/src/generated/ArkColumnSplit.ts index 9cf0433db0356a963f0628a427b7b7569b5fb601..19244a6352661098f42116a602d095cb78d2320e 100644 --- a/arkoala/arkui/src/generated/ArkColumnSplit.ts +++ b/arkoala/arkui/src/generated/ArkColumnSplit.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkCommon.ts b/arkoala/arkui/src/generated/ArkCommon.ts index e6ae51afcb805b279c3200c9eb1150a62945154a..a21a10f66347e958a0d42100358acd2a94acae9b 100644 --- a/arkoala/arkui/src/generated/ArkCommon.ts +++ b/arkoala/arkui/src/generated/ArkCommon.ts @@ -17,11 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" -import { UseEventsProperties } from "./use_properties" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" import { Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" @@ -146,7 +146,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onChildTouchTest(value: ((value: Array) => TouchResult)): this { if (this.checkPriority("onChildTouchTest")) { const value_casted = value as (((value: Array) => TouchResult)) - UseEventsProperties({CommonMethod_onChildTouchTest: value_casted}) this.getPeer()?.onChildTouchTestAttribute(value_casted) return this } @@ -420,14 +419,12 @@ export class ArkCommonMethodComponent extends ComponentBase { const distanceThreshold_type = runtimeType(distanceThreshold) if (RuntimeType.UNDEFINED == distanceThreshold_type) { const value_casted = event as (((event: ClickEvent) => void)) - UseEventsProperties({CommonMethod_onClick0: value_casted}) this.getPeer()?.onClick0Attribute(value_casted) return this } if (RuntimeType.NUMBER == distanceThreshold_type) { const event_casted = event as (((event: ClickEvent) => void)) const distanceThreshold_casted = distanceThreshold as (number) - UseEventsProperties({CommonMethod_onClick1: event_casted}) this.getPeer()?.onClick1Attribute(event_casted, distanceThreshold_casted) return this } @@ -439,7 +436,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onHover(value: ((isHover: boolean, event: HoverEvent) => void)): this { if (this.checkPriority("onHover")) { const value_casted = value as (((isHover: boolean, event: HoverEvent) => void)) - UseEventsProperties({CommonMethod_onHover: value_casted}) this.getPeer()?.onHoverAttribute(value_casted) return this } @@ -449,7 +445,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onAccessibilityHover(value: AccessibilityCallback): this { if (this.checkPriority("onAccessibilityHover")) { const value_casted = value as (AccessibilityCallback) - UseEventsProperties({CommonMethod_onAccessibilityHover: value_casted}) this.getPeer()?.onAccessibilityHoverAttribute(value_casted) return this } @@ -468,7 +463,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onMouse(value: ((event: MouseEvent) => void)): this { if (this.checkPriority("onMouse")) { const value_casted = value as (((event: MouseEvent) => void)) - UseEventsProperties({CommonMethod_onMouse: value_casted}) this.getPeer()?.onMouseAttribute(value_casted) return this } @@ -478,7 +472,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onTouch(value: ((event: TouchEvent) => void)): this { if (this.checkPriority("onTouch")) { const value_casted = value as (((event: TouchEvent) => void)) - UseEventsProperties({CommonMethod_onTouch: value_casted}) this.getPeer()?.onTouchAttribute(value_casted) return this } @@ -488,7 +481,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onKeyEvent(value: ((event: KeyEvent) => void)): this { if (this.checkPriority("onKeyEvent")) { const value_casted = value as (((event: KeyEvent) => void)) - UseEventsProperties({CommonMethod_onKeyEvent: value_casted}) this.getPeer()?.onKeyEventAttribute(value_casted) return this } @@ -498,7 +490,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onKeyPreIme(value: ((parameter: KeyEvent) => boolean)): this { if (this.checkPriority("onKeyPreIme")) { const value_casted = value as (((parameter: KeyEvent) => boolean)) - UseEventsProperties({CommonMethod_onKeyPreIme: value_casted}) this.getPeer()?.onKeyPreImeAttribute(value_casted) return this } @@ -517,7 +508,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onFocus(value: (() => void)): this { if (this.checkPriority("onFocus")) { const value_casted = value as ((() => void)) - UseEventsProperties({CommonMethod_onFocus: value_casted}) this.getPeer()?.onFocusAttribute(value_casted) return this } @@ -527,7 +517,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onBlur(value: (() => void)): this { if (this.checkPriority("onBlur")) { const value_casted = value as ((() => void)) - UseEventsProperties({CommonMethod_onBlur: value_casted}) this.getPeer()?.onBlurAttribute(value_casted) return this } @@ -793,7 +782,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onAppear(value: (() => void)): this { if (this.checkPriority("onAppear")) { const value_casted = value as ((() => void)) - UseEventsProperties({CommonMethod_onAppear: value_casted}) this.getPeer()?.onAppearAttribute(value_casted) return this } @@ -803,7 +791,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDisAppear(value: (() => void)): this { if (this.checkPriority("onDisAppear")) { const value_casted = value as ((() => void)) - UseEventsProperties({CommonMethod_onDisAppear: value_casted}) this.getPeer()?.onDisAppearAttribute(value_casted) return this } @@ -813,7 +800,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onAttach(value: (() => void)): this { if (this.checkPriority("onAttach")) { const value_casted = value as ((() => void)) - UseEventsProperties({CommonMethod_onAttach: value_casted}) this.getPeer()?.onAttachAttribute(value_casted) return this } @@ -823,7 +809,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDetach(value: (() => void)): this { if (this.checkPriority("onDetach")) { const value_casted = value as ((() => void)) - UseEventsProperties({CommonMethod_onDetach: value_casted}) this.getPeer()?.onDetachAttribute(value_casted) return this } @@ -833,7 +818,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onAreaChange(value: ((oldValue: Area, newValue: Area) => void)): this { if (this.checkPriority("onAreaChange")) { const value_casted = value as (((oldValue: Area, newValue: Area) => void)) - UseEventsProperties({CommonMethod_onAreaChange: value_casted}) this.getPeer()?.onAreaChangeAttribute(value_casted) return this } @@ -1005,7 +989,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDragStart(value: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo)): this { if (this.checkPriority("onDragStart")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo)) - UseEventsProperties({CommonMethod_onDragStart: value_casted}) this.getPeer()?.onDragStartAttribute(value_casted) return this } @@ -1015,7 +998,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDragEnter(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragEnter")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) - UseEventsProperties({CommonMethod_onDragEnter: value_casted}) this.getPeer()?.onDragEnterAttribute(value_casted) return this } @@ -1025,7 +1007,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDragMove(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragMove")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) - UseEventsProperties({CommonMethod_onDragMove: value_casted}) this.getPeer()?.onDragMoveAttribute(value_casted) return this } @@ -1035,7 +1016,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDragLeave(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragLeave")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) - UseEventsProperties({CommonMethod_onDragLeave: value_casted}) this.getPeer()?.onDragLeaveAttribute(value_casted) return this } @@ -1045,7 +1025,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDrop(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDrop")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) - UseEventsProperties({CommonMethod_onDrop: value_casted}) this.getPeer()?.onDropAttribute(value_casted) return this } @@ -1055,7 +1034,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onDragEnd(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragEnd")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) - UseEventsProperties({CommonMethod_onDragEnd: value_casted}) this.getPeer()?.onDragEndAttribute(value_casted) return this } @@ -1092,7 +1070,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onPreDrag(value: ((parameter: PreDragStatus) => void)): this { if (this.checkPriority("onPreDrag")) { const value_casted = value as (((parameter: PreDragStatus) => void)) - UseEventsProperties({CommonMethod_onPreDrag: value_casted}) this.getPeer()?.onPreDragAttribute(value_casted) return this } @@ -1358,7 +1335,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityVirtualNode(value: CustomBuilder): this { if (this.checkPriority("accessibilityVirtualNode")) { const value_casted = value as (CustomBuilder) - UseEventsProperties({CommonMethod_accessibilityVirtualNode: value_casted}) this.getPeer()?.accessibilityVirtualNodeAttribute(value_casted) return this } @@ -1431,7 +1407,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): this { if (this.checkPriority("onGestureJudgeBegin")) { const value_casted = value as (((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)) - UseEventsProperties({CommonMethod_onGestureJudgeBegin: value_casted}) this.getPeer()?.onGestureJudgeBeginAttribute(value_casted) return this } @@ -1444,14 +1419,12 @@ export class ArkCommonMethodComponent extends ComponentBase { const exposeInnerGesture_type = runtimeType(exposeInnerGesture) if (RuntimeType.UNDEFINED == exposeInnerGesture_type) { const value_casted = callback_ as (GestureRecognizerJudgeBeginCallback) - UseEventsProperties({CommonMethod_onGestureRecognizerJudgeBegin0: value_casted}) this.getPeer()?.onGestureRecognizerJudgeBegin0Attribute(value_casted) return this } if (RuntimeType.BOOLEAN == exposeInnerGesture_type) { const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback) const exposeInnerGesture_casted = exposeInnerGesture as (boolean) - UseEventsProperties({CommonMethod_onGestureRecognizerJudgeBegin1: callback__casted}) this.getPeer()?.onGestureRecognizerJudgeBegin1Attribute(callback__casted, exposeInnerGesture_casted) return this } @@ -1463,7 +1436,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback): this { if (this.checkPriority("shouldBuiltInRecognizerParallelWith")) { const value_casted = value as (ShouldBuiltInRecognizerParallelWithCallback) - UseEventsProperties({CommonMethod_shouldBuiltInRecognizerParallelWith: value_casted}) this.getPeer()?.shouldBuiltInRecognizerParallelWithAttribute(value_casted) return this } @@ -1482,7 +1454,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onTouchIntercept(value: ((parameter: TouchEvent) => HitTestMode)): this { if (this.checkPriority("onTouchIntercept")) { const value_casted = value as (((parameter: TouchEvent) => HitTestMode)) - UseEventsProperties({CommonMethod_onTouchIntercept: value_casted}) this.getPeer()?.onTouchInterceptAttribute(value_casted) return this } @@ -1492,7 +1463,6 @@ export class ArkCommonMethodComponent extends ComponentBase { public onSizeChange(value: SizeChangeCallback): this { if (this.checkPriority("onSizeChange")) { const value_casted = value as (SizeChangeCallback) - UseEventsProperties({CommonMethod_onSizeChange: value_casted}) this.getPeer()?.onSizeChangeAttribute(value_casted) return this } @@ -1523,7 +1493,6 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("background")) { const builder_casted = builder as (CustomBuilder) const options_casted = options as ({ align?: Alignment } | undefined) - UseEventsProperties({CommonMethod_background: builder_casted}) this.getPeer()?.backgroundAttribute(builder_casted, options_casted) return this } @@ -1763,7 +1732,6 @@ export class ArkCommonMethodComponent extends ComponentBase { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (ResponseType) const options_casted = options as (ContextMenuOptions | undefined) - UseEventsProperties({CommonMethod_bindContextMenu0: content_casted}) this.getPeer()?.bindContextMenu0Attribute(content_casted, responseType_casted, options_casted) return this } @@ -1771,7 +1739,6 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShown_casted = content as (boolean) const content_casted = responseType as (CustomBuilder) const options_casted = options as (ContextMenuOptions | undefined) - UseEventsProperties({CommonMethod_bindContextMenu1: content_casted}) this.getPeer()?.bindContextMenu1Attribute(isShown_casted, content_casted, options_casted) return this } @@ -1789,7 +1756,6 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const type_casted = type as (ModalTransition | undefined) - UseEventsProperties({CommonMethod_bindContentCover0: builder_casted}) this.getPeer()?.bindContentCover0Attribute(isShow_casted, builder_casted, type_casted) return this } @@ -1797,7 +1763,6 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const options_casted = type as (ContentCoverOptions | undefined) - UseEventsProperties({CommonMethod_bindContentCover1: builder_casted}) this.getPeer()?.bindContentCover1Attribute(isShow_casted, builder_casted, options_casted) return this } @@ -1811,7 +1776,6 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const options_casted = options as (SheetOptions | undefined) - UseEventsProperties({CommonMethod_bindSheet: builder_casted}) this.getPeer()?.bindSheetAttribute(isShow_casted, builder_casted, options_casted) return this } @@ -1822,7 +1786,6 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onVisibleAreaChange")) { const ratios_casted = ratios as (Array) const event_casted = event as (VisibleAreaChangeCallback) - UseEventsProperties({CommonMethod_onVisibleAreaChange: event_casted}) this.getPeer()?.onVisibleAreaChangeAttribute(ratios_casted, event_casted) return this } @@ -2054,7 +2017,6 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({ScrollableCommonMethod_onScroll: value_casted}) this.getPeer()?.onScrollAttribute(value_casted) return this } @@ -2073,7 +2035,6 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent public onDidScroll(value: ScrollOnScrollCallback): this { if (this.checkPriority("onDidScroll")) { const value_casted = value as (ScrollOnScrollCallback) - UseEventsProperties({ScrollableCommonMethod_onDidScroll: value_casted}) this.getPeer()?.onDidScrollAttribute(value_casted) return this } @@ -2083,7 +2044,6 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({ScrollableCommonMethod_onReachStart: value_casted}) this.getPeer()?.onReachStartAttribute(value_casted) return this } @@ -2093,7 +2053,6 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) - UseEventsProperties({ScrollableCommonMethod_onReachEnd: value_casted}) this.getPeer()?.onReachEndAttribute(value_casted) return this } @@ -2103,7 +2062,6 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({ScrollableCommonMethod_onScrollStart: value_casted}) this.getPeer()?.onScrollStartAttribute(value_casted) return this } @@ -2113,7 +2071,6 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) - UseEventsProperties({ScrollableCommonMethod_onScrollStop: value_casted}) this.getPeer()?.onScrollStopAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts index c87ec2d39e05a0d849f844ca7cc9481ecb68fcf6..1e015d3f3112adb7b62770caedcea5972351fdf0 100644 --- a/arkoala/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts @@ -1086,6 +1086,8 @@ export interface OnWillScrollCallback { } export type OnScrollCallback = (scrollOffset: number, scrollState: ScrollState) => void; export type OnMoveHandler = (from: number, to: number) => void; +export interface DynamicNode { +} export interface EdgeEffectOptions { alwaysEnabled: boolean; } diff --git a/arkoala/arkui/src/generated/ArkCommonShapeMaterialized.ts b/arkoala/arkui/src/generated/ArkCommonShapeMaterialized.ts index 42023813a6647bb65146688d31a54da61e10ad85..2874ad8b1a3b0d45459d514eb5e0bf126ff86e05 100644 --- a/arkoala/arkui/src/generated/ArkCommonShapeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCommonShapeMaterialized.ts @@ -19,10 +19,11 @@ import { Position, ResourceColor, Length } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkComponent3d.ts b/arkoala/arkui/src/generated/ArkComponent3d.ts index 91bb30233a9fe7ae862bd9fc57a9cf1748412db6..16c66f5b12bf25be1d5f16e667b8e35f7aff3eeb 100644 --- a/arkoala/arkui/src/generated/ArkComponent3d.ts +++ b/arkoala/arkui/src/generated/ArkComponent3d.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts b/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts index b6e94857766616196b5683bbaf093ba12f746d7e..f0806514f2a3bb5aa9f26d98bce05f5b3a1af513 100644 --- a/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { MessageLevel } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkContainerSpan.ts b/arkoala/arkui/src/generated/ArkContainerSpan.ts index 2b69b1c082e71b3e66787a76475a248d97e83bc6..1fbc3d7dc2649debde867bbe3ca9e513d0e4d48d 100644 --- a/arkoala/arkui/src/generated/ArkContainerSpan.ts +++ b/arkoala/arkui/src/generated/ArkContainerSpan.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { AttributeModifier } from "./../handwritten" diff --git a/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts b/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts index f929d4bfaf1acfd5c65de22f4578a00e76e6d799..2206fc8622af7bab5baf63dad43c04e5289c9c93 100644 --- a/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts index 7383a99692cbd564579d8829184d3715a66563a4..62e495d63c566aeb25a82b0ce3f0d783b22b5ea1 100644 --- a/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -19,10 +19,11 @@ import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCounter.ts b/arkoala/arkui/src/generated/ArkCounter.ts index 2698d32c70feccf4a3878c4f913c78e44c42c690..ed9760c8c013e40e6cc5f6e3938fb2945d978547 100644 --- a/arkoala/arkui/src/generated/ArkCounter.ts +++ b/arkoala/arkui/src/generated/ArkCounter.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -74,7 +74,6 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { public onInc(value: VoidCallback): this { if (this.checkPriority("onInc")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Counter_onInc: value_casted}) this.getPeer()?.onIncAttribute(value_casted) return this } @@ -84,7 +83,6 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { public onDec(value: VoidCallback): this { if (this.checkPriority("onDec")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Counter_onDec: value_casted}) this.getPeer()?.onDecAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index 4ccdc2ed11be4cf751a4539679771e5ec50c194f..09b1714f4ed282c43c4fbfaedfa183e47dbfbb94 100644 --- a/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -24,10 +24,11 @@ import { BorderStyle, Curve, PlayMode, Color, ColoringStrategy } from "./ArkEnum import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { DismissDialogAction } from "./ArkActionSheetInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts index 1dbc8be37e35ec3f4ebc8fb63a62a6b6ec335807..c842555a678238a44a2992dc2c5bdbc8b897237e 100644 --- a/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -18,10 +18,11 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -67,7 +68,9 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval.buffer, retval.byteLength).readCustomSpanMetrics() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: CustomSpanMetrics = retvalDeserializer.readCustomSpanMetrics() + return returnResult } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkDataPanel.ts b/arkoala/arkui/src/generated/ArkDataPanel.ts index 021be7333375e2acb87853153f42ba13f8964e08..0ca4a6c92dcb268912287c343a666e6789b290ed 100644 --- a/arkoala/arkui/src/generated/ArkDataPanel.ts +++ b/arkoala/arkui/src/generated/ArkDataPanel.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index 406790ab56c997b3e6e989e32feee36bcf57f9b6..f3ee009964b7903276094f760ef573ed12e9d7d2 100644 --- a/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDatePicker.ts b/arkoala/arkui/src/generated/ArkDatePicker.ts index 40e3f4486b314b31bc1a3b4c8b75dd4e62e6d560..8b8046e541250eb94f26c509220614867abcd5c0 100644 --- a/arkoala/arkui/src/generated/ArkDatePicker.ts +++ b/arkoala/arkui/src/generated/ArkDatePicker.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -111,7 +111,6 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { public onChange(value: ((value: DatePickerResult) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: DatePickerResult) => void)) - UseEventsProperties({DatePicker_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -121,7 +120,6 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { public onDateChange(value: ((parameter: Date) => void)): this { if (this.checkPriority("onDateChange")) { const value_casted = value as (((parameter: Date) => void)) - UseEventsProperties({DatePicker_onDateChange: value_casted}) this.getPeer()?.onDateChangeAttribute(value_casted) return this } @@ -131,7 +129,6 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((parameter: Date) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: Date) => void)) - UseEventsProperties({DatePicker__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index 9f18951ec12f4c68ebfd1123dc7587c7f96a1e1d..ff350852391707366b501bc09e98a0cea57ef83a 100644 --- a/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -24,10 +24,11 @@ import { DateTimeOptions } from "./ArkTimePickerInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts index c3586daa2660aebe1db2d29e2fe100dbfcd7e2b6..f4082f766e292501015dd504b7b19bfb77c50c9c 100644 --- a/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -20,10 +20,11 @@ import { TextDecorationType, TextDecorationStyle, Color } from "./ArkEnumsInterf import { ResourceColor } from "./ArkUnitsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts index 3812ad0041a73a36b3152b3758747e9d15d81cf9..7d71c4674cdecb95ab61cedabfbce2ad5333883e 100644 --- a/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDivider.ts b/arkoala/arkui/src/generated/ArkDivider.ts index f1676132c05bc22e1a358752ebd8090d0a50ccdf..7a2076dc0b7313ad4a2a90d72dc215b87dc9e6a5 100644 --- a/arkoala/arkui/src/generated/ArkDivider.ts +++ b/arkoala/arkui/src/generated/ArkDivider.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDividerPeer } from "./peers/ArkDividerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts index 70dbb60a7977070cb1ca63c4fed908f15a5c810b..fdf06c98e6710c1d395ecec924dc1260adb14713 100644 --- a/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts @@ -20,10 +20,11 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfa import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" import { Length } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -178,7 +179,9 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readSummary() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: Summary = retvalDeserializer.readSummary() + return returnResult } private setResult_serialize(dragResult: DragResult): void { ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, dragResult) @@ -189,7 +192,9 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readRectangle() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: Rectangle = retvalDeserializer.readRectangle() + return returnResult } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts index 9da92aae4ec166c9f1e48d1ce7d03de53835c532..05c0335594d1acf8016257794674a16ecd6acbba 100644 --- a/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { DrawContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index 8e72f3f16f83a4edd60e267aba7de55c84223640..57a41ac5e98dd076a16b6e0becaa3ad13fda9f91 100644 --- a/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index e5ec07ced1f8803de8528bb4ada208600acd8806..cf677dbffa1cf99c2e82a97050964c67abfdb856 100644 --- a/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -20,10 +20,11 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts deleted file mode 100644 index 6d09c48b99a24046af88dfc10fdf8137fdd27133..0000000000000000000000000000000000000000 --- a/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts +++ /dev/null @@ -1,67 +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 { OnMoveHandler } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" -import { unsafeCast, int32, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class DynamicNodeInternal { - public static fromPtr(ptr: KPointer): DynamicNode { - const obj: DynamicNode = new DynamicNode() - obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) - return obj - } -} -export class DynamicNode implements MaterializedBase { - peer?: Finalizable | undefined - public getPeer(): Finalizable | undefined { - return this.peer - } - static ctor_dynamicnode(): KPointer { - const retval = ArkUIGeneratedNativeModule._DynamicNode_ctor() - return retval - } - constructor() { - const ctorPtr: KPointer = DynamicNode.ctor_dynamicnode() - this.peer = new Finalizable(ctorPtr, DynamicNode.getFinalizer()) - } - static getFinalizer(): KPointer { - return ArkUIGeneratedNativeModule._DynamicNode_getFinalizer() - } - public onMove(handler?: OnMoveHandler): T { - const handler_casted = handler as (OnMoveHandler | undefined) - return this.onMove_serialize(handler_casted) - } - private onMove_serialize(handler?: OnMoveHandler): T { - const thisSerializer: Serializer = Serializer.hold() - let handler_type: int32 = RuntimeType.UNDEFINED - handler_type = runtimeType(handler) - thisSerializer.writeInt8(handler_type) - if ((RuntimeType.UNDEFINED) != (handler_type)) { - const handler_value = handler! - thisSerializer.holdAndWriteCallback(handler_value) - } - const retval = ArkUIGeneratedNativeModule._DynamicNode_onMove(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - throw new Error("Object deserialization is not implemented.") - } -} diff --git a/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts b/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index 6c1b7f95e3012adc39f35b9fb47f576df5e52180..43602020da383eda1194fd0ea286f6d2d879df76 100644 --- a/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -20,10 +20,11 @@ import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" import { ResourceStr } from "./ArkUnitsInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./ArkTextMenuItemIdMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -65,7 +66,14 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions } const retval = ArkUIGeneratedNativeModule._EditMenuOptions_onCreateMenu(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTextMenuItem() + } + const returnResult: Array = buffer + return returnResult } private onMenuItemClick_serialize(menuItem: TextMenuItem, range: TextRange): boolean { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkEffectComponent.ts b/arkoala/arkui/src/generated/ArkEffectComponent.ts index 1a8e97d8383b0444e08ada4d5e9cf56de526db37..85771c3295b8f48ea38e28d7e87f7b68ef576077 100644 --- a/arkoala/arkui/src/generated/ArkEffectComponent.ts +++ b/arkoala/arkui/src/generated/ArkEffectComponent.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkEllipse.ts b/arkoala/arkui/src/generated/ArkEllipse.ts index eb0ec26c83c4876ed56f6b04e9478b6369724b5d..01a79995757c0e40f0b15f175ededfaeafa0edcb 100644 --- a/arkoala/arkui/src/generated/ArkEllipse.ts +++ b/arkoala/arkui/src/generated/ArkEllipse.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkEllipseShapeMaterialized.ts b/arkoala/arkui/src/generated/ArkEllipseShapeMaterialized.ts index 7d8447b3abf9b370c14acdebcfaa9d64a41357f3..1d1dd64782cbe4d7efa9bd42d1405bcca237ecbc 100644 --- a/arkoala/arkui/src/generated/ArkEllipseShapeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEllipseShapeMaterialized.ts @@ -20,10 +20,11 @@ import { ShapeSize } from "./ArkArkuiExternalInterfaces" import { Position, ResourceColor, Length, SizeOptions } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts b/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts index 009e48a4a69640e2a81b2bfe3ac0ee586ed41fb5..69e0c21465034ff4d8e411b96f9e578ab01a76f3 100644 --- a/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts +++ b/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -76,7 +76,6 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { public onTerminated(value: ((parameter: TerminationInfo) => void)): this { if (this.checkPriority("onTerminated")) { const value_casted = value as (((parameter: TerminationInfo) => void)) - UseEventsProperties({EmbeddedComponent_onTerminated: value_casted}) this.getPeer()?.onTerminatedAttribute(value_casted) return this } @@ -86,7 +85,6 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { public onError(value: ErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ErrorCallback) - UseEventsProperties({EmbeddedComponent_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts b/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 001dfc5b368477ca84a5775caafea536cae53bde..74f5d434ef90737bea0e36a31a3a8557c7f7ff00 100644 --- a/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -20,10 +20,11 @@ import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts b/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts index c5ee14868fd4af3031e1a193aec9e0c893c41ab7..fa341c65c0a1fffed43438b180d0596390906b85 100644 --- a/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index 74657e1eddb0281c9f460b0be7ed8f931ca4fc7f..a173015bbcc6190d9b0478205f38b215c0e07a31 100644 --- a/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts b/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index 1707f19cb36fec870480b94fa720e956a05b950c..d12aedc2ebfd799a078556cda68796067eb526cf 100644 --- a/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { FileSelectorMode } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -69,7 +70,14 @@ export class FileSelectorParam implements MaterializedBase { } private getAcceptType_serialize(): Array { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_getAcceptType(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult: Array = buffer + return returnResult } private isCapture_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_isCapture(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts b/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index 2ca3b559e0a80c954672667f76d0673607ffbbf1..20fd80dc0deb317451640e98062341b0e161c591 100644 --- a/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkFlex.ts b/arkoala/arkui/src/generated/ArkFlex.ts index bd5d28657e5a87d6ff3ea238b784822e28ba8fc4..b005ab6049ff4d8385fc2349e5c46958b9dfad0f 100644 --- a/arkoala/arkui/src/generated/ArkFlex.ts +++ b/arkoala/arkui/src/generated/ArkFlex.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlexPeer } from "./peers/ArkFlexPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkFlowItem.ts b/arkoala/arkui/src/generated/ArkFlowItem.ts index caa8cd22d47ade1e1a98ce573d47543334fbbac7..41c60c4cfabb9ece7c6a921dccdad9c58a51d8e0 100644 --- a/arkoala/arkui/src/generated/ArkFlowItem.ts +++ b/arkoala/arkui/src/generated/ArkFlowItem.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkFolderStack.ts b/arkoala/arkui/src/generated/ArkFolderStack.ts index 16f7b1ed972df0ad934806f403509332521b8d92..48a4db42d18e370f39a8e82e1dc0f2751b5e123b 100644 --- a/arkoala/arkui/src/generated/ArkFolderStack.ts +++ b/arkoala/arkui/src/generated/ArkFolderStack.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -84,7 +84,6 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { public onFolderStateChange(value: OnFoldStatusChangeCallback): this { if (this.checkPriority("onFolderStateChange")) { const value_casted = value as (OnFoldStatusChangeCallback) - UseEventsProperties({FolderStack_onFolderStateChange: value_casted}) this.getPeer()?.onFolderStateChangeAttribute(value_casted) return this } @@ -94,7 +93,6 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { public onHoverStatusChange(value: OnHoverStatusChangeCallback): this { if (this.checkPriority("onHoverStatusChange")) { const value_casted = value as (OnHoverStatusChangeCallback) - UseEventsProperties({FolderStack_onHoverStatusChange: value_casted}) this.getPeer()?.onHoverStatusChangeAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkFormComponent.ts b/arkoala/arkui/src/generated/ArkFormComponent.ts index 0a9f62087e6feef47e1713e04c81e89a4889410b..e3358681b81dcf9c863659006a8277741aa62cf6 100644 --- a/arkoala/arkui/src/generated/ArkFormComponent.ts +++ b/arkoala/arkui/src/generated/ArkFormComponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -120,7 +120,6 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { public onAcquired(value: ((parameter: FormCallbackInfo) => void)): this { if (this.checkPriority("onAcquired")) { const value_casted = value as (((parameter: FormCallbackInfo) => void)) - UseEventsProperties({FormComponent_onAcquired: value_casted}) this.getPeer()?.onAcquiredAttribute(value_casted) return this } @@ -130,7 +129,6 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { public onError(value: ((info: { errcode: number, msg: string }) => void)): this { if (this.checkPriority("onError")) { const value_casted = value as (((info: { errcode: number, msg: string }) => void)) - UseEventsProperties({FormComponent_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } @@ -140,7 +138,6 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { public onRouter(value: ((info: any) => void)): this { if (this.checkPriority("onRouter")) { const value_casted = value as (((info: any) => void)) - UseEventsProperties({FormComponent_onRouter: value_casted}) this.getPeer()?.onRouterAttribute(value_casted) return this } @@ -150,7 +147,6 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { public onUninstall(value: ((parameter: FormCallbackInfo) => void)): this { if (this.checkPriority("onUninstall")) { const value_casted = value as (((parameter: FormCallbackInfo) => void)) - UseEventsProperties({FormComponent_onUninstall: value_casted}) this.getPeer()?.onUninstallAttribute(value_casted) return this } @@ -160,7 +156,6 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { public onLoad(value: (() => void)): this { if (this.checkPriority("onLoad")) { const value_casted = value as ((() => void)) - UseEventsProperties({FormComponent_onLoad: value_casted}) this.getPeer()?.onLoadAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkFormLink.ts b/arkoala/arkui/src/generated/ArkFormLink.ts index fb8837fd8642f53c88212085f6011273c30b5354..9a0b1c0e698ba08d5fa9f6eece62e57cde610482 100644 --- a/arkoala/arkui/src/generated/ArkFormLink.ts +++ b/arkoala/arkui/src/generated/ArkFormLink.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts index 06d2f32396f3b63b94b9beb1c8adbfbb1e462ea9..2eef33d37ccf4d935bb5fd5949e9119602404f43 100644 --- a/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -18,10 +18,11 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -160,6 +161,8 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readPosition() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: Position = retvalDeserializer.readPosition() + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts index 62d582a0c16ec7b13ea8038060485f0e9a742a60..9711884c5ac25ed9020b127ddf395bb08cc7e2c8 100644 --- a/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts index 1856f46d618f39ddd1a0f4d37a92f09003d75974..df267b515a538aaadd08465ce4f9697ab1c8ca8e 100644 --- a/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkGauge.ts b/arkoala/arkui/src/generated/ArkGauge.ts index 05b43cbbe5e4cc374bfdcec2643318eabc1924c0..106c33216bf23fd6bdc8a0a8c9fc910b93ed8209 100644 --- a/arkoala/arkui/src/generated/ArkGauge.ts +++ b/arkoala/arkui/src/generated/ArkGauge.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -122,7 +122,6 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { public description(value: CustomBuilder): this { if (this.checkPriority("description")) { const value_casted = value as (CustomBuilder) - UseEventsProperties({Gauge_description: value_casted}) this.getPeer()?.descriptionAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts index 669568da18df0ae02726101b00605e19da87c63f..289ba7c013a8e9b4bef3865119adf532888cf65c 100644 --- a/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -21,10 +21,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -236,7 +237,14 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali } private getFingerList_serialize(): Array { const retval = ArkUIGeneratedNativeModule._GestureEvent_getFingerList(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readFingerInfo() + } + const returnResult: Array = buffer + return returnResult } private setFingerList_serialize(fingerList: Array): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts index 031ae5846a57d340b4a19e50d3b663d930048bd1..4846174bd79428afab1969fab2247472a7ae53a7 100644 --- a/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -18,10 +18,11 @@ import { UIGestureEvent, SourceTool } from "./ArkCommonInterfaces" import { GestureHandler, GesturePriority, GestureMask, GestureInterface } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index 008ee792e9393a4a3dd1e6363dc3465f62d62ff0..e71d1576bf1c3e6435d1cbe92cb4360774d056c6 100644 --- a/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -19,10 +19,11 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts index d2c082c4cb3af1d3141e7bed40ada2723118a94f..c074071b27d93dc022ed21f2b2684966e5a4df05 100644 --- a/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -24,10 +24,11 @@ import { Area, Length, Position } from "./ArkUnitsInterfaces" import { GestureEvent, GestureEventInternal } from "./ArkGestureEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index fecb9a6b9db4350cb94d4962d25ab03bf29fbaae..446b3c4a66e21fe48cb2e60894a770df2dc67a6c 100644 --- a/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -18,10 +18,11 @@ import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 70545c3557e394efddf676be1b5341c18ba902b9..0dbfabba9ee85ab1595bb831a96dc47db0cc830e 100644 --- a/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts index 5bc5f208a4a876a943c1a035bcf5171ef509a45f..255c96d73ebf8979968bc08d002cc01ec32a9285 100644 --- a/arkoala/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosFontMaterialized.ts @@ -18,10 +18,11 @@ import { FontOptions } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -67,6 +68,13 @@ export class GlobalScope_ohos_font implements MaterializedBase { } private static getSystemFontList_serialize(): Array { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_font_getSystemFontList() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult: Array = buffer + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkGrid.ts b/arkoala/arkui/src/generated/ArkGrid.ts index edc2c54b0cb3ce57b058d90f8a897d986148bbec..c3da15ddcf62fa260bfc7bb4dc3b3908b6994059 100644 --- a/arkoala/arkui/src/generated/ArkGrid.ts +++ b/arkoala/arkui/src/generated/ArkGrid.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -142,7 +142,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onScrollBarUpdate(value: ((index: number, offset: number) => ComputedBarAttribute)): this { if (this.checkPriority("onScrollBarUpdate")) { const value_casted = value as (((index: number, offset: number) => ComputedBarAttribute)) - UseEventsProperties({Grid_onScrollBarUpdate: value_casted}) this.getPeer()?.onScrollBarUpdateAttribute(value_casted) return this } @@ -152,7 +151,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onScrollIndex(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Grid_onScrollIndex: value_casted}) this.getPeer()?.onScrollIndexAttribute(value_casted) return this } @@ -245,7 +243,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onItemDragStart(value: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder)): this { if (this.checkPriority("onItemDragStart")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => CustomBuilder)) - UseEventsProperties({Grid_onItemDragStart: value_casted}) this.getPeer()?.onItemDragStartAttribute(value_casted) return this } @@ -255,7 +252,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { if (this.checkPriority("onItemDragEnter")) { const value_casted = value as (((event: ItemDragInfo) => void)) - UseEventsProperties({Grid_onItemDragEnter: value_casted}) this.getPeer()?.onItemDragEnterAttribute(value_casted) return this } @@ -265,7 +261,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onItemDragMove(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { if (this.checkPriority("onItemDragMove")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)) - UseEventsProperties({Grid_onItemDragMove: value_casted}) this.getPeer()?.onItemDragMoveAttribute(value_casted) return this } @@ -275,7 +270,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onItemDragLeave(value: ((event: ItemDragInfo, itemIndex: number) => void)): this { if (this.checkPriority("onItemDragLeave")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => void)) - UseEventsProperties({Grid_onItemDragLeave: value_casted}) this.getPeer()?.onItemDragLeaveAttribute(value_casted) return this } @@ -285,7 +279,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onItemDrop(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { if (this.checkPriority("onItemDrop")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)) - UseEventsProperties({Grid_onItemDrop: value_casted}) this.getPeer()?.onItemDropAttribute(value_casted) return this } @@ -331,7 +324,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Grid_onScroll: value_casted}) this.getPeer()?.onScrollAttribute(value_casted) return this } @@ -341,7 +333,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({Grid_onReachStart: value_casted}) this.getPeer()?.onReachStartAttribute(value_casted) return this } @@ -351,7 +342,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) - UseEventsProperties({Grid_onReachEnd: value_casted}) this.getPeer()?.onReachEndAttribute(value_casted) return this } @@ -361,7 +351,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({Grid_onScrollStart: value_casted}) this.getPeer()?.onScrollStartAttribute(value_casted) return this } @@ -371,7 +360,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) - UseEventsProperties({Grid_onScrollStop: value_casted}) this.getPeer()?.onScrollStopAttribute(value_casted) return this } @@ -381,7 +369,6 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { public onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number, state: ScrollState) => { offsetRemain: number })) - UseEventsProperties({Grid_onScrollFrameBegin: value_casted}) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkGridCol.ts b/arkoala/arkui/src/generated/ArkGridCol.ts index 2d1747dcfd1576ed074ab6180c3e63aadbccbea4..ace12fd37f3980c656a4b9ba7f4c41c21fd63f79 100644 --- a/arkoala/arkui/src/generated/ArkGridCol.ts +++ b/arkoala/arkui/src/generated/ArkGridCol.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridColPeer } from "./peers/ArkGridColPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkGridContainer.ts b/arkoala/arkui/src/generated/ArkGridContainer.ts index 6f86cfdcdb711cf5488fac38a8f6396d63de22a9..ca903630c94d48a2d9b932d150644b362f0a8095 100644 --- a/arkoala/arkui/src/generated/ArkGridContainer.ts +++ b/arkoala/arkui/src/generated/ArkGridContainer.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkColumnComponent } from "./ArkColumn" import { ArkGridContainerPeer } from "./peers/ArkGridContainerPeer" import { ColumnAttribute } from "./ArkColumnInterfaces" diff --git a/arkoala/arkui/src/generated/ArkGridItem.ts b/arkoala/arkui/src/generated/ArkGridItem.ts index 66fa0b102305f1aa0c26484bbec22401b9b351bd..e4dcd70ece1c40f23b2d1b0954c05c6850d69fe4 100644 --- a/arkoala/arkui/src/generated/ArkGridItem.ts +++ b/arkoala/arkui/src/generated/ArkGridItem.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -138,7 +138,6 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { public onSelect(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({GridItem_onSelect: value_casted}) this.getPeer()?.onSelectAttribute(value_casted) return this } @@ -148,7 +147,6 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({GridItem__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkGridRow.ts b/arkoala/arkui/src/generated/ArkGridRow.ts index 230d51ffe043eaa2ace5e55475cdd90e508e8672..799f8475858c1249619aa5c88448a97b6a9e1c04 100644 --- a/arkoala/arkui/src/generated/ArkGridRow.ts +++ b/arkoala/arkui/src/generated/ArkGridRow.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { public onBreakpointChange(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onBreakpointChange")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({GridRow_onBreakpointChange: value_casted}) this.getPeer()?.onBreakpointChangeAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts index 382e3d510973bf1dc9d83210b49d9b9d90d1c55c..08ebeddd2e43d47ec6fff667fb57a7ca2059e134 100644 --- a/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -18,10 +18,11 @@ import { SymbolEffect } from "./ArkArkuiExternalInterfaces" import { EffectFillStyle } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts b/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts index 8ec9a316cc8d1feeec338a6c3f789a0bdefd0fb4..f20ba75c5e77d0c4a00da7d7fd34537a38178913 100644 --- a/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts @@ -20,10 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index 60b2e94260e7ef7c0fa6b652f312a3828e4f5687..84ff8b50e533795c3aefb6d5ccc59760c6cb44d1 100644 --- a/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkHyperlink.ts b/arkoala/arkui/src/generated/ArkHyperlink.ts index 5f2138371d241ed1ea3b9f993421bbb951700e46..1a6ed26793fe66e2987b531d102ceed1d9d4ed23 100644 --- a/arkoala/arkui/src/generated/ArkHyperlink.ts +++ b/arkoala/arkui/src/generated/ArkHyperlink.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkICurveMaterialized.ts b/arkoala/arkui/src/generated/ArkICurveMaterialized.ts index 362e69f84dd50897fa91029f2280fdaca86bab5a..926036108d57d3e616e82515d7479ecf41473474 100644 --- a/arkoala/arkui/src/generated/ArkICurveMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkICurveMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkImage.ts b/arkoala/arkui/src/generated/ArkImage.ts index 369c5b2be89b75fed89fc0e3ec517ddba9e6ebf6..708f2aa4fa2d518b11374d9dbb1627c27845214b 100644 --- a/arkoala/arkui/src/generated/ArkImage.ts +++ b/arkoala/arkui/src/generated/ArkImage.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -246,7 +246,6 @@ export class ArkImageComponent extends ArkCommonMethodComponent { public onComplete(value: ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void)): this { if (this.checkPriority("onComplete")) { const value_casted = value as (((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void)) - UseEventsProperties({Image_onComplete: value_casted}) this.getPeer()?.onCompleteAttribute(value_casted) return this } @@ -256,7 +255,6 @@ export class ArkImageComponent extends ArkCommonMethodComponent { public onError(value: ImageErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ImageErrorCallback) - UseEventsProperties({Image_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } @@ -266,7 +264,6 @@ export class ArkImageComponent extends ArkCommonMethodComponent { public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) - UseEventsProperties({Image_onFinish: value_casted}) this.getPeer()?.onFinishAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index 9699b764b3dcaea2a345fddcbe7b73ae6be2025c..d5467c026678abb69fd97c16269b4ef9ef8873a6 100644 --- a/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,6 +53,13 @@ export class ImageAnalyzerController implements MaterializedBase { } private getImageAnalyzerSupportTypes_serialize(): Array { const retval = ArkUIGeneratedNativeModule._ImageAnalyzerController_getImageAnalyzerSupportTypes(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readInt32() as ImageAnalyzerType) + } + const returnResult: Array = buffer + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkImageAnimator.ts b/arkoala/arkui/src/generated/ArkImageAnimator.ts index 54c90dc2f45ce9c74e587698d260c84674e2b3f9..044adf53467d95c4c954368a9c8110bad8c9ea4e 100644 --- a/arkoala/arkui/src/generated/ArkImageAnimator.ts +++ b/arkoala/arkui/src/generated/ArkImageAnimator.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -146,7 +146,6 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({ImageAnimator_onStart: value_casted}) this.getPeer()?.onStartAttribute(value_casted) return this } @@ -156,7 +155,6 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { public onPause(value: (() => void)): this { if (this.checkPriority("onPause")) { const value_casted = value as ((() => void)) - UseEventsProperties({ImageAnimator_onPause: value_casted}) this.getPeer()?.onPauseAttribute(value_casted) return this } @@ -166,7 +164,6 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { public onRepeat(value: (() => void)): this { if (this.checkPriority("onRepeat")) { const value_casted = value as ((() => void)) - UseEventsProperties({ImageAnimator_onRepeat: value_casted}) this.getPeer()?.onRepeatAttribute(value_casted) return this } @@ -176,7 +173,6 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) - UseEventsProperties({ImageAnimator_onCancel: value_casted}) this.getPeer()?.onCancelAttribute(value_casted) return this } @@ -186,7 +182,6 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) - UseEventsProperties({ImageAnimator_onFinish: value_casted}) this.getPeer()?.onFinishAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts b/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts index ca3f4580c9fdb61f6df6207520f4f2fea233d8eb..fa43621ddb8faa45d95190762e67a0928c01467d 100644 --- a/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -23,10 +23,11 @@ import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyle import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts b/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts index 453dda4ec60db00fe6cc114bc8d96ccb2834e5df..2e5812c73c4a4204e8caf7b7e8e1b117de13e334 100644 --- a/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -18,10 +18,11 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts b/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts index 310ebb0a0f4c4ee2d45b50a1adce5f717850da9e..1700edf06b0ef14492081e9cac5b98a658179a4b 100644 --- a/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkImageSpan.ts b/arkoala/arkui/src/generated/ArkImageSpan.ts index 7713e7ed72325881e79aefe5c2f7968a568f31ce..91698069504b0ba91a3fd92f4c1526ad0a7c540f 100644 --- a/arkoala/arkui/src/generated/ArkImageSpan.ts +++ b/arkoala/arkui/src/generated/ArkImageSpan.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" -import { UseEventsProperties } from "./use_properties" import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" @@ -104,7 +104,6 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { public onComplete(value: ImageCompleteCallback): this { if (this.checkPriority("onComplete")) { const value_casted = value as (ImageCompleteCallback) - UseEventsProperties({ImageSpan_onComplete: value_casted}) this.getPeer()?.onCompleteAttribute(value_casted) return this } @@ -114,7 +113,6 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { public onError(value: ImageErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ImageErrorCallback) - UseEventsProperties({ImageSpan_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index 62c9dcb7792bd136f4385af94092648929ded5db..ed65d00e43320874e8c3d005461d82779a812452 100644 --- a/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts b/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts index d7c1192058d2875d3f101e5ed7b46327cbbdfec3..cd212bd456a726a076e45a8fd9321d5002a94121 100644 --- a/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -124,7 +124,6 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({IndicatorComponent_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts b/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts index 7cf51e809c91b0556625afa35ea5db9d99b91121..d3cc0e3e0a5cf8a5537d13c806ceef7912ea7f42 100644 --- a/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts b/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts index 591034220b277fb55351d47e59b874dbc9584016..e47f3d58409cfdd0294c4a3520d1a06cc3202022 100644 --- a/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts b/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts index fdbb7e4901e572ccbba547837885f8c6819c7c08..9d6aed2cb9132c66274505de97bfde2eef0f0522 100644 --- a/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -18,10 +18,11 @@ import { KeyType, KeySource } from "./ArkEnumsInterfaces" import { IntentionCode } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts index c2d84d12b76b175cbb69b5efd7e523f3fb4656b7..12d35dccbbd9901d9ca07543d1b7a7212ae22490 100644 --- a/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -18,10 +18,11 @@ import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -71,18 +72,29 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - return new Deserializer(retval.buffer, retval.byteLength).readPositionWithAffinity() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: PositionWithAffinity = retvalDeserializer.readPositionWithAffinity() + return returnResult } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - return new Deserializer(retval.buffer, retval.byteLength).readLineMetrics() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: LineMetrics = retvalDeserializer.readLineMetrics() + return returnResult } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeTextRange(range) const retval = ArkUIGeneratedNativeModule._LayoutManager_getRectsForRange(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length(), widthStyle, heightStyle) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTextBox() + } + const returnResult: Array = buffer + return returnResult } public static fromPtr(ptr: KPointer): LayoutManagerInternal { const obj: LayoutManagerInternal = new LayoutManagerInternal() diff --git a/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts b/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index b857def55b84f84be106961b58c11f05fa576307..fb334ff074d129686696f5191919ccf5eafb2daa 100644 --- a/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts b/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts index 556106be758dd733e8b0ff5c13d598db0194e25e..3923a2602fc506a215ef035a0b8eb8750ff4fb34 100644 --- a/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -18,10 +18,11 @@ import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts index 840d3a6c0a0b72306401f0317c4657159ee185e1..126b173cf581bfdbaa0b427a8e1c1670955dcd17 100644 --- a/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts @@ -19,10 +19,11 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLine.ts b/arkoala/arkui/src/generated/ArkLine.ts index 6e232e29dec606c93ece5a358f4727abded5eb35..9d4fc7b057fa0f97eee0909587635f51e3667749 100644 --- a/arkoala/arkui/src/generated/ArkLine.ts +++ b/arkoala/arkui/src/generated/ArkLine.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkLinePeer } from "./peers/ArkLinePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts index c282979ca2c1628f3ffc4b2aa2465f9803364f10..c53232cc97e1054ecdc3b6d254ba23ea42d8ed92 100644 --- a/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts @@ -19,10 +19,11 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts b/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts index 36b6faa9980d5a429ee3ca608f69d6214b380aab..68a36564b58131e1e1cc7dc938753b637888dad6 100644 --- a/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -18,10 +18,11 @@ import { ColorStop } from "./ArkDataPanelInterfaces" import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts index fa4bb4c9c5543ef8711c60a71d667c66b997c666..dee45a4223143ec76b2b8009b9cf0ad22cd08132 100644 --- a/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkLinearindicator.ts b/arkoala/arkui/src/generated/ArkLinearindicator.ts index d870f04224b57d9f37334cd8b6bac74f3b8a8f73..c92a401da9216b1354a53eba2cd80f8e4f48a71e 100644 --- a/arkoala/arkui/src/generated/ArkLinearindicator.ts +++ b/arkoala/arkui/src/generated/ArkLinearindicator.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkList.ts b/arkoala/arkui/src/generated/ArkList.ts index bb7af7e98e3b125f462c550e0868ac325b5cd269..6fea786996bdcfc2d21b985ce587388bba184964 100644 --- a/arkoala/arkui/src/generated/ArkList.ts +++ b/arkoala/arkui/src/generated/ArkList.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, LengthConstrain } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -251,7 +251,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({List_onScroll: value_casted}) this.getPeer()?.onScrollAttribute(value_casted) return this } @@ -261,7 +260,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onScrollIndex(value: ((start: number, end: number, center: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((start: number, end: number, center: number) => void)) - UseEventsProperties({List_onScrollIndex: value_casted}) this.getPeer()?.onScrollIndexAttribute(value_casted) return this } @@ -271,7 +269,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback): this { if (this.checkPriority("onScrollVisibleContentChange")) { const value_casted = value as (OnScrollVisibleContentChangeCallback) - UseEventsProperties({List_onScrollVisibleContentChange: value_casted}) this.getPeer()?.onScrollVisibleContentChangeAttribute(value_casted) return this } @@ -281,7 +278,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({List_onReachStart: value_casted}) this.getPeer()?.onReachStartAttribute(value_casted) return this } @@ -291,7 +287,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) - UseEventsProperties({List_onReachEnd: value_casted}) this.getPeer()?.onReachEndAttribute(value_casted) return this } @@ -301,7 +296,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({List_onScrollStart: value_casted}) this.getPeer()?.onScrollStartAttribute(value_casted) return this } @@ -311,7 +305,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) - UseEventsProperties({List_onScrollStop: value_casted}) this.getPeer()?.onScrollStopAttribute(value_casted) return this } @@ -321,7 +314,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemDelete(value: ((index: number) => boolean)): this { if (this.checkPriority("onItemDelete")) { const value_casted = value as (((index: number) => boolean)) - UseEventsProperties({List_onItemDelete: value_casted}) this.getPeer()?.onItemDeleteAttribute(value_casted) return this } @@ -331,7 +323,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemMove(value: ((from: number, to: number) => boolean)): this { if (this.checkPriority("onItemMove")) { const value_casted = value as (((from: number, to: number) => boolean)) - UseEventsProperties({List_onItemMove: value_casted}) this.getPeer()?.onItemMoveAttribute(value_casted) return this } @@ -341,7 +332,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemDragStart(value: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder)): this { if (this.checkPriority("onItemDragStart")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => CustomBuilder)) - UseEventsProperties({List_onItemDragStart: value_casted}) this.getPeer()?.onItemDragStartAttribute(value_casted) return this } @@ -351,7 +341,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { if (this.checkPriority("onItemDragEnter")) { const value_casted = value as (((event: ItemDragInfo) => void)) - UseEventsProperties({List_onItemDragEnter: value_casted}) this.getPeer()?.onItemDragEnterAttribute(value_casted) return this } @@ -361,7 +350,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemDragMove(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { if (this.checkPriority("onItemDragMove")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)) - UseEventsProperties({List_onItemDragMove: value_casted}) this.getPeer()?.onItemDragMoveAttribute(value_casted) return this } @@ -371,7 +359,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemDragLeave(value: ((event: ItemDragInfo, itemIndex: number) => void)): this { if (this.checkPriority("onItemDragLeave")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => void)) - UseEventsProperties({List_onItemDragLeave: value_casted}) this.getPeer()?.onItemDragLeaveAttribute(value_casted) return this } @@ -381,7 +368,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onItemDrop(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { if (this.checkPriority("onItemDrop")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)) - UseEventsProperties({List_onItemDrop: value_casted}) this.getPeer()?.onItemDropAttribute(value_casted) return this } @@ -391,7 +377,6 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { public onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number, state: ScrollState) => { offsetRemain: number })) - UseEventsProperties({List_onScrollFrameBegin: value_casted}) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkListItem.ts b/arkoala/arkui/src/generated/ArkListItem.ts index 8d7e0bdab60bef3048317f167b35c7e3ac6103b1..6fbdb760541e3f2aba371735d463a2b6c51c91b5 100644 --- a/arkoala/arkui/src/generated/ArkListItem.ts +++ b/arkoala/arkui/src/generated/ArkListItem.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -129,7 +129,6 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { public onSelect(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({ListItem_onSelect: value_casted}) this.getPeer()?.onSelectAttribute(value_casted) return this } @@ -139,7 +138,6 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({ListItem__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkListItemGroup.ts b/arkoala/arkui/src/generated/ArkListItemGroup.ts index a570c901273b6d14d35c4309fdb49272cc2c2cd6..7efe88ee5803c26e25f9a22267009ca01c7a4ba6 100644 --- a/arkoala/arkui/src/generated/ArkListItemGroup.ts +++ b/arkoala/arkui/src/generated/ArkListItemGroup.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts index bcbad907d1b7f6a71f9b7cbc75fe628b42d00219..5321461ec1b239a3ff71cd3898a9e60f5c186250 100644 --- a/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -26,10 +26,11 @@ import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -82,7 +83,9 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - return new Deserializer(retval.buffer, retval.byteLength).readRectResult() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: RectResult = retvalDeserializer.readRectResult() + return returnResult } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer: Serializer = Serializer.hold() @@ -117,6 +120,8 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - return new Deserializer(retval.buffer, retval.byteLength).readVisibleListContentInfo() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: VisibleListContentInfo = retvalDeserializer.readVisibleListContentInfo() + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkLoadingProgress.ts b/arkoala/arkui/src/generated/ArkLoadingProgress.ts index a7fe2168a630bf698db99340472c6cd0273b4639..57e3dac00830fb9923f56015d970cfca9e53d523 100644 --- a/arkoala/arkui/src/generated/ArkLoadingProgress.ts +++ b/arkoala/arkui/src/generated/ArkLoadingProgress.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkLocationButton.ts b/arkoala/arkui/src/generated/ArkLocationButton.ts index aa274eb34c0e0d947d7a8d0bb403fa8fc22d71c2..9a51eb7d89d9fef9ac72fa2dca77c388cad3831c 100644 --- a/arkoala/arkui/src/generated/ArkLocationButton.ts +++ b/arkoala/arkui/src/generated/ArkLocationButton.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" -import { UseEventsProperties } from "./use_properties" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" @@ -60,7 +60,6 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon public onClick(value: ((event: ClickEvent, result: LocationButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent, result: LocationButtonOnClickResult) => void)) - UseEventsProperties({LocationButton_onClick: value_casted}) this.getPeer()?.onClickAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index 7aa243986b478efe484d6289b9fa0d4301c10753..be2a734e69e94f1f1e38d0bdc9f0d50b25829e49 100644 --- a/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -22,10 +22,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkMarquee.ts b/arkoala/arkui/src/generated/ArkMarquee.ts index ed33e5e519619fd71a93b434e06f83d8d6440288..414e05826453be15898cf6a252ead18f1347f22f 100644 --- a/arkoala/arkui/src/generated/ArkMarquee.ts +++ b/arkoala/arkui/src/generated/ArkMarquee.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -129,7 +129,6 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({Marquee_onStart: value_casted}) this.getPeer()?.onStartAttribute(value_casted) return this } @@ -139,7 +138,6 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { public onBounce(value: (() => void)): this { if (this.checkPriority("onBounce")) { const value_casted = value as ((() => void)) - UseEventsProperties({Marquee_onBounce: value_casted}) this.getPeer()?.onBounceAttribute(value_casted) return this } @@ -149,7 +147,6 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) - UseEventsProperties({Marquee_onFinish: value_casted}) this.getPeer()?.onFinishAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts b/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts index 9a146730bae3df3bad39b8e97731f3a84dd6e33d..c53fe7ad5f175a91c092e75f35886a94f9aef624 100644 --- a/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts index 769a0abbf10dcec38d98656dfb8ede782006025e..a505662168823d5f5486b3ead0a42a6036b87b61 100644 --- a/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -19,10 +19,11 @@ import { ConstraintSizeOptions, DirectionalEdgesT, Length } from "./ArkUnitsInterfaces" import { MeasureResult, SizeResult } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -66,19 +67,27 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval.buffer, retval.byteLength).readMeasureResult() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: MeasureResult = retvalDeserializer.readMeasureResult() + return returnResult } private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: DirectionalEdgesT = retvalDeserializer.readDirectionalEdgesT() + return returnResult } private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: DirectionalEdgesT = retvalDeserializer.readDirectionalEdgesT() + return returnResult } private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: DirectionalEdgesT = retvalDeserializer.readDirectionalEdgesT() + return returnResult } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj: MeasurableInternal = new MeasurableInternal() diff --git a/arkoala/arkui/src/generated/ArkMediaCachedImage.ts b/arkoala/arkui/src/generated/ArkMediaCachedImage.ts index c25101ef464f190bb003e64875f6f23aa9c1a4d1..97d562dba0e3467cad229624686a64aebb23a065 100644 --- a/arkoala/arkui/src/generated/ArkMediaCachedImage.ts +++ b/arkoala/arkui/src/generated/ArkMediaCachedImage.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" diff --git a/arkoala/arkui/src/generated/ArkMenu.ts b/arkoala/arkui/src/generated/ArkMenu.ts index ae6c723d854211bed8395489a1359e7d6173ae57..7966a5e108898121049c988b9cada25a6ead288b 100644 --- a/arkoala/arkui/src/generated/ArkMenu.ts +++ b/arkoala/arkui/src/generated/ArkMenu.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuPeer } from "./peers/ArkMenuPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkMenuItem.ts b/arkoala/arkui/src/generated/ArkMenuItem.ts index 7ff57623e97e8661465ce39807fe3def6fe5259f..0cb8499da201852b1d13f76fc44a4e38424273cc 100644 --- a/arkoala/arkui/src/generated/ArkMenuItem.ts +++ b/arkoala/arkui/src/generated/ArkMenuItem.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -93,7 +93,6 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({MenuItem_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -139,7 +138,6 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({MenuItem__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkMenuItemGroup.ts b/arkoala/arkui/src/generated/ArkMenuItemGroup.ts index c5b56da21eac14d1b5940e9039c1a5dc0956e981..466aba0f0046e24ce77ecd4fab1b36cc4fd4a28c 100644 --- a/arkoala/arkui/src/generated/ArkMenuItemGroup.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemGroup.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts b/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts index e02d23a826285dfff1fe261606a7217a683b2e58..ba5913f756e40748f4862c7cbc69d9bb9d848b83 100644 --- a/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -21,10 +21,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 55132c4d59950e4f48772e0a445efd801cc43afd..0802066dc4d6ee39ec69cc0e66378c6c8412d9c4 100644 --- a/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -27,10 +27,11 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkNavDestination.ts b/arkoala/arkui/src/generated/ArkNavDestination.ts index 23c484acad67090b21d227855787872dcc2d4f7e..4c57d366f24fa0a5cd502dbf113a8a95069f762c 100644 --- a/arkoala/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala/arkui/src/generated/ArkNavDestination.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -98,7 +98,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onShown(value: (() => void)): this { if (this.checkPriority("onShown")) { const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onShown: value_casted}) this.getPeer()?.onShownAttribute(value_casted) return this } @@ -108,7 +107,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onHidden(value: (() => void)): this { if (this.checkPriority("onHidden")) { const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onHidden: value_casted}) this.getPeer()?.onHiddenAttribute(value_casted) return this } @@ -118,7 +116,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onBackPressed(value: (() => boolean)): this { if (this.checkPriority("onBackPressed")) { const value_casted = value as ((() => boolean)) - UseEventsProperties({NavDestination_onBackPressed: value_casted}) this.getPeer()?.onBackPressedAttribute(value_casted) return this } @@ -155,7 +152,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onReady(value: ((parameter: NavDestinationContext) => void)): this { if (this.checkPriority("onReady")) { const value_casted = value as (((parameter: NavDestinationContext) => void)) - UseEventsProperties({NavDestination_onReady: value_casted}) this.getPeer()?.onReadyAttribute(value_casted) return this } @@ -165,7 +161,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onWillAppear(value: (() => void)): this { if (this.checkPriority("onWillAppear")) { const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillAppear: value_casted}) this.getPeer()?.onWillAppearAttribute(value_casted) return this } @@ -175,7 +170,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onWillDisappear(value: (() => void)): this { if (this.checkPriority("onWillDisappear")) { const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillDisappear: value_casted}) this.getPeer()?.onWillDisappearAttribute(value_casted) return this } @@ -185,7 +179,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onWillShow(value: (() => void)): this { if (this.checkPriority("onWillShow")) { const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillShow: value_casted}) this.getPeer()?.onWillShowAttribute(value_casted) return this } @@ -195,7 +188,6 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { public onWillHide(value: (() => void)): this { if (this.checkPriority("onWillHide")) { const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillHide: value_casted}) this.getPeer()?.onWillHideAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index fa5a96a8359509bbaae1cbcf06cab9e234dfc5cc..f004d22b8e330b63c862b8d67ad2824a0caba5c3 100644 --- a/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -20,10 +20,11 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts b/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts index 3df14fca94cd8a7824aa74b9371f6a9b93ceda52..e06e61658c20d4b447298181ddb347eb7157b4fc 100644 --- a/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -20,10 +20,11 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialize import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, NavigationInterception, LaunchMode, PopInfo, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts index e87d1e1df8e2bdb5844c63da7abb718f26269897..e3cad60a86665a93144bee9fe7054abe81f968f1 100644 --- a/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PopInfo } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts index b6e08ba7d805980e7024944e8316fbb07c33c9e7..5c22a6e2ba80f9f431f832cdb6a911e72908e197 100644 --- a/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -18,10 +18,11 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -451,8 +452,7 @@ export class NavPathStack implements MaterializedBase { } const retval = ArkUIGeneratedNativeModule._NavPathStack_pop0(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private pop1_serialize(result: Object, animated?: boolean): NavPathInfo | undefined { const thisSerializer: Serializer = Serializer.hold() @@ -466,8 +466,7 @@ export class NavPathStack implements MaterializedBase { } const retval = ArkUIGeneratedNativeModule._NavPathStack_pop1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private popToName0_serialize(name: string, animated?: boolean): number { const thisSerializer: Serializer = Serializer.hold() @@ -560,28 +559,44 @@ export class NavPathStack implements MaterializedBase { } private getAllPathName_serialize(): Array { const retval = ArkUIGeneratedNativeModule._NavPathStack_getAllPathName(this.peer!.ptr) - console.log("Object deserialization is not implemented for type: [object Object], return default value.") - return new Array() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult: Array = buffer + return returnResult } private getParamByIndex_serialize(index: number): unknown | undefined { const retval = ArkUIGeneratedNativeModule._NavPathStack_getParamByIndex(this.peer!.ptr, index) - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private getParamByName_serialize(name: string): Array { const retval = ArkUIGeneratedNativeModule._NavPathStack_getParamByName(this.peer!.ptr, name) - console.log("Object deserialization is not implemented for type: [object Object], return default value.") - return new Array() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readCustomObject("Any") as Object) + } + const returnResult: Array = buffer + return returnResult } private getIndexByName_serialize(name: string): Array { const retval = ArkUIGeneratedNativeModule._NavPathStack_getIndexByName(this.peer!.ptr, name) - console.log("Object deserialization is not implemented for type: [object Object], return default value.") - return new Array() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readNumber() as number) + } + const returnResult: Array = buffer + return returnResult } private getParent_serialize(): NavPathStack | undefined { const retval = ArkUIGeneratedNativeModule._NavPathStack_getParent(this.peer!.ptr) - console.log("Object deserialization is not implemented for type: undefined, return default value.") - return undefined + throw new Error("Object deserialization is not implemented.") } private size_serialize(): number { const retval = ArkUIGeneratedNativeModule._NavPathStack_size(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkNavRouter.ts b/arkoala/arkui/src/generated/ArkNavRouter.ts index 647b2ec60b6af87bd8d475ce8aec79cfb00c4f48..7854c60e1dd28dbe775e0310d153dd5b0c9decea 100644 --- a/arkoala/arkui/src/generated/ArkNavRouter.ts +++ b/arkoala/arkui/src/generated/ArkNavRouter.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -83,7 +83,6 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { public onStateChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onStateChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({NavRouter_onStateChange: value_casted}) this.getPeer()?.onStateChangeAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index 21ff1fcccaebc4badc87ede65dce8f033adcc0fc..b8e89e1109cd0589ff83cca6a520e668b8041531 100644 --- a/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -18,10 +18,11 @@ import { NavContentInfo } from "./ArkNavigationInterfaces" import { NavDestinationMode } from "./ArkNavDestinationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkNavigator.ts b/arkoala/arkui/src/generated/ArkNavigator.ts index a6b2f85644fe6d14cff566df155bd9bc5ecb8507..8fb298870c390b0d17fa0636bc8d68fe2afc43f6 100644 --- a/arkoala/arkui/src/generated/ArkNavigator.ts +++ b/arkoala/arkui/src/generated/ArkNavigator.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkNodeContainer.ts b/arkoala/arkui/src/generated/ArkNodeContainer.ts index 8329195abf12bf0c2d7f82219f42f547197af20d..5ab89ff5eb4a30806d362bc7390c21b26571b45f 100644 --- a/arkoala/arkui/src/generated/ArkNodeContainer.ts +++ b/arkoala/arkui/src/generated/ArkNodeContainer.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts index 75f6ee8243d8b28049880c823286e3678e11b61f..bae413496468cbcf1cfd7fecf5445a0a66e7e06d 100644 --- a/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts @@ -29,10 +29,11 @@ import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts index a656aedbcd7f17ea491b3e6a29eb83174bf5ae55..2959a7d71a96bd9def5b319f395e10785dfa9825 100644 --- a/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -28,10 +28,11 @@ import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 94e9a0aa8f79b3d3d4ea802d4901837ea8527ca1..6ad3e38d326dbce1d46003f4b21ce588ed464f87 100644 --- a/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -22,10 +22,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts b/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index e5690bf5db7f8505b399df6ce8bf3ac537ec82b0..930f9813f81e0b2fce0d1c020f27971e25913ccb 100644 --- a/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PanDirection } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts b/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts index dab5785598165aca271997b129156333184079e1..fab8da075f99accea3af161e2e642dce189734ca 100644 --- a/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -21,10 +21,11 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState, PanDirection } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPanel.ts b/arkoala/arkui/src/generated/ArkPanel.ts index e674c7424423d6f48ef1c0e5964590bb8592746d..aef2a35d83a088a7c3a22c384449062244c20785 100644 --- a/arkoala/arkui/src/generated/ArkPanel.ts +++ b/arkoala/arkui/src/generated/ArkPanel.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -165,7 +165,6 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { public onChange(value: ((width: number, height: number, mode: PanelMode) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((width: number, height: number, mode: PanelMode) => void)) - UseEventsProperties({Panel_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -175,7 +174,6 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { public onHeightChange(value: ((index: number) => void)): this { if (this.checkPriority("onHeightChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Panel_onHeightChange: value_casted}) this.getPeer()?.onHeightChangeAttribute(value_casted) return this } @@ -185,7 +183,6 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { public _onChangeEvent_mode(callback: ((mode: PanelMode) => void)): void { if (this.checkPriority("_onChangeEvent_mode")) { const callback_casted = callback as (((mode: PanelMode) => void)) - UseEventsProperties({Panel__onChangeEvent_mode: callback_casted}) this.getPeer()?._onChangeEvent_modeAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts index ef6fa85f4ea83193b3244d438b54d261a2dc1d7c..265211e5b8d23c3b5e20dcd5f7ce38fa1855ecc6 100644 --- a/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -24,10 +24,11 @@ import { Dimension } from "./ArkUnitsInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPasteButton.ts b/arkoala/arkui/src/generated/ArkPasteButton.ts index cfd3cca8929fc3614a9a08a53a0204480c6bf653..282f33352890639848fb22118e61d8e6d2cfad5e 100644 --- a/arkoala/arkui/src/generated/ArkPasteButton.ts +++ b/arkoala/arkui/src/generated/ArkPasteButton.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" -import { UseEventsProperties } from "./use_properties" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" @@ -60,7 +60,6 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent public onClick(value: ((event: ClickEvent, result: PasteButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent, result: PasteButtonOnClickResult) => void)) - UseEventsProperties({PasteButton_onClick: value_casted}) this.getPeer()?.onClickAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkPath.ts b/arkoala/arkui/src/generated/ArkPath.ts index 07179a869a8112567080dc2e9df0ee4efaa180c0..ae32a4e15c04a0b26c216b4a8ff3973bd1178cec 100644 --- a/arkoala/arkui/src/generated/ArkPath.ts +++ b/arkoala/arkui/src/generated/ArkPath.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPathPeer } from "./peers/ArkPathPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts b/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts index faf7024d1fc746a7feedef57df834e6ffbe6ec46..8a2229830598fb3f0314898c891b62f7c69f0fb2 100644 --- a/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts @@ -19,10 +19,11 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPathShapeMaterialized.ts b/arkoala/arkui/src/generated/ArkPathShapeMaterialized.ts index 22ce9d594379069ab1842e174cf04eb51be65c22..6a3b60e2a0948a0be4f40582c1546eed45f41797 100644 --- a/arkoala/arkui/src/generated/ArkPathShapeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPathShapeMaterialized.ts @@ -20,10 +20,11 @@ import { PathShapeOptions } from "./ArkArkuiExternalInterfaces" import { Position, ResourceColor, Length } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPatternLock.ts b/arkoala/arkui/src/generated/ArkPatternLock.ts index 83bdb29ddcb4e71199dd3f0db812ba535dde9a6e..500def3b3815194b5c241cd2fe385d7bc7b2fd83 100644 --- a/arkoala/arkui/src/generated/ArkPatternLock.ts +++ b/arkoala/arkui/src/generated/ArkPatternLock.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -148,7 +148,6 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { public onPatternComplete(value: ((input: Array) => void)): this { if (this.checkPriority("onPatternComplete")) { const value_casted = value as (((input: Array) => void)) - UseEventsProperties({PatternLock_onPatternComplete: value_casted}) this.getPeer()?.onPatternCompleteAttribute(value_casted) return this } @@ -167,7 +166,6 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { public onDotConnect(value: ((index: number) => void)): this { if (this.checkPriority("onDotConnect")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({PatternLock_onDotConnect: value_casted}) this.getPeer()?.onDotConnectAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index 6606b87b61f289cca9a144a6df11e0273d9c8edc..dfc3c330e371c683bac8b7404181e924cf483010 100644 --- a/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts b/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 0dfac053d17d68d51b104fb7710d38c42fdfff52..505080108577d64a90d0f0afdabf431373a617e1 100644 --- a/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -70,7 +71,14 @@ export class PermissionRequest implements MaterializedBase { } private getAccessibleResource_serialize(): Array { const retval = ArkUIGeneratedNativeModule._PermissionRequest_getAccessibleResource(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult: Array = buffer + return returnResult } private grant_serialize(resources: Array): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index 09659ec20ff8e3bd9f7ca8d8b8844c5140342a94..79c161b0e25e9aa54e14921b7b23510631b8a48e 100644 --- a/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -22,10 +22,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts b/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts index 2cc5b425428a562079598103bdfa711c6855aa33..721629adb70ae5d193c3cc9b03648ddf994f36a4 100644 --- a/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts b/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts index 0ba96a4851337aafb621466e69017dcdbd38f4ca..aebed979457ed286a898cbf0da9dd579ba5c95d0 100644 --- a/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkPluginComponent.ts b/arkoala/arkui/src/generated/ArkPluginComponent.ts index 35e0244071db109a40cb95ee33fa5e59a045f4b4..da106224f4fd3b1d8a16e58d27011f57ff0e0f0d 100644 --- a/arkoala/arkui/src/generated/ArkPluginComponent.ts +++ b/arkoala/arkui/src/generated/ArkPluginComponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { public onComplete(value: VoidCallback): this { if (this.checkPriority("onComplete")) { const value_casted = value as (VoidCallback) - UseEventsProperties({PluginComponent_onComplete: value_casted}) this.getPeer()?.onCompleteAttribute(value_casted) return this } @@ -85,7 +84,6 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { public onError(value: PluginErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (PluginErrorCallback) - UseEventsProperties({PluginComponent_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkPolygon.ts b/arkoala/arkui/src/generated/ArkPolygon.ts index df9e1416295fb18f4d38c29b9343c484c798ae04..e428c921e94aa2c23957f6a4c2d8efcc610b4625 100644 --- a/arkoala/arkui/src/generated/ArkPolygon.ts +++ b/arkoala/arkui/src/generated/ArkPolygon.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkPolyline.ts b/arkoala/arkui/src/generated/ArkPolyline.ts index b2a5f05cc6a5f12f8b4c05306aa6b8a860eed1ca..9a8a573f98e75a2f857460f267c0d50da74d4f0b 100644 --- a/arkoala/arkui/src/generated/ArkPolyline.ts +++ b/arkoala/arkui/src/generated/ArkPolyline.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkProgress.ts b/arkoala/arkui/src/generated/ArkProgress.ts index 6a3a22c720e849761d5e2a8a5779cdedefae2a1c..2a5cab2a82d3d59cecc3e6d3ab07f7eff96a36af 100644 --- a/arkoala/arkui/src/generated/ArkProgress.ts +++ b/arkoala/arkui/src/generated/ArkProgress.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts b/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts index 2ec1e7291625f299c005e0ab83d1b9eb5c2c8421..9fb588e57714392f808d1c49841c3a81bf032a55 100644 --- a/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -19,10 +19,11 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkQrcode.ts b/arkoala/arkui/src/generated/ArkQrcode.ts index f3a682c40fa4a043e10b0887fc4a90f11f708d97..3e900d069e157118aa5cdf07a74cf13d1585672a 100644 --- a/arkoala/arkui/src/generated/ArkQrcode.ts +++ b/arkoala/arkui/src/generated/ArkQrcode.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkRadio.ts b/arkoala/arkui/src/generated/ArkRadio.ts index b4929847a118014f3f82875d35cd5941f2aef3c8..8e8579f6630ad3fe728c0eb92328328b9af5f98b 100644 --- a/arkoala/arkui/src/generated/ArkRadio.ts +++ b/arkoala/arkui/src/generated/ArkRadio.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -84,7 +84,6 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({Radio_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -112,7 +111,6 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { public _onChangeEvent_checked(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_checked")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Radio__onChangeEvent_checked: callback_casted}) this.getPeer()?._onChangeEvent_checkedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkRating.ts b/arkoala/arkui/src/generated/ArkRating.ts index b3e6a35f922a1a4c8ac227081bf972bf808b9700..91d9f85962fa5b344ab824fd2facf9b5cb0d8bd2 100644 --- a/arkoala/arkui/src/generated/ArkRating.ts +++ b/arkoala/arkui/src/generated/ArkRating.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -102,7 +102,6 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Rating_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -121,7 +120,6 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { public _onChangeEvent_rating(callback: ((index: number) => void)): void { if (this.checkPriority("_onChangeEvent_rating")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Rating__onChangeEvent_rating: callback_casted}) this.getPeer()?._onChangeEvent_ratingAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkRect.ts b/arkoala/arkui/src/generated/ArkRect.ts index fda41df37ed907f24da362d99c0a80d00b61a9bd..52d8cb918385acedd894098713e5262d8da3db24 100644 --- a/arkoala/arkui/src/generated/ArkRect.ts +++ b/arkoala/arkui/src/generated/ArkRect.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkRectPeer } from "./peers/ArkRectPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkRectShapeMaterialized.ts b/arkoala/arkui/src/generated/ArkRectShapeMaterialized.ts index 8a13797642c0f31a435ccebd6e1597d65214949e..a02c1d46c03e3ceb80b659ec074fc5f82f87b2ab 100644 --- a/arkoala/arkui/src/generated/ArkRectShapeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRectShapeMaterialized.ts @@ -20,10 +20,11 @@ import { RectShapeOptions, RoundRectShapeOptions, ShapeSize } from "./ArkArkuiEx import { Position, ResourceColor, Length, SizeOptions } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkRefresh.ts b/arkoala/arkui/src/generated/ArkRefresh.ts index cc8876dadb4fd7881eb3236dd6576cc1bc2ffa59..dc67dd42f8e7734539fa7cfeb96abcb903e2d344 100644 --- a/arkoala/arkui/src/generated/ArkRefresh.ts +++ b/arkoala/arkui/src/generated/ArkRefresh.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { public onStateChange(value: ((state: RefreshStatus) => void)): this { if (this.checkPriority("onStateChange")) { const value_casted = value as (((state: RefreshStatus) => void)) - UseEventsProperties({Refresh_onStateChange: value_casted}) this.getPeer()?.onStateChangeAttribute(value_casted) return this } @@ -85,7 +84,6 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { public onRefreshing(value: (() => void)): this { if (this.checkPriority("onRefreshing")) { const value_casted = value as ((() => void)) - UseEventsProperties({Refresh_onRefreshing: value_casted}) this.getPeer()?.onRefreshingAttribute(value_casted) return this } @@ -113,7 +111,6 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { public onOffsetChange(value: ((index: number) => void)): this { if (this.checkPriority("onOffsetChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Refresh_onOffsetChange: value_casted}) this.getPeer()?.onOffsetChangeAttribute(value_casted) return this } @@ -132,7 +129,6 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { public _onChangeEvent_refreshing(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_refreshing")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Refresh__onChangeEvent_refreshing: callback_casted}) this.getPeer()?._onChangeEvent_refreshingAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkRelativeContainer.ts b/arkoala/arkui/src/generated/ArkRelativeContainer.ts index 6becda46219530cca8bcce30f1e52c210323acfa..b6dfc895ea3f3047f1da4711e9af143cdcdab472 100644 --- a/arkoala/arkui/src/generated/ArkRelativeContainer.ts +++ b/arkoala/arkui/src/generated/ArkRelativeContainer.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkRemoteWindow.ts b/arkoala/arkui/src/generated/ArkRemoteWindow.ts index 04279c1280589c56966852912cec6bbbad042af0..24a97970f3d8b06d5dfa56bf946d14f92d6ed4f6 100644 --- a/arkoala/arkui/src/generated/ArkRemoteWindow.ts +++ b/arkoala/arkui/src/generated/ArkRemoteWindow.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts b/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts index 82752707adfe04b1716f827a7cad8f9f0acf8e08..f79c10049c37bbeaa55ea7f5415d1c4d116e30f3 100644 --- a/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts index 68aee931bbc3f3e5c22a09d1a5c9430888cbe9c5..2d7c593b027dde1cb4160df84c54a364ef7b46ea 100644 --- a/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkRichEditor.ts b/arkoala/arkui/src/generated/ArkRichEditor.ts index 07a5db13d5ff1885c3e8f3659b599f2fb565d60e..c35a29f423c529eb9149bfb21b36a340bf5f7485 100644 --- a/arkoala/arkui/src/generated/ArkRichEditor.ts +++ b/arkoala/arkui/src/generated/ArkRichEditor.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -101,7 +101,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onReady(value: (() => void)): this { if (this.checkPriority("onReady")) { const value_casted = value as ((() => void)) - UseEventsProperties({RichEditor_onReady: value_casted}) this.getPeer()?.onReadyAttribute(value_casted) return this } @@ -111,7 +110,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onSelect(value: ((parameter: RichEditorSelection) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: RichEditorSelection) => void)) - UseEventsProperties({RichEditor_onSelect: value_casted}) this.getPeer()?.onSelectAttribute(value_casted) return this } @@ -121,7 +119,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onSelectionChange(value: ((parameter: RichEditorRange) => void)): this { if (this.checkPriority("onSelectionChange")) { const value_casted = value as (((parameter: RichEditorRange) => void)) - UseEventsProperties({RichEditor_onSelectionChange: value_casted}) this.getPeer()?.onSelectionChangeAttribute(value_casted) return this } @@ -131,7 +128,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public aboutToIMEInput(value: ((parameter: RichEditorInsertValue) => boolean)): this { if (this.checkPriority("aboutToIMEInput")) { const value_casted = value as (((parameter: RichEditorInsertValue) => boolean)) - UseEventsProperties({RichEditor_aboutToIMEInput: value_casted}) this.getPeer()?.aboutToIMEInputAttribute(value_casted) return this } @@ -141,7 +137,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onIMEInputComplete(value: ((parameter: RichEditorTextSpanResult) => void)): this { if (this.checkPriority("onIMEInputComplete")) { const value_casted = value as (((parameter: RichEditorTextSpanResult) => void)) - UseEventsProperties({RichEditor_onIMEInputComplete: value_casted}) this.getPeer()?.onIMEInputCompleteAttribute(value_casted) return this } @@ -151,7 +146,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onDidIMEInput(value: ((parameter: TextRange) => void)): this { if (this.checkPriority("onDidIMEInput")) { const value_casted = value as (((parameter: TextRange) => void)) - UseEventsProperties({RichEditor_onDidIMEInput: value_casted}) this.getPeer()?.onDidIMEInputAttribute(value_casted) return this } @@ -161,7 +155,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public aboutToDelete(value: ((parameter: RichEditorDeleteValue) => boolean)): this { if (this.checkPriority("aboutToDelete")) { const value_casted = value as (((parameter: RichEditorDeleteValue) => boolean)) - UseEventsProperties({RichEditor_aboutToDelete: value_casted}) this.getPeer()?.aboutToDeleteAttribute(value_casted) return this } @@ -171,7 +164,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onDeleteComplete(value: (() => void)): this { if (this.checkPriority("onDeleteComplete")) { const value_casted = value as ((() => void)) - UseEventsProperties({RichEditor_onDeleteComplete: value_casted}) this.getPeer()?.onDeleteCompleteAttribute(value_casted) return this } @@ -190,7 +182,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onPaste(value: PasteEventCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (PasteEventCallback) - UseEventsProperties({RichEditor_onPaste: value_casted}) this.getPeer()?.onPasteAttribute(value_casted) return this } @@ -245,7 +236,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onEditingChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditingChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({RichEditor_onEditingChange: value_casted}) this.getPeer()?.onEditingChangeAttribute(value_casted) return this } @@ -264,7 +254,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onSubmit(value: SubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_casted = value as (SubmitCallback) - UseEventsProperties({RichEditor_onSubmit: value_casted}) this.getPeer()?.onSubmitAttribute(value_casted) return this } @@ -274,7 +263,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onWillChange(value: ((parameter: RichEditorChangeValue) => boolean)): this { if (this.checkPriority("onWillChange")) { const value_casted = value as (((parameter: RichEditorChangeValue) => boolean)) - UseEventsProperties({RichEditor_onWillChange: value_casted}) this.getPeer()?.onWillChangeAttribute(value_casted) return this } @@ -284,7 +272,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onDidChange(value: OnDidChangeCallback): this { if (this.checkPriority("onDidChange")) { const value_casted = value as (OnDidChangeCallback) - UseEventsProperties({RichEditor_onDidChange: value_casted}) this.getPeer()?.onDidChangeAttribute(value_casted) return this } @@ -294,7 +281,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onCut(value: ((parameter: CutEvent) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((parameter: CutEvent) => void)) - UseEventsProperties({RichEditor_onCut: value_casted}) this.getPeer()?.onCutAttribute(value_casted) return this } @@ -304,7 +290,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public onCopy(value: ((parameter: CopyEvent) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((parameter: CopyEvent) => void)) - UseEventsProperties({RichEditor_onCopy: value_casted}) this.getPeer()?.onCopyAttribute(value_casted) return this } @@ -353,7 +338,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (ResponseType | RichEditorResponseType) const options_casted = options as (SelectionMenuOptions | undefined) - UseEventsProperties({RichEditor_bindSelectionMenu: content_casted}) this.getPeer()?.bindSelectionMenuAttribute(spanType_casted, content_casted, responseType_casted, options_casted) return this } @@ -364,7 +348,6 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) - UseEventsProperties({RichEditor_customKeyboard: value_casted}) this.getPeer()?.customKeyboardAttribute(value_casted, options_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index bb468304815f2a71e1c7dcfa9da985aca8c5faa7..29abbb69dee76ed354dc1e05621759b90e1aaebb 100644 --- a/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -27,10 +27,11 @@ import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -109,7 +110,9 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readRichEditorTextStyle() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: RichEditorTextStyle = retvalDeserializer.readRichEditorTextStyle() + return returnResult } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer: Serializer = Serializer.hold() @@ -143,6 +146,8 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readPreviewText() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: PreviewText = retvalDeserializer.readPreviewText() + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index 088ccc5167439465995a4053f306198b82080de9..470826c3a106f2e5ebec24441f732b41e1a3a62c 100644 --- a/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -39,10 +39,11 @@ import { FingerInfo } from "./ArkGestureInterfaces" import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -252,7 +253,25 @@ export class RichEditorController extends RichEditorBaseController implements Ma } const retval = ArkUIGeneratedNativeModule._RichEditorController_getSpans(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + const buffer_buf_selector: number = retvalDeserializer.readInt8() + let buffer_buf: RichEditorImageSpanResult | RichEditorTextSpanResult | undefined|undefined + if (buffer_buf_selector == 0) { + buffer_buf = retvalDeserializer.readRichEditorImageSpanResult() + } + else if (buffer_buf_selector == 1) { + buffer_buf = retvalDeserializer.readRichEditorTextSpanResult() + } + else { + throw new Error("One of the branches for buffer_buf has to be chosen through deserialisation.") + } + buffer[buffer_i] = (buffer_buf as RichEditorImageSpanResult | RichEditorTextSpanResult) + } + const returnResult: Array = buffer + return returnResult } private getParagraphs_serialize(value?: RichEditorRange): Array { const thisSerializer: Serializer = Serializer.hold() @@ -265,15 +284,42 @@ export class RichEditorController extends RichEditorBaseController implements Ma } const retval = ArkUIGeneratedNativeModule._RichEditorController_getParagraphs(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readRichEditorParagraphResult() + } + const returnResult: Array = buffer + return returnResult } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readRichEditorSelection() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: RichEditorSelection = retvalDeserializer.readRichEditorSelection() + return returnResult } private fromStyledString_serialize(value: StyledString): Array { const retval = ArkUIGeneratedNativeModule._RichEditorController_fromStyledString(this.peer!.ptr, toPeerPtr(value)) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + const buffer_buf_selector: number = retvalDeserializer.readInt8() + let buffer_buf: RichEditorImageSpanResult | RichEditorTextSpanResult | undefined|undefined + if (buffer_buf_selector == 0) { + buffer_buf = retvalDeserializer.readRichEditorImageSpanResult() + } + else if (buffer_buf_selector == 1) { + buffer_buf = retvalDeserializer.readRichEditorTextSpanResult() + } + else { + throw new Error("One of the branches for buffer_buf has to be chosen through deserialisation.") + } + buffer[buffer_i] = (buffer_buf as RichEditorImageSpanResult | RichEditorTextSpanResult) + } + const returnResult: Array = buffer + return returnResult } private toStyledString_serialize(value: RichEditorRange): StyledString { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index 8d17f62e23f06574531a3041da58161f4124b434..e3d5a7bc95e170afdb77a55141d0987ba81ce1b5 100644 --- a/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -35,10 +35,11 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -92,7 +93,9 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readRichEditorRange() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: RichEditorRange = retvalDeserializer.readRichEditorRange() + return returnResult } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkRichText.ts b/arkoala/arkui/src/generated/ArkRichText.ts index addf0fd711b7a0c3669e77a9ccac39306bbd8d45..7f7e442911dec103984e951b559419f3a9ac9387 100644 --- a/arkoala/arkui/src/generated/ArkRichText.ts +++ b/arkoala/arkui/src/generated/ArkRichText.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({RichText_onStart: value_casted}) this.getPeer()?.onStartAttribute(value_casted) return this } @@ -85,7 +84,6 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { public onComplete(value: (() => void)): this { if (this.checkPriority("onComplete")) { const value_casted = value as ((() => void)) - UseEventsProperties({RichText_onComplete: value_casted}) this.getPeer()?.onCompleteAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkRootScene.ts b/arkoala/arkui/src/generated/ArkRootScene.ts index 83ff27e51ce425c61fd48ef043b39b82fddfc95d..55e860e63baa0abb9b7b3466319414ad48a6a010 100644 --- a/arkoala/arkui/src/generated/ArkRootScene.ts +++ b/arkoala/arkui/src/generated/ArkRootScene.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index 3e26030dc7d63d81903df9000af4ab0b668f6956..818ed5b04d2d900175fdaa9253a351f8804fc65d 100644 --- a/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -22,10 +22,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkRow.ts b/arkoala/arkui/src/generated/ArkRow.ts index 392fe123c2fe96a533134c933d85f65f3c9e89f1..152209feafb58b27e86615c1bc62434673d6e66b 100644 --- a/arkoala/arkui/src/generated/ArkRow.ts +++ b/arkoala/arkui/src/generated/ArkRow.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowPeer } from "./peers/ArkRowPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkRowSplit.ts b/arkoala/arkui/src/generated/ArkRowSplit.ts index 57aad2685e6a831270934c99311113f2531b97a4..ee68103a3d0e2fbb6dd406364746f39fd95f97f8 100644 --- a/arkoala/arkui/src/generated/ArkRowSplit.ts +++ b/arkoala/arkui/src/generated/ArkRowSplit.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSaveButton.ts b/arkoala/arkui/src/generated/ArkSaveButton.ts index 6e083c08d871d0b69d14b49228fbe15eee3aad7b..92c28ea8210d3cd844c0a9b61d8f2890936674be 100644 --- a/arkoala/arkui/src/generated/ArkSaveButton.ts +++ b/arkoala/arkui/src/generated/ArkSaveButton.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" -import { UseEventsProperties } from "./use_properties" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" @@ -60,7 +60,6 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent public onClick(value: ((event: ClickEvent, result: SaveButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent, result: SaveButtonOnClickResult) => void)) - UseEventsProperties({SaveButton_onClick: value_casted}) this.getPeer()?.onClickAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts index 0a822eb20bfae17e3816803cdf04c6c2b909f6fb..5e7061aff1c3de7018f7d83e353b9bcf2fa20066 100644 --- a/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope, EffectDirection } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkScreen.ts b/arkoala/arkui/src/generated/ArkScreen.ts index 8f70f9342430bfeba911333d765ad2cbb9ed675f..521650a3749585b4b5bbee1465c588d1f4a5befc 100644 --- a/arkoala/arkui/src/generated/ArkScreen.ts +++ b/arkoala/arkui/src/generated/ArkScreen.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScreenPeer } from "./peers/ArkScreenPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index 830814b1edb56754cc0bd4c02bbff95b7f98c8b3..8857214f12b26601cbebc280e1c3962c0f80e0d9 100644 --- a/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ScreenCaptureConfig, WebCaptureMode } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkScroll.ts b/arkoala/arkui/src/generated/ArkScroll.ts index 0c4c6ccbf1c719a47741b52ba17a786b080558f4..4fba33775a09b0b8e253377009a6c73dfdb7bbb4 100644 --- a/arkoala/arkui/src/generated/ArkScroll.ts +++ b/arkoala/arkui/src/generated/ArkScroll.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -86,7 +86,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Scroll_onScroll: value_casted}) this.getPeer()?.onScrollAttribute(value_casted) return this } @@ -105,7 +104,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onDidScroll(value: ScrollOnScrollCallback): this { if (this.checkPriority("onDidScroll")) { const value_casted = value as (ScrollOnScrollCallback) - UseEventsProperties({Scroll_onDidScroll: value_casted}) this.getPeer()?.onDidScrollAttribute(value_casted) return this } @@ -115,7 +113,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onScrollEdge(value: OnScrollEdgeCallback): this { if (this.checkPriority("onScrollEdge")) { const value_casted = value as (OnScrollEdgeCallback) - UseEventsProperties({Scroll_onScrollEdge: value_casted}) this.getPeer()?.onScrollEdgeAttribute(value_casted) return this } @@ -125,7 +122,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onScrollStart(value: VoidCallback): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Scroll_onScrollStart: value_casted}) this.getPeer()?.onScrollStartAttribute(value_casted) return this } @@ -135,7 +131,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onScrollEnd(value: (() => void)): this { if (this.checkPriority("onScrollEnd")) { const value_casted = value as ((() => void)) - UseEventsProperties({Scroll_onScrollEnd: value_casted}) this.getPeer()?.onScrollEndAttribute(value_casted) return this } @@ -145,7 +140,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onScrollStop(value: VoidCallback): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Scroll_onScrollStop: value_casted}) this.getPeer()?.onScrollStopAttribute(value_casted) return this } @@ -182,7 +176,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { public onScrollFrameBegin(value: OnScrollFrameBeginCallback): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (OnScrollFrameBeginCallback) - UseEventsProperties({Scroll_onScrollFrameBegin: value_casted}) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkScrollBar.ts b/arkoala/arkui/src/generated/ArkScrollBar.ts index e6bfefeebe96be99851e4712d823cbbe18539f15..52d9ac7716aed7feb0c2a78a2bb8c25349e6d9db 100644 --- a/arkoala/arkui/src/generated/ArkScrollBar.ts +++ b/arkoala/arkui/src/generated/ArkScrollBar.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts index 4a6ebd1097a0a6fd53d72c295ee3ea672d0db55e..7685fee5cdb56d93ec17254c2c44526df7304faf 100644 --- a/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts index dab494e203a78eb5a3c15515cdc18309282f2bbd..f08c0c240df98f200be47f5da0bef89acf7b9fce 100644 --- a/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts index 351e85684bac9dfd6090a3521788a5653c2ddd1c..35544b7ed1ee68c6869b8b48842bbd6c6bfdbc0d 100644 --- a/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts @@ -24,10 +24,11 @@ import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -155,7 +156,9 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readOffsetResult() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: OffsetResult = retvalDeserializer.readOffsetResult() + return returnResult } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer: Serializer = Serializer.hold() @@ -194,7 +197,9 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - return new Deserializer(retval.buffer, retval.byteLength).readRectResult() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: RectResult = retvalDeserializer.readRectResult() + return returnResult } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) diff --git a/arkoala/arkui/src/generated/ArkSearch.ts b/arkoala/arkui/src/generated/ArkSearch.ts index 4ff344a6fc3965e1c0220cf37857aa3fd3cb67f1..8161d48716ffa4d8a90eb2bebc766b9acadb18c4 100644 --- a/arkoala/arkui/src/generated/ArkSearch.ts +++ b/arkoala/arkui/src/generated/ArkSearch.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -118,7 +118,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({Search_onEditChange: value_casted}) this.getPeer()?.onEditChangeAttribute(value_casted) return this } @@ -184,13 +183,11 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { const value_type = runtimeType(value) if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({Search_onSubmit0: value_casted}) this.getPeer()?.onSubmit0Attribute(value_casted) return this } if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (SearchSubmitCallback) - UseEventsProperties({Search_onSubmit1: value_casted}) this.getPeer()?.onSubmit1Attribute(value_casted) return this } @@ -202,7 +199,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) - UseEventsProperties({Search_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -212,7 +208,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onTextSelectionChange(value: OnTextSelectionChangeCallback): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (OnTextSelectionChangeCallback) - UseEventsProperties({Search_onTextSelectionChange: value_casted}) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) return this } @@ -222,7 +217,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onContentScroll(value: OnContentScrollCallback): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (OnContentScrollCallback) - UseEventsProperties({Search_onContentScroll: value_casted}) this.getPeer()?.onContentScrollAttribute(value_casted) return this } @@ -232,7 +226,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({Search_onCopy: value_casted}) this.getPeer()?.onCopyAttribute(value_casted) return this } @@ -242,7 +235,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({Search_onCut: value_casted}) this.getPeer()?.onCutAttribute(value_casted) return this } @@ -252,7 +244,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onPaste(value: OnPasteCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (OnPasteCallback) - UseEventsProperties({Search_onPaste: value_casted}) this.getPeer()?.onPasteAttribute(value_casted) return this } @@ -370,7 +361,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) - UseEventsProperties({Search_onWillInsert: value_casted}) this.getPeer()?.onWillInsertAttribute(value_casted) return this } @@ -380,7 +370,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) - UseEventsProperties({Search_onDidInsert: value_casted}) this.getPeer()?.onDidInsertAttribute(value_casted) return this } @@ -390,7 +379,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) - UseEventsProperties({Search_onWillDelete: value_casted}) this.getPeer()?.onWillDeleteAttribute(value_casted) return this } @@ -400,7 +388,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) - UseEventsProperties({Search_onDidDelete: value_casted}) this.getPeer()?.onDidDeleteAttribute(value_casted) return this } @@ -458,7 +445,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) - UseEventsProperties({Search_customKeyboard: value_casted}) this.getPeer()?.customKeyboardAttribute(value_casted, options_casted) return this } @@ -468,7 +454,6 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public _onChangeEvent_value(callback: ((breakpoints: string) => void)): void { if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((breakpoints: string) => void)) - UseEventsProperties({Search__onChangeEvent_value: callback_casted}) this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts index d98eeb147536a1a39c64a970b58081b4c26371d8..91b5c9b0293c7beaa66181141d071eaa1268e6da 100644 --- a/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -18,10 +18,11 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSecurityComponent.ts b/arkoala/arkui/src/generated/ArkSecurityComponent.ts index 510cfdf7c6e3632bc5806b1b1ad7c0bd4f49524b..bf233fcbe85ba9786b176f9f579319bada7a0bbc 100644 --- a/arkoala/arkui/src/generated/ArkSecurityComponent.ts +++ b/arkoala/arkui/src/generated/ArkSecurityComponent.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSelect.ts b/arkoala/arkui/src/generated/ArkSelect.ts index 2cf630203a7bcda6b8846b646855c8bc274d8593..6f56b588bc8195e0edd150a8798b0345a364d58e 100644 --- a/arkoala/arkui/src/generated/ArkSelect.ts +++ b/arkoala/arkui/src/generated/ArkSelect.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, Offset } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -167,7 +167,6 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { public onSelect(value: ((index: number, value: string) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((index: number, value: string) => void)) - UseEventsProperties({Select_onSelect: value_casted}) this.getPeer()?.onSelectAttribute(value_casted) return this } @@ -268,7 +267,6 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((selected: number | Resource) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((selected: number | Resource) => void)) - UseEventsProperties({Select__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } @@ -278,7 +276,6 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { public _onChangeEvent_value(callback: ((value: ResourceStr) => void)): void { if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((value: ResourceStr) => void)) - UseEventsProperties({Select__onChangeEvent_value: callback_casted}) this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkShape.ts b/arkoala/arkui/src/generated/ArkShape.ts index 7ae238b57b82063194efbfc7487ddc29922874ef..a214afed45d85dd2ae67c5d8beff93ad0cbaf8ae 100644 --- a/arkoala/arkui/src/generated/ArkShape.ts +++ b/arkoala/arkui/src/generated/ArkShape.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkShapePeer } from "./peers/ArkShapePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSidebar.ts b/arkoala/arkui/src/generated/ArkSidebar.ts index 6732a5c637818988b2cd9e9c49f4ca39bdae68af..3fa2d7da60db1a3d5880c3f44b27cdd6d1ff738e 100644 --- a/arkoala/arkui/src/generated/ArkSidebar.ts +++ b/arkoala/arkui/src/generated/ArkSidebar.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -103,7 +103,6 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({SideBarContainer_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -203,7 +202,6 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public _onChangeEvent_showSideBar(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_showSideBar")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({SideBarContainer__onChangeEvent_showSideBar: callback_casted}) this.getPeer()?._onChangeEvent_showSideBarAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkSlider.ts b/arkoala/arkui/src/generated/ArkSlider.ts index 9021e2f7813bfe10a67769f544eedb0274e3b302..eb930d04ba53cf42f2a000df525ee96d4c0338d2 100644 --- a/arkoala/arkui/src/generated/ArkSlider.ts +++ b/arkoala/arkui/src/generated/ArkSlider.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -140,7 +140,6 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { public onChange(value: ((value: number, mode: SliderChangeMode) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: number, mode: SliderChangeMode) => void)) - UseEventsProperties({Slider_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -268,7 +267,6 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { public _onChangeEvent_value(callback: ((index: number) => void)): void { if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Slider__onChangeEvent_value: callback_casted}) this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkSpan.ts b/arkoala/arkui/src/generated/ArkSpan.ts index 84a91a3e966772dfd198234047dff9d834e295be..e53dd9382cdf567d6db5ee1088acf74640df030b 100644 --- a/arkoala/arkui/src/generated/ArkSpan.ts +++ b/arkoala/arkui/src/generated/ArkSpan.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts index 2fdb6d6aa415fb164fa2a56c54c045f2503c9bfb..6a846e6235a16a0029ce9407b90e2e23d6366c72 100644 --- a/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts b/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts index 380ab0317568120dbec2bc75785f8d64d33080b8..07bfdd8b495f6d0defabcc121ddaaf6b8f01c644 100644 --- a/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts index 4f03f2e015a5e9028a22d19dfd89f923d5c54b20..1eabbcc5e6d150884937a39ccca829092042d8dd 100644 --- a/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkStack.ts b/arkoala/arkui/src/generated/ArkStack.ts index 0bb3e1ba37db8dec0243c98b023cbd510e102385..265ab8d2e038d0788759f79694af761af0f88626 100644 --- a/arkoala/arkui/src/generated/ArkStack.ts +++ b/arkoala/arkui/src/generated/ArkStack.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStackPeer } from "./peers/ArkStackPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkStaticComponents.ts b/arkoala/arkui/src/generated/ArkStaticComponents.ts index 60f4f556adeab30f70c10b702817d103e730e58a..ae4fd9074e4bcb8527ae7c8e8a4af4e3fb696c8d 100644 --- a/arkoala/arkui/src/generated/ArkStaticComponents.ts +++ b/arkoala/arkui/src/generated/ArkStaticComponents.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkRootPeer, ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" /** @memo:stable */ export class ArkRootComponent extends ComponentBase { diff --git a/arkoala/arkui/src/generated/ArkStepper.ts b/arkoala/arkui/src/generated/ArkStepper.ts index f612e9a96fdd2324b065eaaa26986470591252a5..af1bf997f2d9100dc54372fc0c908ba2d9f0c793 100644 --- a/arkoala/arkui/src/generated/ArkStepper.ts +++ b/arkoala/arkui/src/generated/ArkStepper.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) - UseEventsProperties({Stepper_onFinish: value_casted}) this.getPeer()?.onFinishAttribute(value_casted) return this } @@ -85,7 +84,6 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { public onSkip(value: (() => void)): this { if (this.checkPriority("onSkip")) { const value_casted = value as ((() => void)) - UseEventsProperties({Stepper_onSkip: value_casted}) this.getPeer()?.onSkipAttribute(value_casted) return this } @@ -95,7 +93,6 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { public onChange(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Stepper_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -105,7 +102,6 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { public onNext(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onNext")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Stepper_onNext: value_casted}) this.getPeer()?.onNextAttribute(value_casted) return this } @@ -115,7 +111,6 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { public onPrevious(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onPrevious")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Stepper_onPrevious: value_casted}) this.getPeer()?.onPreviousAttribute(value_casted) return this } @@ -125,7 +120,6 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { public _onChangeEvent_index(callback: ((index: number) => void)): void { if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Stepper__onChangeEvent_index: callback_casted}) this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkStepperItem.ts b/arkoala/arkui/src/generated/ArkStepperItem.ts index 78b7c9ea9c4628b159eca2981b1bdd87ec906c0f..73fee380febef2d2d7144dba780ea56d90868862 100644 --- a/arkoala/arkui/src/generated/ArkStepperItem.ts +++ b/arkoala/arkui/src/generated/ArkStepperItem.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index e7de07f717513334dfd4dfec811ebe6a33c6d3fd..86598b8f0ee8ef9ba179a941c2b7338bc13f66f5 100644 --- a/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -20,18 +20,35 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialize import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" -import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue, UserDataSpan, TextStyleInterface, DecorationStyleInterface, GestureStyleInterface, ParagraphStyleInterface } from "./ArkStyledStringInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" -import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" -import { DrawContext } from "./ArkCommonInterfaces" +import { SizeOptions, Length, Margin, Padding, BorderRadiuses, ResourceColor, ResourceStr, Area, Position, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { ImageSpanAlignment, ImageFit, FontStyle, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, FontWeight, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { DrawContext, ShadowOptions, ShadowType, EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./ArkTextStyleStyledStringMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./ArkDecorationStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./ArkBaselineOffsetStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./ArkLetterSpacingStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./ArkTextShadowStyleMaterialized" +import { GestureStyle, GestureStyleInternal } from "./ArkGestureStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./ArkParagraphStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./ArkLineHeightStyleMaterialized" +import { UrlStyle, UrlStyleInternal } from "./ArkUrlStyleMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./ArkBackgroundColorStyleMaterialized" +import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { GestureEvent, GestureEventInternal } from "./ArkGestureEventMaterialized" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts b/arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts index d2dee2753c419f46eaaa722a0e81a04fea884dd1..f842701d606d6d7b3427f33ef9309e017bb31cb2 100644 --- a/arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts @@ -21,16 +21,29 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { ResourceColor, ResourceStr, Area, Length, Position, Dimension, SizeOptions, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { FontWeight, FontStyle, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { FontWeight, FontStyle, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ClickEvent } from "./ArkClickEventMaterialized" import { BaseEvent } from "./ArkBaseEventMaterialized" -import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { EventTarget, SourceType, SourceTool, ShadowOptions, DrawContext, ShadowType } from "./ArkCommonInterfaces" import { GestureEvent } from "./ArkGestureEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextStyle_styled_string } from "./ArkTextStyleStyledStringMaterialized" +import { DecorationStyle } from "./ArkDecorationStyleMaterialized" +import { BaselineOffsetStyle } from "./ArkBaselineOffsetStyleMaterialized" +import { LetterSpacingStyle } from "./ArkLetterSpacingStyleMaterialized" +import { TextShadowStyle } from "./ArkTextShadowStyleMaterialized" +import { GestureStyle } from "./ArkGestureStyleMaterialized" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" +import { ParagraphStyle } from "./ArkParagraphStyleMaterialized" +import { LineHeightStyle } from "./ArkLineHeightStyleMaterialized" +import { UrlStyle } from "./ArkUrlStyleMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { BackgroundColorStyle } from "./ArkBackgroundColorStyleMaterialized" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" export interface StyleOptions { start?: number; length?: number; @@ -67,9 +80,7 @@ export interface ParagraphStyleInterface { wordBreak?: WordBreak; leadingMargin?: LengthMetrics | LeadingMarginPlaceholder; } -export interface StyledStringValue { - stub: string; -} +export type StyledStringValue = TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle; export enum StyledStringKey { FONT, DECORATION = 1, diff --git a/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts index 936413f8f763b1ef532b8f235a92411b5d8ca4d1..2887fa5d67131bc12284e149adfc7fda581a280f 100644 --- a/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -26,10 +26,11 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -144,7 +145,14 @@ export class StyledString implements MaterializedBase { } const retval = ArkUIGeneratedNativeModule._StyledString_getStyles(this.peer!.ptr, start, length, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readSpanStyle() + } + const returnResult: Array = buffer + return returnResult } private equals_serialize(other: StyledString): boolean { const retval = ArkUIGeneratedNativeModule._StyledString_equals(this.peer!.ptr, toPeerPtr(other)) @@ -177,7 +185,7 @@ export class StyledString implements MaterializedBase { } private static marshalling_serialize(styledString: StyledString): ArrayBuffer { const retval = ArkUIGeneratedNativeModule._StyledString_marshalling(toPeerPtr(styledString)) - return retval + return new Deserializer(retval.buffer, retval.byteLength).readBuffer() } private static unmarshalling_serialize(buffer: ArrayBuffer): Promise { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts b/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts index cf2589718439393ba3bba44495c592133074bf2a..93cece375e4d7798ec1765f3dc570c817abeda82 100644 --- a/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index fd277241b4f7aebbbc652d062366382562c4f55a..2de2affe6aa83a61abd9bac85e114d979e4140a7 100644 --- a/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -22,10 +22,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSwiper.ts b/arkoala/arkui/src/generated/ArkSwiper.ts index 4e0f892237f45d6487e49788ba1bfb5f9b644ada..8ff30b41bdb389be02301518c675d8114651d997 100644 --- a/arkoala/arkui/src/generated/ArkSwiper.ts +++ b/arkoala/arkui/src/generated/ArkSwiper.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -207,7 +207,6 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Swiper_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -226,7 +225,6 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public onAnimationStart(value: OnSwiperAnimationStartCallback): this { if (this.checkPriority("onAnimationStart")) { const value_casted = value as (OnSwiperAnimationStartCallback) - UseEventsProperties({Swiper_onAnimationStart: value_casted}) this.getPeer()?.onAnimationStartAttribute(value_casted) return this } @@ -236,7 +234,6 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public onAnimationEnd(value: OnSwiperAnimationEndCallback): this { if (this.checkPriority("onAnimationEnd")) { const value_casted = value as (OnSwiperAnimationEndCallback) - UseEventsProperties({Swiper_onAnimationEnd: value_casted}) this.getPeer()?.onAnimationEndAttribute(value_casted) return this } @@ -246,7 +243,6 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public onGestureSwipe(value: OnSwiperGestureSwipeCallback): this { if (this.checkPriority("onGestureSwipe")) { const value_casted = value as (OnSwiperGestureSwipeCallback) - UseEventsProperties({Swiper_onGestureSwipe: value_casted}) this.getPeer()?.onGestureSwipeAttribute(value_casted) return this } @@ -274,7 +270,6 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public onContentDidScroll(value: ContentDidScrollCallback): this { if (this.checkPriority("onContentDidScroll")) { const value_casted = value as (ContentDidScrollCallback) - UseEventsProperties({Swiper_onContentDidScroll: value_casted}) this.getPeer()?.onContentDidScrollAttribute(value_casted) return this } @@ -333,7 +328,6 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public _onChangeEvent_index(callback: ((index: number) => void)): void { if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Swiper__onChangeEvent_index: callback_casted}) this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index 0f50531314a9996c9090e703511be3c1a4cdf245..58cd44703312492eee6f44ceff95356aec90c2b0 100644 --- a/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts index c3adf99097096ab03773ce5b1426a34d9659ac81..3182efebbf3413f613fa925ea1121584610aa4aa 100644 --- a/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { VoidCallback } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkSymbolSpan.ts b/arkoala/arkui/src/generated/ArkSymbolSpan.ts index 4372ab82232a15af0353977df9cf4f57b8504d3a..2e18fcba79f12ce38ab66913d9a839a5bb3cf795 100644 --- a/arkoala/arkui/src/generated/ArkSymbolSpan.ts +++ b/arkoala/arkui/src/generated/ArkSymbolSpan.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSymbolglyph.ts b/arkoala/arkui/src/generated/ArkSymbolglyph.ts index c9bc22e9df64c6b19c8b29e2e47311d9621db40a..901dda74df7798c7a1d48a441960d7e0d7332f39 100644 --- a/arkoala/arkui/src/generated/ArkSymbolglyph.ts +++ b/arkoala/arkui/src/generated/ArkSymbolglyph.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts b/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts index 9069fe4cddba1f365724568f678c25d0d16df01d..faa62289a6d8636e75472a4998622e6f5ae23760 100644 --- a/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTabContent.ts b/arkoala/arkui/src/generated/ArkTabContent.ts index 86d55406579ff9f741535bca2067b732d2c1c78d..9c7e500a32fb799ea890989d27166f157e0f7712 100644 --- a/arkoala/arkui/src/generated/ArkTabContent.ts +++ b/arkoala/arkui/src/generated/ArkTabContent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -96,7 +96,6 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { public onWillShow(value: VoidCallback): this { if (this.checkPriority("onWillShow")) { const value_casted = value as (VoidCallback) - UseEventsProperties({TabContent_onWillShow: value_casted}) this.getPeer()?.onWillShowAttribute(value_casted) return this } @@ -106,7 +105,6 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { public onWillHide(value: VoidCallback): this { if (this.checkPriority("onWillHide")) { const value_casted = value as (VoidCallback) - UseEventsProperties({TabContent_onWillHide: value_casted}) this.getPeer()?.onWillHideAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index 71485ef79e436a43ffe91ad0e7f88a2e36ef7545..8f7f490d8d90ad676a32c2858506768a0d2d5c39 100644 --- a/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTabs.ts b/arkoala/arkui/src/generated/ArkTabs.ts index 786256330ae91b0a26b6c07a65831c878e142fb0..4f263aac13afd99b30f4b06b9974e847994c99ec 100644 --- a/arkoala/arkui/src/generated/ArkTabs.ts +++ b/arkoala/arkui/src/generated/ArkTabs.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -168,7 +168,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Tabs_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -178,7 +177,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public onTabBarClick(value: ((index: number) => void)): this { if (this.checkPriority("onTabBarClick")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({Tabs_onTabBarClick: value_casted}) this.getPeer()?.onTabBarClickAttribute(value_casted) return this } @@ -188,7 +186,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public onAnimationStart(value: OnTabsAnimationStartCallback): this { if (this.checkPriority("onAnimationStart")) { const value_casted = value as (OnTabsAnimationStartCallback) - UseEventsProperties({Tabs_onAnimationStart: value_casted}) this.getPeer()?.onAnimationStartAttribute(value_casted) return this } @@ -198,7 +195,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public onAnimationEnd(value: OnTabsAnimationEndCallback): this { if (this.checkPriority("onAnimationEnd")) { const value_casted = value as (OnTabsAnimationEndCallback) - UseEventsProperties({Tabs_onAnimationEnd: value_casted}) this.getPeer()?.onAnimationEndAttribute(value_casted) return this } @@ -208,7 +204,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public onGestureSwipe(value: OnTabsGestureSwipeCallback): this { if (this.checkPriority("onGestureSwipe")) { const value_casted = value as (OnTabsGestureSwipeCallback) - UseEventsProperties({Tabs_onGestureSwipe: value_casted}) this.getPeer()?.onGestureSwipeAttribute(value_casted) return this } @@ -263,7 +258,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public customContentTransition(value: TabsCustomContentTransitionCallback): this { if (this.checkPriority("customContentTransition")) { const value_casted = value as (TabsCustomContentTransitionCallback) - UseEventsProperties({Tabs_customContentTransition: value_casted}) this.getPeer()?.customContentTransitionAttribute(value_casted) return this } @@ -302,7 +296,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public onContentWillChange(value: OnTabsContentWillChangeCallback): this { if (this.checkPriority("onContentWillChange")) { const value_casted = value as (OnTabsContentWillChangeCallback) - UseEventsProperties({Tabs_onContentWillChange: value_casted}) this.getPeer()?.onContentWillChangeAttribute(value_casted) return this } @@ -321,7 +314,6 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { public _onChangeEvent_index(callback: ((index: number) => void)): void { if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Tabs__onChangeEvent_index: callback_casted}) this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts index 0b4d96734fe656535fd5a0949fa92b1c3d9c96f6..9968a9fbe9b5f6ea1acdbbc5b5668ea98edcc14f 100644 --- a/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TranslateOptions } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts index 4c0cd8fdabcaf71018214d8993cd28770628297a..75e06e80ae0eadf5b789b24b06e05e0df8bdd35e 100644 --- a/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -22,10 +22,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkText.ts b/arkoala/arkui/src/generated/ArkText.ts index 26ed0806fb00e40bf579eef15ac30c0e07cd54bd..d5b380cc7b26cae1f1ecad68140b36b9df4c6776 100644 --- a/arkoala/arkui/src/generated/ArkText.ts +++ b/arkoala/arkui/src/generated/ArkText.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -342,7 +342,6 @@ export class ArkTextComponent extends ArkCommonMethodComponent { public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({Text_onCopy: value_casted}) this.getPeer()?.onCopyAttribute(value_casted) return this } @@ -397,7 +396,6 @@ export class ArkTextComponent extends ArkCommonMethodComponent { public onTextSelectionChange(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({Text_onTextSelectionChange: value_casted}) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) return this } @@ -474,7 +472,6 @@ export class ArkTextComponent extends ArkCommonMethodComponent { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (TextResponseType) const options_casted = options as (SelectionMenuOptions | undefined) - UseEventsProperties({Text_bindSelectionMenu: content_casted}) this.getPeer()?.bindSelectionMenuAttribute(spanType_casted, content_casted, responseType_casted, options_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkTextArea.ts b/arkoala/arkui/src/generated/ArkTextArea.ts index 778bf1e5467751cb2e59a49e0f107bdf73b8b7fa..804e288bd0df12ce43d08b9af538eff53dde96e8 100644 --- a/arkoala/arkui/src/generated/ArkTextArea.ts +++ b/arkoala/arkui/src/generated/ArkTextArea.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -210,13 +210,11 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { const value_type = runtimeType(value) if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((enterKey: EnterKeyType) => void)) - UseEventsProperties({TextArea_onSubmit0: value_casted}) this.getPeer()?.onSubmit0Attribute(value_casted) return this } if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (TextAreaSubmitCallback) - UseEventsProperties({TextArea_onSubmit1: value_casted}) this.getPeer()?.onSubmit1Attribute(value_casted) return this } @@ -228,7 +226,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) - UseEventsProperties({TextArea_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -238,7 +235,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onTextSelectionChange(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({TextArea_onTextSelectionChange: value_casted}) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) return this } @@ -248,7 +244,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onContentScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({TextArea_onContentScroll: value_casted}) this.getPeer()?.onContentScrollAttribute(value_casted) return this } @@ -258,7 +253,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({TextArea_onEditChange: value_casted}) this.getPeer()?.onEditChangeAttribute(value_casted) return this } @@ -268,7 +262,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({TextArea_onCopy: value_casted}) this.getPeer()?.onCopyAttribute(value_casted) return this } @@ -278,7 +271,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({TextArea_onCut: value_casted}) this.getPeer()?.onCutAttribute(value_casted) return this } @@ -288,7 +280,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onPaste(value: ((value: string, event: PasteEvent) => void)): this { if (this.checkPriority("onPaste")) { const value_casted = value as (((value: string, event: PasteEvent) => void)) - UseEventsProperties({TextArea_onPaste: value_casted}) this.getPeer()?.onPasteAttribute(value_casted) return this } @@ -478,7 +469,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) - UseEventsProperties({TextArea_onWillInsert: value_casted}) this.getPeer()?.onWillInsertAttribute(value_casted) return this } @@ -488,7 +478,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) - UseEventsProperties({TextArea_onDidInsert: value_casted}) this.getPeer()?.onDidInsertAttribute(value_casted) return this } @@ -498,7 +487,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) - UseEventsProperties({TextArea_onWillDelete: value_casted}) this.getPeer()?.onWillDeleteAttribute(value_casted) return this } @@ -508,7 +496,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) - UseEventsProperties({TextArea_onDidDelete: value_casted}) this.getPeer()?.onDidDeleteAttribute(value_casted) return this } @@ -566,7 +553,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) - UseEventsProperties({TextArea_customKeyboard: value_casted}) this.getPeer()?.customKeyboardAttribute(value_casted, options_casted) return this } @@ -576,7 +562,6 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public _onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { if (this.checkPriority("_onChangeEvent_text")) { const callback_casted = callback as (((value: ResourceStr) => void)) - UseEventsProperties({TextArea__onChangeEvent_text: callback_casted}) this.getPeer()?._onChangeEvent_textAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index 59ffcfb9bce0da193cc96708b54de44d96f4a6c7..101a20dd98f0876187fae279054b48f717c8724b 100644 --- a/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -18,10 +18,11 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index 37db322f77c94be54778ff1535d0124a247a7dd3..a988dad784d6ef13ac83703d1a490dffb01e2c03 100644 --- a/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -20,10 +20,11 @@ import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextClock.ts b/arkoala/arkui/src/generated/ArkTextClock.ts index a5094cb345bf7a5383ec338f297b0134f33a60d4..220a32e0cc849c429c3d10f87cc131dfb60529a0 100644 --- a/arkoala/arkui/src/generated/ArkTextClock.ts +++ b/arkoala/arkui/src/generated/ArkTextClock.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -86,7 +86,6 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { public onDateChange(value: ((index: number) => void)): this { if (this.checkPriority("onDateChange")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({TextClock_onDateChange: value_casted}) this.getPeer()?.onDateChangeAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts index 392fda18d4b5ba5dafce06507ec3cae0646d6b9a..f8172c8031507828e7662aa4d249a855043de45d 100644 --- a/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index 96e0e89e2b46a658525b4d2e2aa0e869a3b34cfb..2588c8e3fbe1ec250aef3b81458c89cd7e114dc7 100644 --- a/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CaretOffset, RectResult } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -58,11 +59,15 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readCaretOffset() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: CaretOffset = retvalDeserializer.readCaretOffset() + return returnResult } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readRectResult() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: RectResult = retvalDeserializer.readRectResult() + return returnResult } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts index 908736f7b6d18a5c57dfc89882b52aa247a7ae83..8c706e70525f634c4d26809dfe58417e98397e48 100644 --- a/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -29,10 +29,11 @@ import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index 3b0f5c8ca61a42dda28604bb528ed501abeed018..0772b0d7a51e609b177423fe771fb2013572c101 100644 --- a/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -21,10 +21,11 @@ import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -86,7 +87,9 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readPreviewText() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: PreviewText = retvalDeserializer.readPreviewText() + return returnResult } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj: TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala/arkui/src/generated/ArkTextInput.ts b/arkoala/arkui/src/generated/ArkTextInput.ts index ed254fbcc29f79577f2214f3bc36b043f854e942..555e60cd3fa65aa431bc08a75d50500127a05854 100644 --- a/arkoala/arkui/src/generated/ArkTextInput.ts +++ b/arkoala/arkui/src/generated/ArkTextInput.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -155,7 +155,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onEditChanged(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChanged")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({TextInput_onEditChanged: value_casted}) this.getPeer()?.onEditChangedAttribute(value_casted) return this } @@ -165,7 +164,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({TextInput_onEditChange: value_casted}) this.getPeer()?.onEditChangeAttribute(value_casted) return this } @@ -175,7 +173,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onSubmit(value: OnSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_casted = value as (OnSubmitCallback) - UseEventsProperties({TextInput_onSubmit: value_casted}) this.getPeer()?.onSubmitAttribute(value_casted) return this } @@ -185,7 +182,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) - UseEventsProperties({TextInput_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -195,7 +191,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onTextSelectionChange(value: OnTextSelectionChangeCallback): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (OnTextSelectionChangeCallback) - UseEventsProperties({TextInput_onTextSelectionChange: value_casted}) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) return this } @@ -205,7 +200,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onContentScroll(value: OnContentScrollCallback): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (OnContentScrollCallback) - UseEventsProperties({TextInput_onContentScroll: value_casted}) this.getPeer()?.onContentScrollAttribute(value_casted) return this } @@ -269,7 +263,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({TextInput_onCopy: value_casted}) this.getPeer()?.onCopyAttribute(value_casted) return this } @@ -279,7 +272,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) - UseEventsProperties({TextInput_onCut: value_casted}) this.getPeer()?.onCutAttribute(value_casted) return this } @@ -289,7 +281,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onPaste(value: OnPasteCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (OnPasteCallback) - UseEventsProperties({TextInput_onPaste: value_casted}) this.getPeer()?.onPasteAttribute(value_casted) return this } @@ -389,7 +380,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public showUnit(value: CustomBuilder): this { if (this.checkPriority("showUnit")) { const value_casted = value as (CustomBuilder) - UseEventsProperties({TextInput_showUnit: value_casted}) this.getPeer()?.showUnitAttribute(value_casted) return this } @@ -579,7 +569,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onSecurityStateChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSecurityStateChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({TextInput_onSecurityStateChange: value_casted}) this.getPeer()?.onSecurityStateChangeAttribute(value_casted) return this } @@ -589,7 +578,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) - UseEventsProperties({TextInput_onWillInsert: value_casted}) this.getPeer()?.onWillInsertAttribute(value_casted) return this } @@ -599,7 +587,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) - UseEventsProperties({TextInput_onDidInsert: value_casted}) this.getPeer()?.onDidInsertAttribute(value_casted) return this } @@ -609,7 +596,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) - UseEventsProperties({TextInput_onWillDelete: value_casted}) this.getPeer()?.onWillDeleteAttribute(value_casted) return this } @@ -619,7 +605,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) - UseEventsProperties({TextInput_onDidDelete: value_casted}) this.getPeer()?.onDidDeleteAttribute(value_casted) return this } @@ -667,7 +652,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) - UseEventsProperties({TextInput_customKeyboard: value_casted}) this.getPeer()?.customKeyboardAttribute(value_casted, options_casted) return this } @@ -687,7 +671,6 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public _onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { if (this.checkPriority("_onChangeEvent_text")) { const callback_casted = callback as (((value: ResourceStr) => void)) - UseEventsProperties({TextInput__onChangeEvent_text: callback_casted}) this.getPeer()?._onChangeEvent_textAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts index b460ac4cdcc954ae288ea57ee7894773a7d6b855..d901f10a925a55e89aa6d97184c293d6dcf228a7 100644 --- a/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -18,10 +18,11 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts b/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index 00c21b4e535c532d29d397016df69d40db9a4c64..ef73c80b0b0769941f070359e8668e5cf4346f4a 100644 --- a/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -18,10 +18,11 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextPicker.ts b/arkoala/arkui/src/generated/ArkTextPicker.ts index 8313f2b7073c988356d0e101b332963058002979..df15d0d3d34145895c3551c9173bb530d0225c68 100644 --- a/arkoala/arkui/src/generated/ArkTextPicker.ts +++ b/arkoala/arkui/src/generated/ArkTextPicker.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -120,7 +120,6 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { public onAccept(value: ((value: string, index: number) => void)): this { if (this.checkPriority("onAccept")) { const value_casted = value as (((value: string, index: number) => void)) - UseEventsProperties({TextPicker_onAccept: value_casted}) this.getPeer()?.onAcceptAttribute(value_casted) return this } @@ -130,7 +129,6 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) - UseEventsProperties({TextPicker_onCancel: value_casted}) this.getPeer()?.onCancelAttribute(value_casted) return this } @@ -140,7 +138,6 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { public onChange(value: ((value: string | Array, index: number | Array) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: string | Array, index: number | Array) => void)) - UseEventsProperties({TextPicker_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -177,7 +174,6 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((selected: number | Array) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((selected: number | Array) => void)) - UseEventsProperties({TextPicker__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } @@ -187,7 +183,6 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { public _onChangeEvent_value(callback: ((value: string | Array) => void)): void { if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((value: string | Array) => void)) - UseEventsProperties({TextPicker__onChangeEvent_value: callback_casted}) this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index ddf2c62d356660d4e7ee6ba039ce517f569789ce..1827f29148e8fd325327d3e08b0df36420b30fed 100644 --- a/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -23,10 +23,11 @@ import { DialogAlignment } from "./ArkAlertDialogInterfaces" import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts index 2e30d04b4c01f07009c80849e4a4c38f2edb1001..dec8e2fdbf3d01775c0dd1c3befb833db3ae8bd9 100644 --- a/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -19,10 +19,11 @@ import { ShadowOptions, ShadowType } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { Color, ColoringStrategy } from "./ArkEnumsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -78,6 +79,13 @@ export class TextShadowStyle implements MaterializedBase { } private getTextShadow_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TextShadowStyle_getTextShadow(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readShadowOptions() + } + const returnResult: Array = buffer + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts index 25f967901df4e65ddf8f47666725d6b12dc6518f..6d391bbe8b36d8dbd42b95f46012bca52d696850 100644 --- a/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts @@ -22,10 +22,11 @@ import { TextStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTextTimer.ts b/arkoala/arkui/src/generated/ArkTextTimer.ts index 600171c106af91855949a0426839e0218669577e..c7bf34d2d2f21fdc5fd67f8920a3fcc8224daad9 100644 --- a/arkoala/arkui/src/generated/ArkTextTimer.ts +++ b/arkoala/arkui/src/generated/ArkTextTimer.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -130,7 +130,6 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { public onTimer(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onTimer")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({TextTimer_onTimer: value_casted}) this.getPeer()?.onTimerAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index 22f5f912403dc25bb9dac3b8b241c44dd6014eb2..591e4fab5af1d11f3893e6e0b997d9cc6616c33a 100644 --- a/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkTimePicker.ts b/arkoala/arkui/src/generated/ArkTimePicker.ts index ab4a2bb662995c675b98d08e08c334f2447f9804..64d235e51567eae0653cb03e8a27e5547fe081e6 100644 --- a/arkoala/arkui/src/generated/ArkTimePicker.ts +++ b/arkoala/arkui/src/generated/ArkTimePicker.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -129,7 +129,6 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { public onChange(value: ((value: TimePickerResult) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: TimePickerResult) => void)) - UseEventsProperties({TimePicker_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -148,7 +147,6 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { public _onChangeEvent_selected(callback: ((parameter: Date) => void)): void { if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: Date) => void)) - UseEventsProperties({TimePicker__onChangeEvent_selected: callback_casted}) this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index 2c014884f4e5592ae729af645dbeb28c72bc1df8..72d3cf70899c26a84c9d129d6b0ca9470b263a88 100644 --- a/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -23,10 +23,11 @@ import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsI import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkToggle.ts b/arkoala/arkui/src/generated/ArkToggle.ts index 4f702e42d7045cb597e2cf98a74080e2b7fe97d3..14d4baefa7fdee39aecc7ef616ac32b9a1625fb5 100644 --- a/arkoala/arkui/src/generated/ArkToggle.ts +++ b/arkoala/arkui/src/generated/ArkToggle.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -75,7 +75,6 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) - UseEventsProperties({Toggle_onChange: value_casted}) this.getPeer()?.onChangeAttribute(value_casted) return this } @@ -121,7 +120,6 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { public _onChangeEvent_isOn(callback: ((parameter: boolean) => void)): void { if (this.checkPriority("_onChangeEvent_isOn")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Toggle__onChangeEvent_isOn: callback_casted}) this.getPeer()?._onChangeEvent_isOnAttribute(callback_casted) return } diff --git a/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts b/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts index 2c9dedf8580681781e72d828f12b533a0e9f75fb..2c8022c8a34a98d382e245978decee5c75e35c1a 100644 --- a/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -21,10 +21,11 @@ import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } fro import { TouchType } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -128,7 +129,14 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize } private getHistoricalPoints_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TouchEvent_getHistoricalPoints(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readHistoricalPoint() + } + const returnResult: Array = buffer + return returnResult } private getType_serialize(): TouchType { const retval = ArkUIGeneratedNativeModule._TouchEvent_getType(this.peer!.ptr) @@ -139,7 +147,14 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize } private getTouches_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTouchObject() + } + const returnResult: Array = buffer + return returnResult } private setTouches_serialize(touches: Array): void { const thisSerializer: Serializer = Serializer.hold() @@ -153,7 +168,14 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize } private getChangedTouches_serialize(): Array { const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readTouchObject() + } + const returnResult: Array = buffer + return returnResult } private setChangedTouches_serialize(changedTouches: Array): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts index 5ed7c9b32ec78d715e62872c6b3e3dd1ac731aef..745bcdcafaaa3982de6da2b79f5244927c6b4997 100644 --- a/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -19,10 +19,11 @@ import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts b/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts index f027b59fba7c2176b5b73a46164b68f341f4be7d..74cd95466259cfb1099447cd6eb00a752c8b3ae3 100644 --- a/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -25,10 +25,11 @@ import { TouchType, KeyType, KeySource, MouseButton, MouseAction } from "./ArkEn import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index 94fbea5f87ebce67b988b4d9fd55a7e9172fca7a..72354bab12fe831bf83f2775e84141cdb61b3b3a 100644 --- a/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts index dfe9612943fa796be922a93f8fbf361565b58c72..e0fc5b73ee177545b0fb163551998a7b45de895f 100644 --- a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts @@ -10864,7 +10864,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _UnifiedData_getTypes(ptr: KPointer): KPointer { + static _UnifiedData_getTypes(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._UnifiedData_getTypes(ptr) @@ -11536,7 +11536,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_ohos_font_getSystemFontList(): KPointer { + static _GlobalScope_ohos_font_getSystemFontList(): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._GlobalScope_ohos_font_getSystemFontList() @@ -12348,7 +12348,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CanvasRenderer_getLineDash(ptr: KPointer): KPointer { + static _CanvasRenderer_getLineDash(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._CanvasRenderer_getLineDash(ptr) @@ -13748,7 +13748,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TouchEvent_getHistoricalPoints(ptr: KPointer): KPointer { + static _TouchEvent_getHistoricalPoints(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TouchEvent_getHistoricalPoints(ptr) @@ -13769,7 +13769,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TouchEvent_getTouches(ptr: KPointer): KPointer { + static _TouchEvent_getTouches(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TouchEvent_getTouches(ptr) @@ -13783,7 +13783,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TouchEvent_getChangedTouches(ptr: KPointer): KPointer { + static _TouchEvent_getChangedTouches(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TouchEvent_getChangedTouches(ptr) @@ -14287,27 +14287,6 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _DynamicNode_ctor(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._DynamicNode_ctor() - } - throw new Error("Not implemented") - } - static _DynamicNode_getFinalizer(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._DynamicNode_getFinalizer() - } - throw new Error("Not implemented") - } - static _DynamicNode_onMove(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._DynamicNode_onMove(ptr, thisArray, thisLength) - } - throw new Error("Not implemented") - } static _ChildrenMainSize_ctor(childDefaultSize: number): KPointer { if ((this._LoadOnce()) == (true)) { @@ -14560,7 +14539,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer { + static _BaseGestureEvent_getFingerList(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._BaseGestureEvent_getFingerList(ptr) @@ -14854,7 +14833,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GestureEvent_getFingerList(ptr: KPointer): KPointer { + static _GestureEvent_getFingerList(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._GestureEvent_getFingerList(ptr) @@ -15204,7 +15183,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KPointer { + static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr) @@ -15708,7 +15687,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _NavPathStack_getAllPathName(ptr: KPointer): KPointer { + static _NavPathStack_getAllPathName(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._NavPathStack_getAllPathName(ptr) @@ -15722,14 +15701,14 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _NavPathStack_getParamByName(ptr: KPointer, name: KStringPtr): KPointer { + static _NavPathStack_getParamByName(ptr: KPointer, name: KStringPtr): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._NavPathStack_getParamByName(ptr, name) } throw new Error("Not implemented") } - static _NavPathStack_getIndexByName(ptr: KPointer, name: KStringPtr): KPointer { + static _NavPathStack_getIndexByName(ptr: KPointer, name: KStringPtr): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._NavPathStack_getIndexByName(ptr, name) @@ -16002,14 +15981,14 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorController_getSpans(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _RichEditorController_getSpans(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorController_getSpans(ptr, thisArray, thisLength) } throw new Error("Not implemented") } - static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorController_getParagraphs(ptr, thisArray, thisLength) @@ -16023,7 +16002,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorController_fromStyledString(ptr: KPointer, value: KPointer): KPointer { + static _RichEditorController_fromStyledString(ptr: KPointer, value: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorController_fromStyledString(ptr, value) @@ -16821,7 +16800,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer { + static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._LayoutManager_getRectsForRange(ptr, thisArray, thisLength, widthStyle, heightStyle) @@ -16919,7 +16898,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._EditMenuOptions_onCreateMenu(ptr, thisArray, thisLength) @@ -17262,7 +17241,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _FileSelectorParam_getAcceptType(ptr: KPointer): KPointer { + static _FileSelectorParam_getAcceptType(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._FileSelectorParam_getAcceptType(ptr) @@ -17465,7 +17444,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _PermissionRequest_getAccessibleResource(ptr: KPointer): KPointer { + static _PermissionRequest_getAccessibleResource(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._PermissionRequest_getAccessibleResource(ptr) @@ -17787,7 +17766,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _WebResourceRequest_getRequestHeader(ptr: KPointer): KPointer { + static _WebResourceRequest_getRequestHeader(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._WebResourceRequest_getRequestHeader(ptr) @@ -17878,7 +17857,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _WebResourceResponse_getResponseHeader(ptr: KPointer): KPointer { + static _WebResourceResponse_getResponseHeader(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._WebResourceResponse_getResponseHeader(ptr) @@ -18326,7 +18305,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _WaterFlowSections_values(ptr: KPointer): KPointer { + static _WaterFlowSections_values(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._WaterFlowSections_values(ptr) @@ -18417,7 +18396,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: Uint8Array, thisLength: int32): KPointer { + static _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._StyledString_getStyles(ptr, start, length, thisArray, thisLength) @@ -18452,7 +18431,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _StyledString_marshalling(styledString: KPointer): ArrayBuffer { + static _StyledString_marshalling(styledString: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._StyledString_marshalling(styledString) @@ -18599,7 +18578,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer { + static _TextShadowStyle_getTextShadow(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextShadowStyle_getTextShadow(ptr) diff --git a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts index 7de54831ff78fdb4fd06045ca75e43b941064bb1..12433a18d1456e14c79ff1b6621063f6e6c0d599 100644 --- a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts @@ -4782,9 +4782,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_UnifiedData_hasType") return false } - _UnifiedData_getTypes(ptr: KPointer): KPointer { + _UnifiedData_getTypes(ptr: KPointer): KInteropReturnBuffer { console.log("_UnifiedData_getTypes") - return -1 + return new Uint8Array() } _LazyForEachOps_ctor(): KPointer { console.log("_LazyForEachOps_ctor") @@ -5151,9 +5151,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _GlobalScope_ohos_font_registerFont(thisArray: Uint8Array, thisLength: int32): void { console.log("_GlobalScope_ohos_font_registerFont") } - _GlobalScope_ohos_font_getSystemFontList(): KPointer { + _GlobalScope_ohos_font_getSystemFontList(): KInteropReturnBuffer { console.log("_GlobalScope_ohos_font_getSystemFontList") - return -1 + return new Uint8Array() } _ScaleSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_ScaleSymbolEffect_ctor") @@ -5575,9 +5575,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _CanvasRenderer_putImageData1(ptr: KPointer, imagedata: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CanvasRenderer_putImageData1") } - _CanvasRenderer_getLineDash(ptr: KPointer): KPointer { + _CanvasRenderer_getLineDash(ptr: KPointer): KInteropReturnBuffer { console.log("_CanvasRenderer_getLineDash") - return -1 + return new Uint8Array() } _CanvasRenderer_setLineDash(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CanvasRenderer_setLineDash") @@ -6285,9 +6285,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TouchEvent_getFinalizer") return -1 } - _TouchEvent_getHistoricalPoints(ptr: KPointer): KPointer { + _TouchEvent_getHistoricalPoints(ptr: KPointer): KInteropReturnBuffer { console.log("_TouchEvent_getHistoricalPoints") - return -1 + return new Uint8Array() } _TouchEvent_getType(ptr: KPointer): KPointer { console.log("_TouchEvent_getType") @@ -6296,16 +6296,16 @@ export class ArkUIGeneratedNativeModuleEmpty { _TouchEvent_setType(ptr: KPointer, type: KInt): void { console.log("_TouchEvent_setType") } - _TouchEvent_getTouches(ptr: KPointer): KPointer { + _TouchEvent_getTouches(ptr: KPointer): KInteropReturnBuffer { console.log("_TouchEvent_getTouches") - return -1 + return new Uint8Array() } _TouchEvent_setTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setTouches") } - _TouchEvent_getChangedTouches(ptr: KPointer): KPointer { + _TouchEvent_getChangedTouches(ptr: KPointer): KInteropReturnBuffer { console.log("_TouchEvent_getChangedTouches") - return -1 + return new Uint8Array() } _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setChangedTouches") @@ -6570,18 +6570,6 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextContentControllerBase_getTextContentLineCount") return 1 } - _DynamicNode_ctor(): KPointer { - console.log("_DynamicNode_ctor") - return -1 - } - _DynamicNode_getFinalizer(): KPointer { - console.log("_DynamicNode_getFinalizer") - return -1 - } - _DynamicNode_onMove(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { - console.log("_DynamicNode_onMove") - return -1 - } _ChildrenMainSize_ctor(childDefaultSize: number): KPointer { console.log("_ChildrenMainSize_ctor") return -1 @@ -6711,9 +6699,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_BaseGestureEvent_getFinalizer") return -1 } - _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer { + _BaseGestureEvent_getFingerList(ptr: KPointer): KInteropReturnBuffer { console.log("_BaseGestureEvent_getFingerList") - return -1 + return new Uint8Array() } _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_BaseGestureEvent_setFingerList") @@ -6865,9 +6853,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureEvent_setRepeat(ptr: KPointer, repeat: KInt): void { console.log("_GestureEvent_setRepeat") } - _GestureEvent_getFingerList(ptr: KPointer): KPointer { + _GestureEvent_getFingerList(ptr: KPointer): KInteropReturnBuffer { console.log("_GestureEvent_getFingerList") - return -1 + return new Uint8Array() } _GestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureEvent_setFingerList") @@ -7053,9 +7041,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_ImageAnalyzerController_getFinalizer") return -1 } - _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KPointer { + _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KInteropReturnBuffer { console.log("_ImageAnalyzerController_getImageAnalyzerSupportTypes") - return -1 + return new Uint8Array() } _ListScroller_ctor(): KPointer { console.log("_ListScroller_ctor") @@ -7315,21 +7303,21 @@ export class ArkUIGeneratedNativeModuleEmpty { _NavPathStack_clear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_NavPathStack_clear") } - _NavPathStack_getAllPathName(ptr: KPointer): KPointer { + _NavPathStack_getAllPathName(ptr: KPointer): KInteropReturnBuffer { console.log("_NavPathStack_getAllPathName") - return -1 + return new Uint8Array() } _NavPathStack_getParamByIndex(ptr: KPointer, index: number): KPointer { console.log("_NavPathStack_getParamByIndex") return -1 } - _NavPathStack_getParamByName(ptr: KPointer, name: KStringPtr): KPointer { + _NavPathStack_getParamByName(ptr: KPointer, name: KStringPtr): KInteropReturnBuffer { console.log("_NavPathStack_getParamByName") - return -1 + return new Uint8Array() } - _NavPathStack_getIndexByName(ptr: KPointer, name: KStringPtr): KPointer { + _NavPathStack_getIndexByName(ptr: KPointer, name: KStringPtr): KInteropReturnBuffer { console.log("_NavPathStack_getIndexByName") - return -1 + return new Uint8Array() } _NavPathStack_getParent(ptr: KPointer): KPointer { console.log("_NavPathStack_getParent") @@ -7467,21 +7455,21 @@ export class ArkUIGeneratedNativeModuleEmpty { _RichEditorController_deleteSpans(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RichEditorController_deleteSpans") } - _RichEditorController_getSpans(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _RichEditorController_getSpans(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_RichEditorController_getSpans") - return -1 + return new Uint8Array() } - _RichEditorController_getParagraphs(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _RichEditorController_getParagraphs(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_RichEditorController_getParagraphs") - return -1 + return new Uint8Array() } _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorController_getSelection") return new Uint8Array() } - _RichEditorController_fromStyledString(ptr: KPointer, value: KPointer): KPointer { + _RichEditorController_fromStyledString(ptr: KPointer, value: KPointer): KInteropReturnBuffer { console.log("_RichEditorController_fromStyledString") - return -1 + return new Uint8Array() } _RichEditorController_toStyledString(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_RichEditorController_toStyledString") @@ -7901,9 +7889,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_LayoutManager_getLineMetrics") return new Uint8Array() } - _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer { + _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KInteropReturnBuffer { console.log("_LayoutManager_getRectsForRange") - return -1 + return new Uint8Array() } _TextMenuItemId_ctor(): KPointer { console.log("_TextMenuItemId_ctor") @@ -7957,9 +7945,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_EditMenuOptions_getFinalizer") return -1 } - _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_EditMenuOptions_onCreateMenu") - return -1 + return new Uint8Array() } _EditMenuOptions_onMenuItemClick(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): boolean { console.log("_EditMenuOptions_onMenuItemClick") @@ -8141,9 +8129,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_FileSelectorParam_getMode") return -1 } - _FileSelectorParam_getAcceptType(ptr: KPointer): KPointer { + _FileSelectorParam_getAcceptType(ptr: KPointer): KInteropReturnBuffer { console.log("_FileSelectorParam_getAcceptType") - return -1 + return new Uint8Array() } _FileSelectorParam_isCapture(ptr: KPointer): boolean { console.log("_FileSelectorParam_isCapture") @@ -8245,9 +8233,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_PermissionRequest_getOrigin") return "" } - _PermissionRequest_getAccessibleResource(ptr: KPointer): KPointer { + _PermissionRequest_getAccessibleResource(ptr: KPointer): KInteropReturnBuffer { console.log("_PermissionRequest_getAccessibleResource") - return -1 + return new Uint8Array() } _PermissionRequest_grant(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_PermissionRequest_grant") @@ -8417,9 +8405,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_WebResourceRequest_getFinalizer") return -1 } - _WebResourceRequest_getRequestHeader(ptr: KPointer): KPointer { + _WebResourceRequest_getRequestHeader(ptr: KPointer): KInteropReturnBuffer { console.log("_WebResourceRequest_getRequestHeader") - return -1 + return new Uint8Array() } _WebResourceRequest_getRequestUrl(ptr: KPointer): string { console.log("_WebResourceRequest_getRequestUrl") @@ -8469,9 +8457,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_WebResourceResponse_getReasonMessage") return "" } - _WebResourceResponse_getResponseHeader(ptr: KPointer): KPointer { + _WebResourceResponse_getResponseHeader(ptr: KPointer): KInteropReturnBuffer { console.log("_WebResourceResponse_getResponseHeader") - return -1 + return new Uint8Array() } _WebResourceResponse_getResponseCode(ptr: KPointer): number { console.log("_WebResourceResponse_getResponseCode") @@ -8705,9 +8693,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_WaterFlowSections_update") return false } - _WaterFlowSections_values(ptr: KPointer): KPointer { + _WaterFlowSections_values(ptr: KPointer): KInteropReturnBuffer { console.log("_WaterFlowSections_values") - return -1 + return new Uint8Array() } _WaterFlowSections_length(ptr: KPointer): number { console.log("_WaterFlowSections_length") @@ -8752,9 +8740,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_StyledString_getString") return "" } - _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: Uint8Array, thisLength: int32): KPointer { + _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_StyledString_getStyles") - return -1 + return new Uint8Array() } _StyledString_equals(ptr: KPointer, other: KPointer): boolean { console.log("_StyledString_equals") @@ -8772,9 +8760,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_StyledString_toHtml") return "" } - _StyledString_marshalling(styledString: KPointer): ArrayBuffer { + _StyledString_marshalling(styledString: KPointer): KInteropReturnBuffer { console.log("_StyledString_marshalling") - return new ArrayBuffer(8) + return new Uint8Array() } _StyledString_unmarshalling(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_StyledString_unmarshalling") @@ -8856,9 +8844,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextShadowStyle_getFinalizer") return -1 } - _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer { + _TextShadowStyle_getTextShadow(ptr: KPointer): KInteropReturnBuffer { console.log("_TextShadowStyle_getTextShadow") - return -1 + return new Uint8Array() } _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_BackgroundColorStyle_ctor") diff --git a/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts b/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts index be2c63d4937db5b280e3e16061b6b9700e3f03f4..7550801e276e7770b46a2ecf05e88fd872ff26f1 100644 --- a/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts +++ b/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -78,7 +78,6 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { public onRemoteReady(value: ((parameter: UIExtensionProxy) => void)): this { if (this.checkPriority("onRemoteReady")) { const value_casted = value as (((parameter: UIExtensionProxy) => void)) - UseEventsProperties({UIExtensionComponent_onRemoteReady: value_casted}) this.getPeer()?.onRemoteReadyAttribute(value_casted) return this } @@ -97,7 +96,6 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { public onResult(value: ((parameter: { code: number, want?: Want }) => void)): this { if (this.checkPriority("onResult")) { const value_casted = value as (((parameter: { code: number, want?: Want }) => void)) - UseEventsProperties({UIExtensionComponent_onResult: value_casted}) this.getPeer()?.onResultAttribute(value_casted) return this } @@ -107,7 +105,6 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { public onRelease(value: ((index: number) => void)): this { if (this.checkPriority("onRelease")) { const value_casted = value as (((index: number) => void)) - UseEventsProperties({UIExtensionComponent_onRelease: value_casted}) this.getPeer()?.onReleaseAttribute(value_casted) return this } @@ -117,7 +114,6 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { public onError(value: ErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ErrorCallback) - UseEventsProperties({UIExtensionComponent_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } @@ -127,7 +123,6 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { public onTerminated(value: ((parameter: TerminationInfo) => void)): this { if (this.checkPriority("onTerminated")) { const value_casted = value as (((parameter: TerminationInfo) => void)) - UseEventsProperties({UIExtensionComponent_onTerminated: value_casted}) this.getPeer()?.onTerminatedAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts b/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts index b1de5205a45794197cfea48449de5977e4a93307..b838df6a394940b9501b5dc9eb80b85af30fd50c 100644 --- a/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,6 +60,13 @@ export class UnifiedData implements MaterializedBase { } private getTypes_serialize(): Array { const retval = ArkUIGeneratedNativeModule._UnifiedData_getTypes(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = (retvalDeserializer.readString() as string) + } + const returnResult: Array = buffer + return returnResult } } diff --git a/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts index 0ebf0bd8698e813a62d0488da19f5c22a4f91d83..a549afaef93152b679e6029ab0ce6e377f134a0f 100644 --- a/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkVideo.ts b/arkoala/arkui/src/generated/ArkVideo.ts index 7c6490401921fd3338e44b99d2e5945761e5a6ba..cbf0a7e5dfb0268967b013e09c59a339862b30bd 100644 --- a/arkoala/arkui/src/generated/ArkVideo.ts +++ b/arkoala/arkui/src/generated/ArkVideo.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -123,7 +123,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onStart(value: VoidCallback): this { if (this.checkPriority("onStart")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Video_onStart: value_casted}) this.getPeer()?.onStartAttribute(value_casted) return this } @@ -133,7 +132,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onPause(value: VoidCallback): this { if (this.checkPriority("onPause")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Video_onPause: value_casted}) this.getPeer()?.onPauseAttribute(value_casted) return this } @@ -143,7 +141,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onFinish(value: VoidCallback): this { if (this.checkPriority("onFinish")) { const value_casted = value as (VoidCallback) - UseEventsProperties({Video_onFinish: value_casted}) this.getPeer()?.onFinishAttribute(value_casted) return this } @@ -153,7 +150,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onFullscreenChange(value: ((parameter: FullscreenInfo) => void)): this { if (this.checkPriority("onFullscreenChange")) { const value_casted = value as (((parameter: FullscreenInfo) => void)) - UseEventsProperties({Video_onFullscreenChange: value_casted}) this.getPeer()?.onFullscreenChangeAttribute(value_casted) return this } @@ -163,7 +159,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onPrepared(value: ((parameter: PreparedInfo) => void)): this { if (this.checkPriority("onPrepared")) { const value_casted = value as (((parameter: PreparedInfo) => void)) - UseEventsProperties({Video_onPrepared: value_casted}) this.getPeer()?.onPreparedAttribute(value_casted) return this } @@ -173,7 +168,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onSeeking(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onSeeking")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) - UseEventsProperties({Video_onSeeking: value_casted}) this.getPeer()?.onSeekingAttribute(value_casted) return this } @@ -183,7 +177,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onSeeked(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onSeeked")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) - UseEventsProperties({Video_onSeeked: value_casted}) this.getPeer()?.onSeekedAttribute(value_casted) return this } @@ -193,7 +186,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onUpdate(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onUpdate")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) - UseEventsProperties({Video_onUpdate: value_casted}) this.getPeer()?.onUpdateAttribute(value_casted) return this } @@ -203,7 +195,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onError(value: (() => void)): this { if (this.checkPriority("onError")) { const value_casted = value as ((() => void)) - UseEventsProperties({Video_onError: value_casted}) this.getPeer()?.onErrorAttribute(value_casted) return this } @@ -213,7 +204,6 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { public onStop(value: (() => void)): this { if (this.checkPriority("onStop")) { const value_casted = value as ((() => void)) - UseEventsProperties({Video_onStop: value_casted}) this.getPeer()?.onStopAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts index f004039f013c2bfe466abcdd2f44f99ddac130e6..63350c3862c14f3e020440e0fe5fec6625da8972 100644 --- a/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SeekMode } from "./ArkVideoInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkViewMaterialized.ts b/arkoala/arkui/src/generated/ArkViewMaterialized.ts index 1c4b72ae5186272983a2a027ed20cadbb6868d2a..d4e40e3f04a1ca36ee1009aea1ac8ed5bc89eb1e 100644 --- a/arkoala/arkui/src/generated/ArkViewMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkViewMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWaterFlow.ts b/arkoala/arkui/src/generated/ArkWaterFlow.ts index f5225f5202fd6243d50f67ce9c12906113b9c57e..f1dadff9ee970a364a17bcbd068c5e8608c1ccfc 100644 --- a/arkoala/arkui/src/generated/ArkWaterFlow.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlow.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" -import { UseEventsProperties } from "./use_properties" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -180,7 +180,6 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) - UseEventsProperties({WaterFlow_onReachStart: value_casted}) this.getPeer()?.onReachStartAttribute(value_casted) return this } @@ -190,7 +189,6 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) - UseEventsProperties({WaterFlow_onReachEnd: value_casted}) this.getPeer()?.onReachEndAttribute(value_casted) return this } @@ -200,7 +198,6 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { public onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number, state: ScrollState) => { offsetRemain: number })) - UseEventsProperties({WaterFlow_onScrollFrameBegin: value_casted}) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) return this } @@ -210,7 +207,6 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { public onScrollIndex(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((first: number, last: number) => void)) - UseEventsProperties({WaterFlow_onScrollIndex: value_casted}) this.getPeer()?.onScrollIndexAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts b/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index b36ebea0e83ba6522dd43cb8edea89dac6869a95..e0c232eebae953836f3f7446939bd2849c36d4ee 100644 --- a/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -18,10 +18,11 @@ import { SectionOptions, GetItemMainSizeByIndex } from "./ArkWaterFlowInterfaces" import { Dimension, Margin } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -109,7 +110,14 @@ export class WaterFlowSections implements MaterializedBase { } private values_serialize(): Array { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_values(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array = new Array(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readSectionOptions() + } + const returnResult: Array = buffer + return returnResult } private length_serialize(): number { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_length(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkWeb.ts b/arkoala/arkui/src/generated/ArkWeb.ts index d5e8b2e4ebd25697f9f71e1f893f7a6a32207577..1b7bcc0ac2522f4bbc4dad31c434be0988e41291 100644 --- a/arkoala/arkui/src/generated/ArkWeb.ts +++ b/arkoala/arkui/src/generated/ArkWeb.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -315,7 +315,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onPageEnd(value: ((parameter: OnPageEndEvent) => void)): this { if (this.checkPriority("onPageEnd")) { const value_casted = value as (((parameter: OnPageEndEvent) => void)) - UseEventsProperties({Web_onPageEnd: value_casted}) this.getPeer()?.onPageEndAttribute(value_casted) return this } @@ -325,7 +324,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onPageBegin(value: ((parameter: OnPageBeginEvent) => void)): this { if (this.checkPriority("onPageBegin")) { const value_casted = value as (((parameter: OnPageBeginEvent) => void)) - UseEventsProperties({Web_onPageBegin: value_casted}) this.getPeer()?.onPageBeginAttribute(value_casted) return this } @@ -335,7 +333,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onProgressChange(value: ((parameter: OnProgressChangeEvent) => void)): this { if (this.checkPriority("onProgressChange")) { const value_casted = value as (((parameter: OnProgressChangeEvent) => void)) - UseEventsProperties({Web_onProgressChange: value_casted}) this.getPeer()?.onProgressChangeAttribute(value_casted) return this } @@ -345,7 +342,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onTitleReceive(value: ((parameter: OnTitleReceiveEvent) => void)): this { if (this.checkPriority("onTitleReceive")) { const value_casted = value as (((parameter: OnTitleReceiveEvent) => void)) - UseEventsProperties({Web_onTitleReceive: value_casted}) this.getPeer()?.onTitleReceiveAttribute(value_casted) return this } @@ -355,7 +351,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onGeolocationHide(value: (() => void)): this { if (this.checkPriority("onGeolocationHide")) { const value_casted = value as ((() => void)) - UseEventsProperties({Web_onGeolocationHide: value_casted}) this.getPeer()?.onGeolocationHideAttribute(value_casted) return this } @@ -365,7 +360,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onGeolocationShow(value: ((parameter: OnGeolocationShowEvent) => void)): this { if (this.checkPriority("onGeolocationShow")) { const value_casted = value as (((parameter: OnGeolocationShowEvent) => void)) - UseEventsProperties({Web_onGeolocationShow: value_casted}) this.getPeer()?.onGeolocationShowAttribute(value_casted) return this } @@ -375,7 +369,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRequestSelected(value: (() => void)): this { if (this.checkPriority("onRequestSelected")) { const value_casted = value as ((() => void)) - UseEventsProperties({Web_onRequestSelected: value_casted}) this.getPeer()?.onRequestSelectedAttribute(value_casted) return this } @@ -385,7 +378,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onAlert(value: ((parameter: OnAlertEvent) => boolean)): this { if (this.checkPriority("onAlert")) { const value_casted = value as (((parameter: OnAlertEvent) => boolean)) - UseEventsProperties({Web_onAlert: value_casted}) this.getPeer()?.onAlertAttribute(value_casted) return this } @@ -395,7 +387,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onBeforeUnload(value: ((parameter: OnBeforeUnloadEvent) => boolean)): this { if (this.checkPriority("onBeforeUnload")) { const value_casted = value as (((parameter: OnBeforeUnloadEvent) => boolean)) - UseEventsProperties({Web_onBeforeUnload: value_casted}) this.getPeer()?.onBeforeUnloadAttribute(value_casted) return this } @@ -405,7 +396,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onConfirm(value: ((parameter: OnConfirmEvent) => boolean)): this { if (this.checkPriority("onConfirm")) { const value_casted = value as (((parameter: OnConfirmEvent) => boolean)) - UseEventsProperties({Web_onConfirm: value_casted}) this.getPeer()?.onConfirmAttribute(value_casted) return this } @@ -415,7 +405,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onPrompt(value: ((parameter: OnPromptEvent) => boolean)): this { if (this.checkPriority("onPrompt")) { const value_casted = value as (((parameter: OnPromptEvent) => boolean)) - UseEventsProperties({Web_onPrompt: value_casted}) this.getPeer()?.onPromptAttribute(value_casted) return this } @@ -425,7 +414,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onConsole(value: ((parameter: OnConsoleEvent) => boolean)): this { if (this.checkPriority("onConsole")) { const value_casted = value as (((parameter: OnConsoleEvent) => boolean)) - UseEventsProperties({Web_onConsole: value_casted}) this.getPeer()?.onConsoleAttribute(value_casted) return this } @@ -435,7 +423,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onErrorReceive(value: ((parameter: OnErrorReceiveEvent) => void)): this { if (this.checkPriority("onErrorReceive")) { const value_casted = value as (((parameter: OnErrorReceiveEvent) => void)) - UseEventsProperties({Web_onErrorReceive: value_casted}) this.getPeer()?.onErrorReceiveAttribute(value_casted) return this } @@ -445,7 +432,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onHttpErrorReceive(value: ((parameter: OnHttpErrorReceiveEvent) => void)): this { if (this.checkPriority("onHttpErrorReceive")) { const value_casted = value as (((parameter: OnHttpErrorReceiveEvent) => void)) - UseEventsProperties({Web_onHttpErrorReceive: value_casted}) this.getPeer()?.onHttpErrorReceiveAttribute(value_casted) return this } @@ -455,7 +441,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onDownloadStart(value: ((parameter: OnDownloadStartEvent) => void)): this { if (this.checkPriority("onDownloadStart")) { const value_casted = value as (((parameter: OnDownloadStartEvent) => void)) - UseEventsProperties({Web_onDownloadStart: value_casted}) this.getPeer()?.onDownloadStartAttribute(value_casted) return this } @@ -465,7 +450,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRefreshAccessedHistory(value: ((parameter: OnRefreshAccessedHistoryEvent) => void)): this { if (this.checkPriority("onRefreshAccessedHistory")) { const value_casted = value as (((parameter: OnRefreshAccessedHistoryEvent) => void)) - UseEventsProperties({Web_onRefreshAccessedHistory: value_casted}) this.getPeer()?.onRefreshAccessedHistoryAttribute(value_casted) return this } @@ -475,7 +459,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onUrlLoadIntercept(value: ((event?: { data: string | WebResourceRequest }) => boolean)): this { if (this.checkPriority("onUrlLoadIntercept")) { const value_casted = value as (((event?: { data: string | WebResourceRequest }) => boolean)) - UseEventsProperties({Web_onUrlLoadIntercept: value_casted}) this.getPeer()?.onUrlLoadInterceptAttribute(value_casted) return this } @@ -485,7 +468,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onSslErrorReceive(value: ((event?: { handler: Function, error: Object }) => void)): this { if (this.checkPriority("onSslErrorReceive")) { const value_casted = value as (((event?: { handler: Function, error: Object }) => void)) - UseEventsProperties({Web_onSslErrorReceive: value_casted}) this.getPeer()?.onSslErrorReceiveAttribute(value_casted) return this } @@ -497,13 +479,11 @@ export class ArkWebComponent extends ArkCommonMethodComponent { const value_type = runtimeType(value) if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((parameter: OnRenderExitedEvent) => void)) - UseEventsProperties({Web_onRenderExited0: value_casted}) this.getPeer()?.onRenderExited0Attribute(value_casted) return this } if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((event?: { detail: Object }) => boolean)) - UseEventsProperties({Web_onRenderExited1: value_casted}) this.getPeer()?.onRenderExited1Attribute(value_casted) return this } @@ -515,7 +495,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onShowFileSelector(value: ((parameter: OnShowFileSelectorEvent) => boolean)): this { if (this.checkPriority("onShowFileSelector")) { const value_casted = value as (((parameter: OnShowFileSelectorEvent) => boolean)) - UseEventsProperties({Web_onShowFileSelector: value_casted}) this.getPeer()?.onShowFileSelectorAttribute(value_casted) return this } @@ -525,7 +504,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onFileSelectorShow(value: ((event?: { callback_: Function, fileSelector: Object }) => void)): this { if (this.checkPriority("onFileSelectorShow")) { const value_casted = value as (((event?: { callback_: Function, fileSelector: Object }) => void)) - UseEventsProperties({Web_onFileSelectorShow: value_casted}) this.getPeer()?.onFileSelectorShowAttribute(value_casted) return this } @@ -535,7 +513,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onResourceLoad(value: ((parameter: OnResourceLoadEvent) => void)): this { if (this.checkPriority("onResourceLoad")) { const value_casted = value as (((parameter: OnResourceLoadEvent) => void)) - UseEventsProperties({Web_onResourceLoad: value_casted}) this.getPeer()?.onResourceLoadAttribute(value_casted) return this } @@ -545,7 +522,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onFullScreenExit(value: (() => void)): this { if (this.checkPriority("onFullScreenExit")) { const value_casted = value as ((() => void)) - UseEventsProperties({Web_onFullScreenExit: value_casted}) this.getPeer()?.onFullScreenExitAttribute(value_casted) return this } @@ -555,7 +531,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onFullScreenEnter(value: OnFullScreenEnterCallback): this { if (this.checkPriority("onFullScreenEnter")) { const value_casted = value as (OnFullScreenEnterCallback) - UseEventsProperties({Web_onFullScreenEnter: value_casted}) this.getPeer()?.onFullScreenEnterAttribute(value_casted) return this } @@ -565,7 +540,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onScaleChange(value: ((parameter: OnScaleChangeEvent) => void)): this { if (this.checkPriority("onScaleChange")) { const value_casted = value as (((parameter: OnScaleChangeEvent) => void)) - UseEventsProperties({Web_onScaleChange: value_casted}) this.getPeer()?.onScaleChangeAttribute(value_casted) return this } @@ -575,7 +549,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onHttpAuthRequest(value: ((parameter: OnHttpAuthRequestEvent) => boolean)): this { if (this.checkPriority("onHttpAuthRequest")) { const value_casted = value as (((parameter: OnHttpAuthRequestEvent) => boolean)) - UseEventsProperties({Web_onHttpAuthRequest: value_casted}) this.getPeer()?.onHttpAuthRequestAttribute(value_casted) return this } @@ -585,7 +558,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onInterceptRequest(value: ((parameter: OnInterceptRequestEvent) => WebResourceResponse)): this { if (this.checkPriority("onInterceptRequest")) { const value_casted = value as (((parameter: OnInterceptRequestEvent) => WebResourceResponse)) - UseEventsProperties({Web_onInterceptRequest: value_casted}) this.getPeer()?.onInterceptRequestAttribute(value_casted) return this } @@ -595,7 +567,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onPermissionRequest(value: ((parameter: OnPermissionRequestEvent) => void)): this { if (this.checkPriority("onPermissionRequest")) { const value_casted = value as (((parameter: OnPermissionRequestEvent) => void)) - UseEventsProperties({Web_onPermissionRequest: value_casted}) this.getPeer()?.onPermissionRequestAttribute(value_casted) return this } @@ -605,7 +576,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onScreenCaptureRequest(value: ((parameter: OnScreenCaptureRequestEvent) => void)): this { if (this.checkPriority("onScreenCaptureRequest")) { const value_casted = value as (((parameter: OnScreenCaptureRequestEvent) => void)) - UseEventsProperties({Web_onScreenCaptureRequest: value_casted}) this.getPeer()?.onScreenCaptureRequestAttribute(value_casted) return this } @@ -615,7 +585,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onContextMenuShow(value: ((parameter: OnContextMenuShowEvent) => boolean)): this { if (this.checkPriority("onContextMenuShow")) { const value_casted = value as (((parameter: OnContextMenuShowEvent) => boolean)) - UseEventsProperties({Web_onContextMenuShow: value_casted}) this.getPeer()?.onContextMenuShowAttribute(value_casted) return this } @@ -625,7 +594,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onContextMenuHide(value: OnContextMenuHideCallback): this { if (this.checkPriority("onContextMenuHide")) { const value_casted = value as (OnContextMenuHideCallback) - UseEventsProperties({Web_onContextMenuHide: value_casted}) this.getPeer()?.onContextMenuHideAttribute(value_casted) return this } @@ -644,7 +612,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onSearchResultReceive(value: ((parameter: OnSearchResultReceiveEvent) => void)): this { if (this.checkPriority("onSearchResultReceive")) { const value_casted = value as (((parameter: OnSearchResultReceiveEvent) => void)) - UseEventsProperties({Web_onSearchResultReceive: value_casted}) this.getPeer()?.onSearchResultReceiveAttribute(value_casted) return this } @@ -654,7 +621,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onScroll(value: ((parameter: OnScrollEvent) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((parameter: OnScrollEvent) => void)) - UseEventsProperties({Web_onScroll: value_casted}) this.getPeer()?.onScrollAttribute(value_casted) return this } @@ -664,7 +630,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onSslErrorEventReceive(value: ((parameter: OnSslErrorEventReceiveEvent) => void)): this { if (this.checkPriority("onSslErrorEventReceive")) { const value_casted = value as (((parameter: OnSslErrorEventReceiveEvent) => void)) - UseEventsProperties({Web_onSslErrorEventReceive: value_casted}) this.getPeer()?.onSslErrorEventReceiveAttribute(value_casted) return this } @@ -674,7 +639,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onSslErrorEvent(value: OnSslErrorEventCallback): this { if (this.checkPriority("onSslErrorEvent")) { const value_casted = value as (OnSslErrorEventCallback) - UseEventsProperties({Web_onSslErrorEvent: value_casted}) this.getPeer()?.onSslErrorEventAttribute(value_casted) return this } @@ -684,7 +648,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onClientAuthenticationRequest(value: ((parameter: OnClientAuthenticationEvent) => void)): this { if (this.checkPriority("onClientAuthenticationRequest")) { const value_casted = value as (((parameter: OnClientAuthenticationEvent) => void)) - UseEventsProperties({Web_onClientAuthenticationRequest: value_casted}) this.getPeer()?.onClientAuthenticationRequestAttribute(value_casted) return this } @@ -694,7 +657,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onWindowNew(value: ((parameter: OnWindowNewEvent) => void)): this { if (this.checkPriority("onWindowNew")) { const value_casted = value as (((parameter: OnWindowNewEvent) => void)) - UseEventsProperties({Web_onWindowNew: value_casted}) this.getPeer()?.onWindowNewAttribute(value_casted) return this } @@ -704,7 +666,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onWindowExit(value: (() => void)): this { if (this.checkPriority("onWindowExit")) { const value_casted = value as ((() => void)) - UseEventsProperties({Web_onWindowExit: value_casted}) this.getPeer()?.onWindowExitAttribute(value_casted) return this } @@ -723,7 +684,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onInterceptKeyEvent(value: ((parameter: KeyEvent) => boolean)): this { if (this.checkPriority("onInterceptKeyEvent")) { const value_casted = value as (((parameter: KeyEvent) => boolean)) - UseEventsProperties({Web_onInterceptKeyEvent: value_casted}) this.getPeer()?.onInterceptKeyEventAttribute(value_casted) return this } @@ -868,7 +828,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onTouchIconUrlReceived(value: ((parameter: OnTouchIconUrlReceivedEvent) => void)): this { if (this.checkPriority("onTouchIconUrlReceived")) { const value_casted = value as (((parameter: OnTouchIconUrlReceivedEvent) => void)) - UseEventsProperties({Web_onTouchIconUrlReceived: value_casted}) this.getPeer()?.onTouchIconUrlReceivedAttribute(value_casted) return this } @@ -878,7 +837,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onFaviconReceived(value: ((parameter: OnFaviconReceivedEvent) => void)): this { if (this.checkPriority("onFaviconReceived")) { const value_casted = value as (((parameter: OnFaviconReceivedEvent) => void)) - UseEventsProperties({Web_onFaviconReceived: value_casted}) this.getPeer()?.onFaviconReceivedAttribute(value_casted) return this } @@ -888,7 +846,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onPageVisible(value: ((parameter: OnPageVisibleEvent) => void)): this { if (this.checkPriority("onPageVisible")) { const value_casted = value as (((parameter: OnPageVisibleEvent) => void)) - UseEventsProperties({Web_onPageVisible: value_casted}) this.getPeer()?.onPageVisibleAttribute(value_casted) return this } @@ -898,7 +855,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onDataResubmitted(value: ((parameter: OnDataResubmittedEvent) => void)): this { if (this.checkPriority("onDataResubmitted")) { const value_casted = value as (((parameter: OnDataResubmittedEvent) => void)) - UseEventsProperties({Web_onDataResubmitted: value_casted}) this.getPeer()?.onDataResubmittedAttribute(value_casted) return this } @@ -926,7 +882,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onAudioStateChanged(value: ((parameter: OnAudioStateChangedEvent) => void)): this { if (this.checkPriority("onAudioStateChanged")) { const value_casted = value as (((parameter: OnAudioStateChangedEvent) => void)) - UseEventsProperties({Web_onAudioStateChanged: value_casted}) this.getPeer()?.onAudioStateChangedAttribute(value_casted) return this } @@ -936,7 +891,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onFirstContentfulPaint(value: ((parameter: OnFirstContentfulPaintEvent) => void)): this { if (this.checkPriority("onFirstContentfulPaint")) { const value_casted = value as (((parameter: OnFirstContentfulPaintEvent) => void)) - UseEventsProperties({Web_onFirstContentfulPaint: value_casted}) this.getPeer()?.onFirstContentfulPaintAttribute(value_casted) return this } @@ -946,7 +900,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback): this { if (this.checkPriority("onFirstMeaningfulPaint")) { const value_casted = value as (OnFirstMeaningfulPaintCallback) - UseEventsProperties({Web_onFirstMeaningfulPaint: value_casted}) this.getPeer()?.onFirstMeaningfulPaintAttribute(value_casted) return this } @@ -956,7 +909,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onLargestContentfulPaint(value: OnLargestContentfulPaintCallback): this { if (this.checkPriority("onLargestContentfulPaint")) { const value_casted = value as (OnLargestContentfulPaintCallback) - UseEventsProperties({Web_onLargestContentfulPaint: value_casted}) this.getPeer()?.onLargestContentfulPaintAttribute(value_casted) return this } @@ -966,7 +918,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onLoadIntercept(value: ((parameter: OnLoadInterceptEvent) => boolean)): this { if (this.checkPriority("onLoadIntercept")) { const value_casted = value as (((parameter: OnLoadInterceptEvent) => boolean)) - UseEventsProperties({Web_onLoadIntercept: value_casted}) this.getPeer()?.onLoadInterceptAttribute(value_casted) return this } @@ -976,7 +927,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onControllerAttached(value: (() => void)): this { if (this.checkPriority("onControllerAttached")) { const value_casted = value as ((() => void)) - UseEventsProperties({Web_onControllerAttached: value_casted}) this.getPeer()?.onControllerAttachedAttribute(value_casted) return this } @@ -986,7 +936,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onOverScroll(value: ((parameter: OnOverScrollEvent) => void)): this { if (this.checkPriority("onOverScroll")) { const value_casted = value as (((parameter: OnOverScrollEvent) => void)) - UseEventsProperties({Web_onOverScroll: value_casted}) this.getPeer()?.onOverScrollAttribute(value_casted) return this } @@ -996,7 +945,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback): this { if (this.checkPriority("onSafeBrowsingCheckResult")) { const value_casted = value as (OnSafeBrowsingCheckResultCallback) - UseEventsProperties({Web_onSafeBrowsingCheckResult: value_casted}) this.getPeer()?.onSafeBrowsingCheckResultAttribute(value_casted) return this } @@ -1006,7 +954,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback): this { if (this.checkPriority("onNavigationEntryCommitted")) { const value_casted = value as (OnNavigationEntryCommittedCallback) - UseEventsProperties({Web_onNavigationEntryCommitted: value_casted}) this.getPeer()?.onNavigationEntryCommittedAttribute(value_casted) return this } @@ -1016,7 +963,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback): this { if (this.checkPriority("onIntelligentTrackingPreventionResult")) { const value_casted = value as (OnIntelligentTrackingPreventionCallback) - UseEventsProperties({Web_onIntelligentTrackingPreventionResult: value_casted}) this.getPeer()?.onIntelligentTrackingPreventionResultAttribute(value_casted) return this } @@ -1071,7 +1017,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void)): this { if (this.checkPriority("onNativeEmbedLifecycleChange")) { const value_casted = value as (((event: NativeEmbedDataInfo) => void)) - UseEventsProperties({Web_onNativeEmbedLifecycleChange: value_casted}) this.getPeer()?.onNativeEmbedLifecycleChangeAttribute(value_casted) return this } @@ -1081,7 +1026,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback): this { if (this.checkPriority("onNativeEmbedVisibilityChange")) { const value_casted = value as (OnNativeEmbedVisibilityChangeCallback) - UseEventsProperties({Web_onNativeEmbedVisibilityChange: value_casted}) this.getPeer()?.onNativeEmbedVisibilityChangeAttribute(value_casted) return this } @@ -1091,7 +1035,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void)): this { if (this.checkPriority("onNativeEmbedGestureEvent")) { const value_casted = value as (((event: NativeEmbedTouchInfo) => void)) - UseEventsProperties({Web_onNativeEmbedGestureEvent: value_casted}) this.getPeer()?.onNativeEmbedGestureEventAttribute(value_casted) return this } @@ -1110,7 +1053,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback): this { if (this.checkPriority("onOverrideUrlLoading")) { const value_casted = value as (OnOverrideUrlLoadingCallback) - UseEventsProperties({Web_onOverrideUrlLoading: value_casted}) this.getPeer()?.onOverrideUrlLoadingAttribute(value_casted) return this } @@ -1147,7 +1089,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback): this { if (this.checkPriority("onRenderProcessNotResponding")) { const value_casted = value as (OnRenderProcessNotRespondingCallback) - UseEventsProperties({Web_onRenderProcessNotResponding: value_casted}) this.getPeer()?.onRenderProcessNotRespondingAttribute(value_casted) return this } @@ -1157,7 +1098,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRenderProcessResponding(value: OnRenderProcessRespondingCallback): this { if (this.checkPriority("onRenderProcessResponding")) { const value_casted = value as (OnRenderProcessRespondingCallback) - UseEventsProperties({Web_onRenderProcessResponding: value_casted}) this.getPeer()?.onRenderProcessRespondingAttribute(value_casted) return this } @@ -1176,7 +1116,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onViewportFitChanged(value: OnViewportFitChangedCallback): this { if (this.checkPriority("onViewportFitChanged")) { const value_casted = value as (OnViewportFitChangedCallback) - UseEventsProperties({Web_onViewportFitChanged: value_casted}) this.getPeer()?.onViewportFitChangedAttribute(value_casted) return this } @@ -1186,7 +1125,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onInterceptKeyboardAttach(value: WebKeyboardCallback): this { if (this.checkPriority("onInterceptKeyboardAttach")) { const value_casted = value as (WebKeyboardCallback) - UseEventsProperties({Web_onInterceptKeyboardAttach: value_casted}) this.getPeer()?.onInterceptKeyboardAttachAttribute(value_casted) return this } @@ -1196,7 +1134,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onAdsBlocked(value: OnAdsBlockedCallback): this { if (this.checkPriority("onAdsBlocked")) { const value_casted = value as (OnAdsBlockedCallback) - UseEventsProperties({Web_onAdsBlocked: value_casted}) this.getPeer()?.onAdsBlockedAttribute(value_casted) return this } @@ -1246,7 +1183,6 @@ export class ArkWebComponent extends ArkCommonMethodComponent { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (WebResponseType) const options_casted = options as (SelectionMenuOptionsExt | undefined) - UseEventsProperties({Web_bindSelectionMenu: content_casted}) this.getPeer()?.bindSelectionMenuAttribute(elementType_casted, content_casted, responseType_casted, options_casted) return this } diff --git a/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts b/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index cb57e83e7d70a3191f4e9869a15bac1494cb505b..b43be4895309ee0e1ed3c45cd1d4764d5237f548 100644 --- a/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts b/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index b2a7e5546f5bb9751945af2700e864fe79abe1bc..0a6455ce8ef86105fd07c2639e2d3b7f5ba66831 100644 --- a/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts index ca44fe32430fa0bf1cba863b91675eb8d3d73a2c..e7d84b1759fe57511c39d400adbb233d59925c4d 100644 --- a/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -19,10 +19,11 @@ import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts b/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts index 196e6f84fe7a62e651c253fe0e1ad888e9c12aa3..bc986683a6f25a4f46feec052e8f49cf945d358e 100644 --- a/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index 5e8b130454ed3cdbfa7da94a5e4f088ca40d2d6d..9d39d0533ff58c15db07ea186700a682a2064d3a 100644 --- a/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 7ec322e9c62ced46e985ceda641ef63c38e40ed6..9a26e8eb8cbc2566c9e594a2b1c4460ae7e43f48 100644 --- a/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -16,10 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index 6e45515076fb44b148e73e3c819d4317341b51a5..8b8cf072ce4420416c130c8e10838400fc40013f 100644 --- a/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -17,10 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Header } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -67,7 +68,14 @@ export class WebResourceRequest implements MaterializedBase { } private getRequestHeader_serialize(): Array
{ const retval = ArkUIGeneratedNativeModule._WebResourceRequest_getRequestHeader(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array
= new Array
(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readHeader() + } + const returnResult: Array
= buffer + return returnResult } private getRequestUrl_serialize(): string { const retval = ArkUIGeneratedNativeModule._WebResourceRequest_getRequestUrl(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index 69c6245fd6c610a55925d7faf3bc41d87b9eca1c..be8d921da50e762079dbe9d4b0b311fd234880ac 100644 --- a/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -18,10 +18,11 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -129,7 +130,14 @@ export class WebResourceResponse implements MaterializedBase { } private getResponseHeader_serialize(): Array
{ const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseHeader(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const buffer_length: int32 = retvalDeserializer.readInt32() + let buffer: Array
= new Array
(buffer_length) + for (let buffer_i = 0; buffer_i < buffer_length; buffer_i++) { + buffer[buffer_i] = retvalDeserializer.readHeader() + } + const returnResult: Array
= buffer + return returnResult } private getResponseCode_serialize(): number { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_getResponseCode(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts index d32aa7f53acbdd395c0db849ea1785f4e71a21ae..8d3430e77a1cdc39c847821700a926cfb5c83b0b 100644 --- a/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -18,10 +18,11 @@ import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/generated/ArkWindowScene.ts b/arkoala/arkui/src/generated/ArkWindowScene.ts index 38ab1c2d737b8fbcb1b3caba2063eec491a8b4ef..80a6bdd82dc0742d749ba67af9d5c2fe141a4355 100644 --- a/arkoala/arkui/src/generated/ArkWindowScene.ts +++ b/arkoala/arkui/src/generated/ArkWindowScene.ts @@ -17,9 +17,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts index 031ba4ecbc82f1d272a21a519695980fd46bca69..da19807004615d4c0c74fe6838eea216b2ce734e 100644 --- a/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -18,10 +18,11 @@ import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" +import { isResource, isPadding } from "./../utils" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -124,7 +125,9 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readSurfaceRect() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: SurfaceRect = retvalDeserializer.readSurfaceRect() + return returnResult } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer: Serializer = Serializer.hold() @@ -134,7 +137,9 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - return new Deserializer(retval.buffer, retval.byteLength).readSurfaceRotationOptions() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: SurfaceRotationOptions = retvalDeserializer.readSurfaceRotationOptions() + return returnResult } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) diff --git a/arkoala/arkui/src/generated/ArkXcomponent.ts b/arkoala/arkui/src/generated/ArkXcomponent.ts index 425d151ef951762e2e2f28cf58b0a0744eaf5a8c..0973c8a3e5a2631a75a2467c3d0a61051ad19d58 100644 --- a/arkoala/arkui/src/generated/ArkXcomponent.ts +++ b/arkoala/arkui/src/generated/ArkXcomponent.ts @@ -17,12 +17,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32, float32, unsafeCast } from "@koalaui/common" -import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" +import { KStringPtr, KBoolean, RuntimeType, runtimeType, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./../ComponentBase" +import { isResource, isPadding } from "./../utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" -import { UseEventsProperties } from "./use_properties" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -92,7 +92,6 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { public onLoad(value: OnNativeLoadCallback): this { if (this.checkPriority("onLoad")) { const value_casted = value as (OnNativeLoadCallback) - UseEventsProperties({XComponent_onLoad: value_casted}) this.getPeer()?.onLoadAttribute(value_casted) return this } @@ -102,7 +101,6 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { public onDestroy(value: VoidCallback): this { if (this.checkPriority("onDestroy")) { const value_casted = value as (VoidCallback) - UseEventsProperties({XComponent_onDestroy: value_casted}) this.getPeer()?.onDestroyAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/generated/peer_events.ts b/arkoala/arkui/src/generated/peer_events.ts deleted file mode 100644 index 4fb17126cb242e7ab700264aeb6231cb7a9db27c..0000000000000000000000000000000000000000 --- a/arkoala/arkui/src/generated/peer_events.ts +++ /dev/null @@ -1,5737 +0,0 @@ -import { int32, float32 } from "@koalaui/common" -import { KStringPtr, KPointer, RuntimeType } from "@koalaui/interop" -import { Deserializer } from "./peers/Deserializer" -import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./ArkAlphabetIndexerInterfaces" -import { CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" -import { VoidCallback, Area, Length, Position, SizeOptions, ResourceStr, ResourceColor, Dimension, Margin, BorderRadiuses } from "./ArkUnitsInterfaces" -import { OnCheckboxChangeCallback } from "./ArkCheckboxInterfaces" -import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus } from "./ArkCheckboxgroupInterfaces" -import { TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, AccessibilityCallback, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, VisibleAreaChangeCallback, ItemDragInfo, ShadowOptions, ShadowType } from "./ArkCommonInterfaces" -import { ClickEvent } from "./ArkClickEventMaterialized" -import { BaseEvent } from "./ArkBaseEventMaterialized" -import { Resource } from "./ArkResourceInterfaces" -import { HoverEvent } from "./ArkHoverEventMaterialized" -import { AccessibilityHoverEvent } from "./ArkAccessibilityHoverEventMaterialized" -import { AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, HitTestMode, FoldStatus, AppRotation, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, Edge } from "./ArkEnumsInterfaces" -import { MouseEvent } from "./ArkMouseEventMaterialized" -import { TouchEvent } from "./ArkTouchEventMaterialized" -import { KeyEvent } from "./ArkKeyEventMaterialized" -import { DragEvent } from "./ArkDragEventMaterialized" -import { UnifiedData } from "./ArkUnifiedDataMaterialized" -import { PixelMap } from "./ArkPixelMapMaterialized" -import { GestureInfo, GestureJudgeResult, FingerInfo, GestureRecognizerState } from "./ArkGestureInterfaces" -import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" -import { GestureControl } from "./ArkGestureControlNamespace" -import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { EventTargetInfo } from "./ArkEventTargetInfoMaterialized" -import { ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" -import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListItemGroupArea } from "./ArkListInterfaces" -import { DatePickerResult } from "./ArkDatePickerInterfaces" -import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" -import { Want, ErrorCallback, WebHeader } from "./ArkArkuiExternalInterfaces" -import { BusinessError } from "./ArkBaseInterfaces" -import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, WindowStatusType } from "./ArkFolderStackInterfaces" -import { FormCallbackInfo } from "./ArkFormComponentInterfaces" -import { ComputedBarAttribute } from "./ArkGridInterfaces" -import { ImageErrorCallback, ImageError } from "./ArkImageInterfaces" -import { ImageCompleteCallback, ImageLoadResult } from "./ArkImageSpanInterfaces" -import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { NavPathInfo } from "./ArkNavPathInfoMaterialized" -import { NavPathStack } from "./ArkNavPathStackMaterialized" -import { RouteMapConfig } from "./ArkNavDestinationInterfaces" -import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { PanelMode } from "./ArkPanelInterfaces" -import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" -import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" -import { RefreshStatus } from "./ArkRefreshInterfaces" -import { RichEditorSelection, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, RichEditorDeleteDirection, PasteEventCallback, PasteEvent, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent } from "./ArkRichEditorInterfaces" -import { DecorationStyleResult, TextRange, OnDidChangeCallback, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue, TextDeleteDirection } from "./ArkTextCommonInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" -import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" -import { SubmitEvent } from "./ArkSubmitEventMaterialized" -import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" -import { SearchSubmitCallback } from "./ArkSearchInterfaces" -import { SliderChangeMode } from "./ArkSliderInterfaces" -import { OnSwiperAnimationStartCallback, SwiperAnimationEvent, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, ContentDidScrollCallback } from "./ArkSwiperInterfaces" -import { OnTabsAnimationStartCallback, TabsAnimationEvent, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, TabContentAnimatedTransition, OnTabsContentWillChangeCallback } from "./ArkTabsInterfaces" -import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" -import { TextAreaSubmitCallback } from "./ArkTextAreaInterfaces" -import { TimePickerResult } from "./ArkTimePickerInterfaces" -import { FullscreenInfo, PreparedInfo, PlaybackInfo } from "./ArkVideoInterfaces" -import { OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, MessageLevel, OnErrorReceiveEvent, Header, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, RenderExitReason, OnShowFileSelectorEvent, FileSelectorMode, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, WebCaptureMode, OnContextMenuShowEvent, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, SslError, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, WebNavigationType, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, NativeEmbedDataInfo, NativeEmbedStatus, NativeEmbedInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, OnRenderProcessRespondingCallback, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails } from "./ArkWebInterfaces" -import { JsGeolocation } from "./ArkJsGeolocationMaterialized" -import { JsResult } from "./ArkJsResultMaterialized" -import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" -import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" -import { WebResourceError } from "./ArkWebResourceErrorMaterialized" -import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" -import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" -import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" -import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" -import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" -import { PermissionRequest } from "./ArkPermissionRequestMaterialized" -import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" -import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" -import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" -import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" -import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" -import { ControllerHandler } from "./ArkControllerHandlerMaterialized" -import { WebviewController } from "./ArkWebviewControllerMaterialized" -import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" -import { EventResult } from "./ArkEventResultMaterialized" -import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" -import { OnNativeLoadCallback } from "./ArkXcomponentInterfaces" -import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -export enum PeerEventKind { - AbilityComponent_onConnect = 0, - AbilityComponent_onDisconnect = 1, - AlphabetIndexer_onSelected = 2, - AlphabetIndexer_onSelect = 3, - AlphabetIndexer_onRequestPopupData = 4, - AlphabetIndexer_onPopupSelect = 5, - AlphabetIndexer__onChangeEvent_selected = 6, - Animator_onStart = 7, - Animator_onPause = 8, - Animator_onRepeat = 9, - Animator_onCancel = 10, - Animator_onFinish = 11, - Animator_onFrame = 12, - Calendar_onSelectChange = 13, - Calendar_onRequestData = 14, - CalendarPicker_onChange = 15, - Canvas_onReady = 16, - Checkbox_onChange = 17, - Checkbox__onChangeEvent_select = 18, - CheckboxGroup_onChange = 19, - CheckboxGroup__onChangeEvent_selectAll = 20, - CommonMethod_onChildTouchTest = 21, - CommonMethod_onClick0 = 22, - CommonMethod_onClick1 = 23, - CommonMethod_onHover = 24, - CommonMethod_onAccessibilityHover = 25, - CommonMethod_onMouse = 26, - CommonMethod_onTouch = 27, - CommonMethod_onKeyEvent = 28, - CommonMethod_onKeyPreIme = 29, - CommonMethod_onFocus = 30, - CommonMethod_onBlur = 31, - CommonMethod_onAppear = 32, - CommonMethod_onDisAppear = 33, - CommonMethod_onAttach = 34, - CommonMethod_onDetach = 35, - CommonMethod_onAreaChange = 36, - CommonMethod_onDragStart = 37, - CommonMethod_onDragEnter = 38, - CommonMethod_onDragMove = 39, - CommonMethod_onDragLeave = 40, - CommonMethod_onDrop = 41, - CommonMethod_onDragEnd = 42, - CommonMethod_onPreDrag = 43, - CommonMethod_accessibilityVirtualNode = 44, - CommonMethod_onGestureJudgeBegin = 45, - CommonMethod_onGestureRecognizerJudgeBegin0 = 46, - CommonMethod_onGestureRecognizerJudgeBegin1 = 47, - CommonMethod_shouldBuiltInRecognizerParallelWith = 48, - CommonMethod_onTouchIntercept = 49, - CommonMethod_onSizeChange = 50, - CommonMethod_background = 51, - CommonMethod_bindContextMenu0 = 52, - CommonMethod_bindContextMenu1 = 53, - CommonMethod_bindContentCover0 = 54, - CommonMethod_bindContentCover1 = 55, - CommonMethod_bindSheet = 56, - CommonMethod_onVisibleAreaChange = 57, - ScrollableCommonMethod_onScroll = 58, - ScrollableCommonMethod_onDidScroll = 59, - ScrollableCommonMethod_onReachStart = 60, - ScrollableCommonMethod_onReachEnd = 61, - ScrollableCommonMethod_onScrollStart = 62, - ScrollableCommonMethod_onScrollStop = 63, - Counter_onInc = 64, - Counter_onDec = 65, - DatePicker_onChange = 66, - DatePicker_onDateChange = 67, - DatePicker__onChangeEvent_selected = 68, - EmbeddedComponent_onTerminated = 69, - EmbeddedComponent_onError = 70, - FolderStack_onFolderStateChange = 71, - FolderStack_onHoverStatusChange = 72, - FormComponent_onAcquired = 73, - FormComponent_onError = 74, - FormComponent_onRouter = 75, - FormComponent_onUninstall = 76, - FormComponent_onLoad = 77, - Gauge_description = 78, - Grid_onScrollBarUpdate = 79, - Grid_onScrollIndex = 80, - Grid_onItemDragStart = 81, - Grid_onItemDragEnter = 82, - Grid_onItemDragMove = 83, - Grid_onItemDragLeave = 84, - Grid_onItemDrop = 85, - Grid_onScroll = 86, - Grid_onReachStart = 87, - Grid_onReachEnd = 88, - Grid_onScrollStart = 89, - Grid_onScrollStop = 90, - Grid_onScrollFrameBegin = 91, - GridItem_onSelect = 92, - GridItem__onChangeEvent_selected = 93, - GridRow_onBreakpointChange = 94, - Image_onComplete = 95, - Image_onError = 96, - Image_onFinish = 97, - ImageAnimator_onStart = 98, - ImageAnimator_onPause = 99, - ImageAnimator_onRepeat = 100, - ImageAnimator_onCancel = 101, - ImageAnimator_onFinish = 102, - ImageSpan_onComplete = 103, - ImageSpan_onError = 104, - List_onScroll = 105, - List_onScrollIndex = 106, - List_onScrollVisibleContentChange = 107, - List_onReachStart = 108, - List_onReachEnd = 109, - List_onScrollStart = 110, - List_onScrollStop = 111, - List_onItemDelete = 112, - List_onItemMove = 113, - List_onItemDragStart = 114, - List_onItemDragEnter = 115, - List_onItemDragMove = 116, - List_onItemDragLeave = 117, - List_onItemDrop = 118, - List_onScrollFrameBegin = 119, - ListItem_onSelect = 120, - ListItem__onChangeEvent_selected = 121, - LocationButton_onClick = 122, - Marquee_onStart = 123, - Marquee_onBounce = 124, - Marquee_onFinish = 125, - MenuItem_onChange = 126, - MenuItem__onChangeEvent_selected = 127, - NavDestination_onShown = 128, - NavDestination_onHidden = 129, - NavDestination_onBackPressed = 130, - NavDestination_onReady = 131, - NavDestination_onWillAppear = 132, - NavDestination_onWillDisappear = 133, - NavDestination_onWillShow = 134, - NavDestination_onWillHide = 135, - NavRouter_onStateChange = 136, - Panel_onChange = 137, - Panel_onHeightChange = 138, - Panel__onChangeEvent_mode = 139, - PasteButton_onClick = 140, - PatternLock_onPatternComplete = 141, - PatternLock_onDotConnect = 142, - PluginComponent_onComplete = 143, - PluginComponent_onError = 144, - Radio_onChange = 145, - Radio__onChangeEvent_checked = 146, - Rating_onChange = 147, - Rating__onChangeEvent_rating = 148, - Refresh_onStateChange = 149, - Refresh_onRefreshing = 150, - Refresh_onOffsetChange = 151, - Refresh__onChangeEvent_refreshing = 152, - RichEditor_onReady = 153, - RichEditor_onSelect = 154, - RichEditor_onSelectionChange = 155, - RichEditor_aboutToIMEInput = 156, - RichEditor_onIMEInputComplete = 157, - RichEditor_onDidIMEInput = 158, - RichEditor_aboutToDelete = 159, - RichEditor_onDeleteComplete = 160, - RichEditor_onPaste = 161, - RichEditor_onEditingChange = 162, - RichEditor_onSubmit = 163, - RichEditor_onWillChange = 164, - RichEditor_onDidChange = 165, - RichEditor_onCut = 166, - RichEditor_onCopy = 167, - RichEditor_bindSelectionMenu = 168, - RichEditor_customKeyboard = 169, - RichText_onStart = 170, - RichText_onComplete = 171, - SaveButton_onClick = 172, - Scroll_onScroll = 173, - Scroll_onDidScroll = 174, - Scroll_onScrollEdge = 175, - Scroll_onScrollStart = 176, - Scroll_onScrollEnd = 177, - Scroll_onScrollStop = 178, - Scroll_onScrollFrameBegin = 179, - Search_onEditChange = 180, - Search_onSubmit0 = 181, - Search_onSubmit1 = 182, - Search_onChange = 183, - Search_onTextSelectionChange = 184, - Search_onContentScroll = 185, - Search_onCopy = 186, - Search_onCut = 187, - Search_onPaste = 188, - Search_onWillInsert = 189, - Search_onDidInsert = 190, - Search_onWillDelete = 191, - Search_onDidDelete = 192, - Search_customKeyboard = 193, - Search__onChangeEvent_value = 194, - Select_onSelect = 195, - Select__onChangeEvent_selected = 196, - Select__onChangeEvent_value = 197, - Slider_onChange = 198, - Slider__onChangeEvent_value = 199, - Stepper_onFinish = 200, - Stepper_onSkip = 201, - Stepper_onChange = 202, - Stepper_onNext = 203, - Stepper_onPrevious = 204, - Stepper__onChangeEvent_index = 205, - Swiper_onChange = 206, - Swiper_onAnimationStart = 207, - Swiper_onAnimationEnd = 208, - Swiper_onGestureSwipe = 209, - Swiper_onContentDidScroll = 210, - Swiper__onChangeEvent_index = 211, - IndicatorComponent_onChange = 212, - Tabs_onChange = 213, - Tabs_onTabBarClick = 214, - Tabs_onAnimationStart = 215, - Tabs_onAnimationEnd = 216, - Tabs_onGestureSwipe = 217, - Tabs_customContentTransition = 218, - Tabs_onContentWillChange = 219, - Tabs__onChangeEvent_index = 220, - TabContent_onWillShow = 221, - TabContent_onWillHide = 222, - Text_onCopy = 223, - Text_onTextSelectionChange = 224, - Text_bindSelectionMenu = 225, - TextArea_onSubmit0 = 226, - TextArea_onSubmit1 = 227, - TextArea_onChange = 228, - TextArea_onTextSelectionChange = 229, - TextArea_onContentScroll = 230, - TextArea_onEditChange = 231, - TextArea_onCopy = 232, - TextArea_onCut = 233, - TextArea_onPaste = 234, - TextArea_onWillInsert = 235, - TextArea_onDidInsert = 236, - TextArea_onWillDelete = 237, - TextArea_onDidDelete = 238, - TextArea_customKeyboard = 239, - TextArea__onChangeEvent_text = 240, - TextClock_onDateChange = 241, - TextInput_onEditChanged = 242, - TextInput_onEditChange = 243, - TextInput_onSubmit = 244, - TextInput_onChange = 245, - TextInput_onTextSelectionChange = 246, - TextInput_onContentScroll = 247, - TextInput_onCopy = 248, - TextInput_onCut = 249, - TextInput_onPaste = 250, - TextInput_showUnit = 251, - TextInput_onSecurityStateChange = 252, - TextInput_onWillInsert = 253, - TextInput_onDidInsert = 254, - TextInput_onWillDelete = 255, - TextInput_onDidDelete = 256, - TextInput_customKeyboard = 257, - TextInput__onChangeEvent_text = 258, - TextPicker_onAccept = 259, - TextPicker_onCancel = 260, - TextPicker_onChange = 261, - TextPicker__onChangeEvent_selected = 262, - TextPicker__onChangeEvent_value = 263, - TextTimer_onTimer = 264, - TimePicker_onChange = 265, - TimePicker__onChangeEvent_selected = 266, - Toggle_onChange = 267, - Toggle__onChangeEvent_isOn = 268, - Video_onStart = 269, - Video_onPause = 270, - Video_onFinish = 271, - Video_onFullscreenChange = 272, - Video_onPrepared = 273, - Video_onSeeking = 274, - Video_onSeeked = 275, - Video_onUpdate = 276, - Video_onError = 277, - Video_onStop = 278, - Web_onPageEnd = 279, - Web_onPageBegin = 280, - Web_onProgressChange = 281, - Web_onTitleReceive = 282, - Web_onGeolocationHide = 283, - Web_onGeolocationShow = 284, - Web_onRequestSelected = 285, - Web_onAlert = 286, - Web_onBeforeUnload = 287, - Web_onConfirm = 288, - Web_onPrompt = 289, - Web_onConsole = 290, - Web_onErrorReceive = 291, - Web_onHttpErrorReceive = 292, - Web_onDownloadStart = 293, - Web_onRefreshAccessedHistory = 294, - Web_onUrlLoadIntercept = 295, - Web_onSslErrorReceive = 296, - Web_onRenderExited0 = 297, - Web_onRenderExited1 = 298, - Web_onShowFileSelector = 299, - Web_onFileSelectorShow = 300, - Web_onResourceLoad = 301, - Web_onFullScreenExit = 302, - Web_onFullScreenEnter = 303, - Web_onScaleChange = 304, - Web_onHttpAuthRequest = 305, - Web_onInterceptRequest = 306, - Web_onPermissionRequest = 307, - Web_onScreenCaptureRequest = 308, - Web_onContextMenuShow = 309, - Web_onContextMenuHide = 310, - Web_onSearchResultReceive = 311, - Web_onScroll = 312, - Web_onSslErrorEventReceive = 313, - Web_onSslErrorEvent = 314, - Web_onClientAuthenticationRequest = 315, - Web_onWindowNew = 316, - Web_onWindowExit = 317, - Web_onInterceptKeyEvent = 318, - Web_onTouchIconUrlReceived = 319, - Web_onFaviconReceived = 320, - Web_onPageVisible = 321, - Web_onDataResubmitted = 322, - Web_onAudioStateChanged = 323, - Web_onFirstContentfulPaint = 324, - Web_onFirstMeaningfulPaint = 325, - Web_onLargestContentfulPaint = 326, - Web_onLoadIntercept = 327, - Web_onControllerAttached = 328, - Web_onOverScroll = 329, - Web_onSafeBrowsingCheckResult = 330, - Web_onNavigationEntryCommitted = 331, - Web_onIntelligentTrackingPreventionResult = 332, - Web_onNativeEmbedLifecycleChange = 333, - Web_onNativeEmbedVisibilityChange = 334, - Web_onNativeEmbedGestureEvent = 335, - Web_onOverrideUrlLoading = 336, - Web_onRenderProcessNotResponding = 337, - Web_onRenderProcessResponding = 338, - Web_onViewportFitChanged = 339, - Web_onInterceptKeyboardAttach = 340, - Web_onAdsBlocked = 341, - Web_bindSelectionMenu = 342, - XComponent_onLoad = 343, - XComponent_onDestroy = 344, - SideBarContainer_onChange = 345, - SideBarContainer__onChangeEvent_showSideBar = 346, - WaterFlow_onReachStart = 347, - WaterFlow_onReachEnd = 348, - WaterFlow_onScrollFrameBegin = 349, - WaterFlow_onScrollIndex = 350, - UIExtensionComponent_onRemoteReady = 351, - UIExtensionComponent_onResult = 352, - UIExtensionComponent_onRelease = 353, - UIExtensionComponent_onError = 354, - UIExtensionComponent_onTerminated = 355, -} - -interface PeerEvent { - readonly kind: PeerEventKind - readonly nodeId: number -} - -export interface AbilityComponent_onConnect_event extends PeerEvent { - readonly kind: PeerEventKind.AbilityComponent_onConnect -} -export interface AbilityComponent_onDisconnect_event extends PeerEvent { - readonly kind: PeerEventKind.AbilityComponent_onDisconnect -} -export interface AlphabetIndexer_onSelected_event extends PeerEvent { - readonly kind: PeerEventKind.AlphabetIndexer_onSelected - readonly index: number -} -export interface AlphabetIndexer_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind.AlphabetIndexer_onSelect - readonly index: number -} -export interface AlphabetIndexer_onRequestPopupData_event extends PeerEvent { - readonly kind: PeerEventKind.AlphabetIndexer_onRequestPopupData - readonly index: number -} -export interface AlphabetIndexer_onPopupSelect_event extends PeerEvent { - readonly kind: PeerEventKind.AlphabetIndexer_onPopupSelect - readonly index: number -} -export interface AlphabetIndexer__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.AlphabetIndexer__onChangeEvent_selected - readonly index: number -} -export interface Animator_onStart_event extends PeerEvent { - readonly kind: PeerEventKind.Animator_onStart -} -export interface Animator_onPause_event extends PeerEvent { - readonly kind: PeerEventKind.Animator_onPause -} -export interface Animator_onRepeat_event extends PeerEvent { - readonly kind: PeerEventKind.Animator_onRepeat -} -export interface Animator_onCancel_event extends PeerEvent { - readonly kind: PeerEventKind.Animator_onCancel -} -export interface Animator_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind.Animator_onFinish -} -export interface Animator_onFrame_event extends PeerEvent { - readonly kind: PeerEventKind.Animator_onFrame - readonly index: number -} -export interface Calendar_onSelectChange_event extends PeerEvent { - readonly kind: PeerEventKind.Calendar_onSelectChange - readonly event: CalendarSelectedDate -} -export interface Calendar_onRequestData_event extends PeerEvent { - readonly kind: PeerEventKind.Calendar_onRequestData - readonly event: CalendarRequestedData -} -export interface CalendarPicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.CalendarPicker_onChange - readonly parameter: Date -} -export interface Canvas_onReady_event extends PeerEvent { - readonly kind: PeerEventKind.Canvas_onReady -} -export interface Checkbox_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Checkbox_onChange - readonly value: boolean -} -export interface Checkbox__onChangeEvent_select_event extends PeerEvent { - readonly kind: PeerEventKind.Checkbox__onChangeEvent_select - readonly parameter: boolean -} -export interface CheckboxGroup_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.CheckboxGroup_onChange - readonly value: CheckboxGroupResult -} -export interface CheckboxGroup__onChangeEvent_selectAll_event extends PeerEvent { - readonly kind: PeerEventKind.CheckboxGroup__onChangeEvent_selectAll - readonly parameter: boolean -} -export interface CommonMethod_onChildTouchTest_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onChildTouchTest - readonly value: Array -} -export interface CommonMethod_onClick0_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onClick0 - readonly event: ClickEvent -} -export interface CommonMethod_onClick1_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onClick1 - readonly event: ClickEvent -} -export interface CommonMethod_onHover_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onHover - readonly isHover: boolean - readonly event: HoverEvent -} -export interface CommonMethod_onAccessibilityHover_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onAccessibilityHover - readonly isHover: boolean - readonly event: AccessibilityHoverEvent -} -export interface CommonMethod_onMouse_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onMouse - readonly event: MouseEvent -} -export interface CommonMethod_onTouch_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onTouch - readonly event: TouchEvent -} -export interface CommonMethod_onKeyEvent_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onKeyEvent - readonly event: KeyEvent -} -export interface CommonMethod_onKeyPreIme_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onKeyPreIme - readonly parameter: KeyEvent -} -export interface CommonMethod_onFocus_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onFocus -} -export interface CommonMethod_onBlur_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onBlur -} -export interface CommonMethod_onAppear_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onAppear -} -export interface CommonMethod_onDisAppear_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDisAppear -} -export interface CommonMethod_onAttach_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onAttach -} -export interface CommonMethod_onDetach_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDetach -} -export interface CommonMethod_onAreaChange_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onAreaChange - readonly oldValue: Area - readonly newValue: Area -} -export interface CommonMethod_onDragStart_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDragStart - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragEnter_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDragEnter - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragMove_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDragMove - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragLeave_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDragLeave - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDrop_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDrop - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onDragEnd_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onDragEnd - readonly event: DragEvent - readonly extraParams?: string | undefined -} -export interface CommonMethod_onPreDrag_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onPreDrag - readonly parameter: PreDragStatus -} -export interface CommonMethod_accessibilityVirtualNode_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_accessibilityVirtualNode -} -export interface CommonMethod_onGestureJudgeBegin_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onGestureJudgeBegin - readonly gestureInfo: GestureInfo - readonly event: BaseGestureEvent -} -export interface CommonMethod_onGestureRecognizerJudgeBegin0_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin0 - readonly event: BaseGestureEvent - readonly current: GestureRecognizer - readonly recognizers: Array -} -export interface CommonMethod_onGestureRecognizerJudgeBegin1_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin1 - readonly event: BaseGestureEvent - readonly current: GestureRecognizer - readonly recognizers: Array -} -export interface CommonMethod_shouldBuiltInRecognizerParallelWith_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith - readonly current: GestureRecognizer - readonly others: Array -} -export interface CommonMethod_onTouchIntercept_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onTouchIntercept - readonly parameter: TouchEvent -} -export interface CommonMethod_onSizeChange_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onSizeChange - readonly oldValue: SizeOptions - readonly newValue: SizeOptions -} -export interface CommonMethod_background_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_background -} -export interface CommonMethod_bindContextMenu0_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_bindContextMenu0 -} -export interface CommonMethod_bindContextMenu1_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_bindContextMenu1 -} -export interface CommonMethod_bindContentCover0_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_bindContentCover0 -} -export interface CommonMethod_bindContentCover1_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_bindContentCover1 -} -export interface CommonMethod_bindSheet_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_bindSheet -} -export interface CommonMethod_onVisibleAreaChange_event extends PeerEvent { - readonly kind: PeerEventKind.CommonMethod_onVisibleAreaChange - readonly isExpanding: boolean - readonly currentRatio: number -} -export interface ScrollableCommonMethod_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind.ScrollableCommonMethod_onScroll - readonly first: number - readonly last: number -} -export interface ScrollableCommonMethod_onDidScroll_event extends PeerEvent { - readonly kind: PeerEventKind.ScrollableCommonMethod_onDidScroll - readonly xOffset: number - readonly yOffset: number - readonly scrollState: ScrollState -} -export interface ScrollableCommonMethod_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind.ScrollableCommonMethod_onReachStart -} -export interface ScrollableCommonMethod_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind.ScrollableCommonMethod_onReachEnd -} -export interface ScrollableCommonMethod_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind.ScrollableCommonMethod_onScrollStart -} -export interface ScrollableCommonMethod_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind.ScrollableCommonMethod_onScrollStop -} -export interface Counter_onInc_event extends PeerEvent { - readonly kind: PeerEventKind.Counter_onInc -} -export interface Counter_onDec_event extends PeerEvent { - readonly kind: PeerEventKind.Counter_onDec -} -export interface DatePicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.DatePicker_onChange - readonly value: DatePickerResult -} -export interface DatePicker_onDateChange_event extends PeerEvent { - readonly kind: PeerEventKind.DatePicker_onDateChange - readonly parameter: Date -} -export interface DatePicker__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.DatePicker__onChangeEvent_selected - readonly parameter: Date -} -export interface EmbeddedComponent_onTerminated_event extends PeerEvent { - readonly kind: PeerEventKind.EmbeddedComponent_onTerminated - readonly parameter: TerminationInfo -} -export interface EmbeddedComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind.EmbeddedComponent_onError - readonly err: BusinessError -} -export interface FolderStack_onFolderStateChange_event extends PeerEvent { - readonly kind: PeerEventKind.FolderStack_onFolderStateChange - readonly event: OnFoldStatusChangeInfo -} -export interface FolderStack_onHoverStatusChange_event extends PeerEvent { - readonly kind: PeerEventKind.FolderStack_onHoverStatusChange - readonly param: HoverEventParam -} -export interface FormComponent_onAcquired_event extends PeerEvent { - readonly kind: PeerEventKind.FormComponent_onAcquired - readonly parameter: FormCallbackInfo -} -export interface FormComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind.FormComponent_onError - readonly info: { errcode: number, msg: string } -} -export interface FormComponent_onRouter_event extends PeerEvent { - readonly kind: PeerEventKind.FormComponent_onRouter - readonly info: any -} -export interface FormComponent_onUninstall_event extends PeerEvent { - readonly kind: PeerEventKind.FormComponent_onUninstall - readonly parameter: FormCallbackInfo -} -export interface FormComponent_onLoad_event extends PeerEvent { - readonly kind: PeerEventKind.FormComponent_onLoad -} -export interface Gauge_description_event extends PeerEvent { - readonly kind: PeerEventKind.Gauge_description -} -export interface Grid_onScrollBarUpdate_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onScrollBarUpdate - readonly index: number - readonly offset: number -} -export interface Grid_onScrollIndex_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onScrollIndex - readonly first: number - readonly last: number -} -export interface Grid_onItemDragStart_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onItemDragStart - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface Grid_onItemDragEnter_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onItemDragEnter - readonly event: ItemDragInfo -} -export interface Grid_onItemDragMove_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onItemDragMove - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number -} -export interface Grid_onItemDragLeave_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onItemDragLeave - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface Grid_onItemDrop_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onItemDrop - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number - readonly isSuccess: boolean -} -export interface Grid_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onScroll - readonly first: number - readonly last: number -} -export interface Grid_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onReachStart -} -export interface Grid_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onReachEnd -} -export interface Grid_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onScrollStart -} -export interface Grid_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onScrollStop -} -export interface Grid_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind.Grid_onScrollFrameBegin - readonly offset: number - readonly state: ScrollState -} -export interface GridItem_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind.GridItem_onSelect - readonly parameter: boolean -} -export interface GridItem__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.GridItem__onChangeEvent_selected - readonly parameter: boolean -} -export interface GridRow_onBreakpointChange_event extends PeerEvent { - readonly kind: PeerEventKind.GridRow_onBreakpointChange - readonly breakpoints: string -} -export interface Image_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind.Image_onComplete - readonly event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined -} -export interface Image_onError_event extends PeerEvent { - readonly kind: PeerEventKind.Image_onError - readonly error: ImageError -} -export interface Image_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind.Image_onFinish -} -export interface ImageAnimator_onStart_event extends PeerEvent { - readonly kind: PeerEventKind.ImageAnimator_onStart -} -export interface ImageAnimator_onPause_event extends PeerEvent { - readonly kind: PeerEventKind.ImageAnimator_onPause -} -export interface ImageAnimator_onRepeat_event extends PeerEvent { - readonly kind: PeerEventKind.ImageAnimator_onRepeat -} -export interface ImageAnimator_onCancel_event extends PeerEvent { - readonly kind: PeerEventKind.ImageAnimator_onCancel -} -export interface ImageAnimator_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind.ImageAnimator_onFinish -} -export interface ImageSpan_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind.ImageSpan_onComplete - readonly result: ImageLoadResult -} -export interface ImageSpan_onError_event extends PeerEvent { - readonly kind: PeerEventKind.ImageSpan_onError - readonly error: ImageError -} -export interface List_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind.List_onScroll - readonly first: number - readonly last: number -} -export interface List_onScrollIndex_event extends PeerEvent { - readonly kind: PeerEventKind.List_onScrollIndex - readonly start: number - readonly end: number - readonly center: number -} -export interface List_onScrollVisibleContentChange_event extends PeerEvent { - readonly kind: PeerEventKind.List_onScrollVisibleContentChange - readonly start: VisibleListContentInfo - readonly end: VisibleListContentInfo -} -export interface List_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind.List_onReachStart -} -export interface List_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind.List_onReachEnd -} -export interface List_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind.List_onScrollStart -} -export interface List_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind.List_onScrollStop -} -export interface List_onItemDelete_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemDelete - readonly index: number -} -export interface List_onItemMove_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemMove - readonly from: number - readonly to: number -} -export interface List_onItemDragStart_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemDragStart - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface List_onItemDragEnter_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemDragEnter - readonly event: ItemDragInfo -} -export interface List_onItemDragMove_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemDragMove - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number -} -export interface List_onItemDragLeave_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemDragLeave - readonly event: ItemDragInfo - readonly itemIndex: number -} -export interface List_onItemDrop_event extends PeerEvent { - readonly kind: PeerEventKind.List_onItemDrop - readonly event: ItemDragInfo - readonly itemIndex: number - readonly insertIndex: number - readonly isSuccess: boolean -} -export interface List_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind.List_onScrollFrameBegin - readonly offset: number - readonly state: ScrollState -} -export interface ListItem_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind.ListItem_onSelect - readonly parameter: boolean -} -export interface ListItem__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.ListItem__onChangeEvent_selected - readonly parameter: boolean -} -export interface LocationButton_onClick_event extends PeerEvent { - readonly kind: PeerEventKind.LocationButton_onClick - readonly event: ClickEvent - readonly result: LocationButtonOnClickResult -} -export interface Marquee_onStart_event extends PeerEvent { - readonly kind: PeerEventKind.Marquee_onStart -} -export interface Marquee_onBounce_event extends PeerEvent { - readonly kind: PeerEventKind.Marquee_onBounce -} -export interface Marquee_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind.Marquee_onFinish -} -export interface MenuItem_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.MenuItem_onChange - readonly parameter: boolean -} -export interface MenuItem__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.MenuItem__onChangeEvent_selected - readonly parameter: boolean -} -export interface NavDestination_onShown_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onShown -} -export interface NavDestination_onHidden_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onHidden -} -export interface NavDestination_onBackPressed_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onBackPressed -} -export interface NavDestination_onReady_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onReady - readonly parameter: NavDestinationContext -} -export interface NavDestination_onWillAppear_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillAppear -} -export interface NavDestination_onWillDisappear_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillDisappear -} -export interface NavDestination_onWillShow_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillShow -} -export interface NavDestination_onWillHide_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillHide -} -export interface NavRouter_onStateChange_event extends PeerEvent { - readonly kind: PeerEventKind.NavRouter_onStateChange - readonly parameter: boolean -} -export interface Panel_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Panel_onChange - readonly width: number - readonly height: number - readonly mode: PanelMode -} -export interface Panel_onHeightChange_event extends PeerEvent { - readonly kind: PeerEventKind.Panel_onHeightChange - readonly index: number -} -export interface Panel__onChangeEvent_mode_event extends PeerEvent { - readonly kind: PeerEventKind.Panel__onChangeEvent_mode - readonly mode: PanelMode -} -export interface PasteButton_onClick_event extends PeerEvent { - readonly kind: PeerEventKind.PasteButton_onClick - readonly event: ClickEvent - readonly result: PasteButtonOnClickResult -} -export interface PatternLock_onPatternComplete_event extends PeerEvent { - readonly kind: PeerEventKind.PatternLock_onPatternComplete - readonly input: Array -} -export interface PatternLock_onDotConnect_event extends PeerEvent { - readonly kind: PeerEventKind.PatternLock_onDotConnect - readonly index: number -} -export interface PluginComponent_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind.PluginComponent_onComplete -} -export interface PluginComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind.PluginComponent_onError - readonly info: PluginErrorData -} -export interface Radio_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Radio_onChange - readonly parameter: boolean -} -export interface Radio__onChangeEvent_checked_event extends PeerEvent { - readonly kind: PeerEventKind.Radio__onChangeEvent_checked - readonly parameter: boolean -} -export interface Rating_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Rating_onChange - readonly index: number -} -export interface Rating__onChangeEvent_rating_event extends PeerEvent { - readonly kind: PeerEventKind.Rating__onChangeEvent_rating - readonly index: number -} -export interface Refresh_onStateChange_event extends PeerEvent { - readonly kind: PeerEventKind.Refresh_onStateChange - readonly state: RefreshStatus -} -export interface Refresh_onRefreshing_event extends PeerEvent { - readonly kind: PeerEventKind.Refresh_onRefreshing -} -export interface Refresh_onOffsetChange_event extends PeerEvent { - readonly kind: PeerEventKind.Refresh_onOffsetChange - readonly index: number -} -export interface Refresh__onChangeEvent_refreshing_event extends PeerEvent { - readonly kind: PeerEventKind.Refresh__onChangeEvent_refreshing - readonly parameter: boolean -} -export interface RichEditor_onReady_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onReady -} -export interface RichEditor_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onSelect - readonly parameter: RichEditorSelection -} -export interface RichEditor_onSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onSelectionChange - readonly parameter: RichEditorRange -} -export interface RichEditor_aboutToIMEInput_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_aboutToIMEInput - readonly parameter: RichEditorInsertValue -} -export interface RichEditor_onIMEInputComplete_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onIMEInputComplete - readonly parameter: RichEditorTextSpanResult -} -export interface RichEditor_onDidIMEInput_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onDidIMEInput - readonly parameter: TextRange -} -export interface RichEditor_aboutToDelete_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_aboutToDelete - readonly parameter: RichEditorDeleteValue -} -export interface RichEditor_onDeleteComplete_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onDeleteComplete -} -export interface RichEditor_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onPaste - readonly event?: PasteEvent | undefined -} -export interface RichEditor_onEditingChange_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onEditingChange - readonly parameter: boolean -} -export interface RichEditor_onSubmit_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onSubmit - readonly enterKey: EnterKeyType - readonly event: SubmitEvent -} -export interface RichEditor_onWillChange_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onWillChange - readonly parameter: RichEditorChangeValue -} -export interface RichEditor_onDidChange_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onDidChange - readonly rangeBefore: TextRange - readonly rangeAfter: TextRange -} -export interface RichEditor_onCut_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onCut - readonly parameter: CutEvent -} -export interface RichEditor_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_onCopy - readonly parameter: CopyEvent -} -export interface RichEditor_bindSelectionMenu_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_bindSelectionMenu -} -export interface RichEditor_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind.RichEditor_customKeyboard -} -export interface RichText_onStart_event extends PeerEvent { - readonly kind: PeerEventKind.RichText_onStart -} -export interface RichText_onComplete_event extends PeerEvent { - readonly kind: PeerEventKind.RichText_onComplete -} -export interface SaveButton_onClick_event extends PeerEvent { - readonly kind: PeerEventKind.SaveButton_onClick - readonly event: ClickEvent - readonly result: SaveButtonOnClickResult -} -export interface Scroll_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onScroll - readonly first: number - readonly last: number -} -export interface Scroll_onDidScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onDidScroll - readonly xOffset: number - readonly yOffset: number - readonly scrollState: ScrollState -} -export interface Scroll_onScrollEdge_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onScrollEdge - readonly side: Edge -} -export interface Scroll_onScrollStart_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onScrollStart -} -export interface Scroll_onScrollEnd_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onScrollEnd -} -export interface Scroll_onScrollStop_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onScrollStop -} -export interface Scroll_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind.Scroll_onScrollFrameBegin - readonly offset: number - readonly state: ScrollState -} -export interface Search_onEditChange_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onEditChange - readonly parameter: boolean -} -export interface Search_onSubmit0_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onSubmit0 - readonly breakpoints: string -} -export interface Search_onSubmit1_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onSubmit1 - readonly searchContent: string - readonly event?: SubmitEvent | undefined -} -export interface Search_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onChange - readonly value: string - readonly previewText?: PreviewText | undefined -} -export interface Search_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onTextSelectionChange - readonly selectionStart: number - readonly selectionEnd: number -} -export interface Search_onContentScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onContentScroll - readonly totalOffsetX: number - readonly totalOffsetY: number -} -export interface Search_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onCopy - readonly breakpoints: string -} -export interface Search_onCut_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onCut - readonly breakpoints: string -} -export interface Search_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onPaste - readonly content: string - readonly event: PasteEvent -} -export interface Search_onWillInsert_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onWillInsert - readonly parameter: InsertValue -} -export interface Search_onDidInsert_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onDidInsert - readonly parameter: InsertValue -} -export interface Search_onWillDelete_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onWillDelete - readonly parameter: DeleteValue -} -export interface Search_onDidDelete_event extends PeerEvent { - readonly kind: PeerEventKind.Search_onDidDelete - readonly parameter: DeleteValue -} -export interface Search_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind.Search_customKeyboard -} -export interface Search__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.Search__onChangeEvent_value - readonly breakpoints: string -} -export interface Select_onSelect_event extends PeerEvent { - readonly kind: PeerEventKind.Select_onSelect - readonly index: number - readonly value: string -} -export interface Select__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.Select__onChangeEvent_selected - readonly selected: number | Resource -} -export interface Select__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.Select__onChangeEvent_value - readonly value: ResourceStr -} -export interface Slider_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Slider_onChange - readonly value: number - readonly mode: SliderChangeMode -} -export interface Slider__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.Slider__onChangeEvent_value - readonly index: number -} -export interface Stepper_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper_onFinish -} -export interface Stepper_onSkip_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper_onSkip -} -export interface Stepper_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper_onChange - readonly first: number - readonly last: number -} -export interface Stepper_onNext_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper_onNext - readonly first: number - readonly last: number -} -export interface Stepper_onPrevious_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper_onPrevious - readonly first: number - readonly last: number -} -export interface Stepper__onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper__onChangeEvent_index - readonly index: number -} -export interface Swiper_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper_onChange - readonly index: number -} -export interface Swiper_onAnimationStart_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper_onAnimationStart - readonly index: number - readonly targetIndex: number - readonly extraInfo: SwiperAnimationEvent -} -export interface Swiper_onAnimationEnd_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper_onAnimationEnd - readonly index: number - readonly extraInfo: SwiperAnimationEvent -} -export interface Swiper_onGestureSwipe_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper_onGestureSwipe - readonly index: number - readonly extraInfo: SwiperAnimationEvent -} -export interface Swiper_onContentDidScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper_onContentDidScroll - readonly selectedIndex: number - readonly index: number - readonly position: number - readonly mainAxisLength: number -} -export interface Swiper__onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper__onChangeEvent_index - readonly index: number -} -export interface IndicatorComponent_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.IndicatorComponent_onChange - readonly index: number -} -export interface Tabs_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_onChange - readonly index: number -} -export interface Tabs_onTabBarClick_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_onTabBarClick - readonly index: number -} -export interface Tabs_onAnimationStart_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_onAnimationStart - readonly index: number - readonly targetIndex: number - readonly extraInfo: TabsAnimationEvent -} -export interface Tabs_onAnimationEnd_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_onAnimationEnd - readonly index: number - readonly extraInfo: TabsAnimationEvent -} -export interface Tabs_onGestureSwipe_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_onGestureSwipe - readonly index: number - readonly extraInfo: TabsAnimationEvent -} -export interface Tabs_customContentTransition_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_customContentTransition - readonly from: number - readonly to: number -} -export interface Tabs_onContentWillChange_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs_onContentWillChange - readonly currentIndex: number - readonly comingIndex: number -} -export interface Tabs__onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs__onChangeEvent_index - readonly index: number -} -export interface TabContent_onWillShow_event extends PeerEvent { - readonly kind: PeerEventKind.TabContent_onWillShow -} -export interface TabContent_onWillHide_event extends PeerEvent { - readonly kind: PeerEventKind.TabContent_onWillHide -} -export interface Text_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind.Text_onCopy - readonly breakpoints: string -} -export interface Text_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind.Text_onTextSelectionChange - readonly first: number - readonly last: number -} -export interface Text_bindSelectionMenu_event extends PeerEvent { - readonly kind: PeerEventKind.Text_bindSelectionMenu -} -export interface TextArea_onSubmit0_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onSubmit0 - readonly enterKey: EnterKeyType -} -export interface TextArea_onSubmit1_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onSubmit1 - readonly enterKeyType: EnterKeyType - readonly event?: SubmitEvent | undefined -} -export interface TextArea_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onChange - readonly value: string - readonly previewText?: PreviewText | undefined -} -export interface TextArea_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onTextSelectionChange - readonly first: number - readonly last: number -} -export interface TextArea_onContentScroll_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onContentScroll - readonly first: number - readonly last: number -} -export interface TextArea_onEditChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onEditChange - readonly parameter: boolean -} -export interface TextArea_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onCopy - readonly breakpoints: string -} -export interface TextArea_onCut_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onCut - readonly breakpoints: string -} -export interface TextArea_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onPaste - readonly value: string - readonly event: PasteEvent -} -export interface TextArea_onWillInsert_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onWillInsert - readonly parameter: InsertValue -} -export interface TextArea_onDidInsert_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onDidInsert - readonly parameter: InsertValue -} -export interface TextArea_onWillDelete_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onWillDelete - readonly parameter: DeleteValue -} -export interface TextArea_onDidDelete_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_onDidDelete - readonly parameter: DeleteValue -} -export interface TextArea_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea_customKeyboard -} -export interface TextArea__onChangeEvent_text_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea__onChangeEvent_text - readonly value: ResourceStr -} -export interface TextClock_onDateChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextClock_onDateChange - readonly index: number -} -export interface TextInput_onEditChanged_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onEditChanged - readonly parameter: boolean -} -export interface TextInput_onEditChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onEditChange - readonly parameter: boolean -} -export interface TextInput_onSubmit_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onSubmit - readonly enterKey: EnterKeyType - readonly event: SubmitEvent -} -export interface TextInput_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onChange - readonly value: string - readonly previewText?: PreviewText | undefined -} -export interface TextInput_onTextSelectionChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onTextSelectionChange - readonly selectionStart: number - readonly selectionEnd: number -} -export interface TextInput_onContentScroll_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onContentScroll - readonly totalOffsetX: number - readonly totalOffsetY: number -} -export interface TextInput_onCopy_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onCopy - readonly breakpoints: string -} -export interface TextInput_onCut_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onCut - readonly breakpoints: string -} -export interface TextInput_onPaste_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onPaste - readonly content: string - readonly event: PasteEvent -} -export interface TextInput_showUnit_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_showUnit -} -export interface TextInput_onSecurityStateChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onSecurityStateChange - readonly parameter: boolean -} -export interface TextInput_onWillInsert_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onWillInsert - readonly parameter: InsertValue -} -export interface TextInput_onDidInsert_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onDidInsert - readonly parameter: InsertValue -} -export interface TextInput_onWillDelete_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onWillDelete - readonly parameter: DeleteValue -} -export interface TextInput_onDidDelete_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_onDidDelete - readonly parameter: DeleteValue -} -export interface TextInput_customKeyboard_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput_customKeyboard -} -export interface TextInput__onChangeEvent_text_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput__onChangeEvent_text - readonly value: ResourceStr -} -export interface TextPicker_onAccept_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker_onAccept - readonly value: string - readonly index: number -} -export interface TextPicker_onCancel_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker_onCancel -} -export interface TextPicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker_onChange - readonly value: string | Array - readonly index: number | Array -} -export interface TextPicker__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker__onChangeEvent_selected - readonly selected: number | Array -} -export interface TextPicker__onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker__onChangeEvent_value - readonly value: string | Array -} -export interface TextTimer_onTimer_event extends PeerEvent { - readonly kind: PeerEventKind.TextTimer_onTimer - readonly first: number - readonly last: number -} -export interface TimePicker_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.TimePicker_onChange - readonly value: TimePickerResult -} -export interface TimePicker__onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.TimePicker__onChangeEvent_selected - readonly parameter: Date -} -export interface Toggle_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.Toggle_onChange - readonly parameter: boolean -} -export interface Toggle__onChangeEvent_isOn_event extends PeerEvent { - readonly kind: PeerEventKind.Toggle__onChangeEvent_isOn - readonly parameter: boolean -} -export interface Video_onStart_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onStart -} -export interface Video_onPause_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onPause -} -export interface Video_onFinish_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onFinish -} -export interface Video_onFullscreenChange_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onFullscreenChange - readonly parameter: FullscreenInfo -} -export interface Video_onPrepared_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onPrepared - readonly parameter: PreparedInfo -} -export interface Video_onSeeking_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onSeeking - readonly parameter: PlaybackInfo -} -export interface Video_onSeeked_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onSeeked - readonly parameter: PlaybackInfo -} -export interface Video_onUpdate_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onUpdate - readonly parameter: PlaybackInfo -} -export interface Video_onError_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onError -} -export interface Video_onStop_event extends PeerEvent { - readonly kind: PeerEventKind.Video_onStop -} -export interface Web_onPageEnd_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onPageEnd - readonly parameter: OnPageEndEvent -} -export interface Web_onPageBegin_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onPageBegin - readonly parameter: OnPageBeginEvent -} -export interface Web_onProgressChange_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onProgressChange - readonly parameter: OnProgressChangeEvent -} -export interface Web_onTitleReceive_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onTitleReceive - readonly parameter: OnTitleReceiveEvent -} -export interface Web_onGeolocationHide_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onGeolocationHide -} -export interface Web_onGeolocationShow_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onGeolocationShow - readonly parameter: OnGeolocationShowEvent -} -export interface Web_onRequestSelected_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onRequestSelected -} -export interface Web_onAlert_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onAlert - readonly parameter: OnAlertEvent -} -export interface Web_onBeforeUnload_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onBeforeUnload - readonly parameter: OnBeforeUnloadEvent -} -export interface Web_onConfirm_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onConfirm - readonly parameter: OnConfirmEvent -} -export interface Web_onPrompt_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onPrompt - readonly parameter: OnPromptEvent -} -export interface Web_onConsole_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onConsole - readonly parameter: OnConsoleEvent -} -export interface Web_onErrorReceive_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onErrorReceive - readonly parameter: OnErrorReceiveEvent -} -export interface Web_onHttpErrorReceive_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onHttpErrorReceive - readonly parameter: OnHttpErrorReceiveEvent -} -export interface Web_onDownloadStart_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onDownloadStart - readonly parameter: OnDownloadStartEvent -} -export interface Web_onRefreshAccessedHistory_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onRefreshAccessedHistory - readonly parameter: OnRefreshAccessedHistoryEvent -} -export interface Web_onUrlLoadIntercept_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onUrlLoadIntercept - readonly event?: { data: string | WebResourceRequest } | undefined -} -export interface Web_onSslErrorReceive_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onSslErrorReceive - readonly event?: { handler: Function, error: Object } | undefined -} -export interface Web_onRenderExited0_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onRenderExited0 - readonly parameter: OnRenderExitedEvent -} -export interface Web_onRenderExited1_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onRenderExited1 - readonly event?: { detail: Object } | undefined -} -export interface Web_onShowFileSelector_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onShowFileSelector - readonly parameter: OnShowFileSelectorEvent -} -export interface Web_onFileSelectorShow_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onFileSelectorShow - readonly event?: { callback_: Function, fileSelector: Object } | undefined -} -export interface Web_onResourceLoad_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onResourceLoad - readonly parameter: OnResourceLoadEvent -} -export interface Web_onFullScreenExit_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onFullScreenExit -} -export interface Web_onFullScreenEnter_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onFullScreenEnter - readonly event: FullScreenEnterEvent -} -export interface Web_onScaleChange_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onScaleChange - readonly parameter: OnScaleChangeEvent -} -export interface Web_onHttpAuthRequest_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onHttpAuthRequest - readonly parameter: OnHttpAuthRequestEvent -} -export interface Web_onInterceptRequest_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onInterceptRequest - readonly parameter: OnInterceptRequestEvent -} -export interface Web_onPermissionRequest_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onPermissionRequest - readonly parameter: OnPermissionRequestEvent -} -export interface Web_onScreenCaptureRequest_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onScreenCaptureRequest - readonly parameter: OnScreenCaptureRequestEvent -} -export interface Web_onContextMenuShow_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onContextMenuShow - readonly parameter: OnContextMenuShowEvent -} -export interface Web_onContextMenuHide_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onContextMenuHide -} -export interface Web_onSearchResultReceive_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onSearchResultReceive - readonly parameter: OnSearchResultReceiveEvent -} -export interface Web_onScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onScroll - readonly parameter: OnScrollEvent -} -export interface Web_onSslErrorEventReceive_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onSslErrorEventReceive - readonly parameter: OnSslErrorEventReceiveEvent -} -export interface Web_onSslErrorEvent_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onSslErrorEvent - readonly sslErrorEvent: SslErrorEvent -} -export interface Web_onClientAuthenticationRequest_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onClientAuthenticationRequest - readonly parameter: OnClientAuthenticationEvent -} -export interface Web_onWindowNew_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onWindowNew - readonly parameter: OnWindowNewEvent -} -export interface Web_onWindowExit_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onWindowExit -} -export interface Web_onInterceptKeyEvent_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onInterceptKeyEvent - readonly parameter: KeyEvent -} -export interface Web_onTouchIconUrlReceived_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onTouchIconUrlReceived - readonly parameter: OnTouchIconUrlReceivedEvent -} -export interface Web_onFaviconReceived_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onFaviconReceived - readonly parameter: OnFaviconReceivedEvent -} -export interface Web_onPageVisible_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onPageVisible - readonly parameter: OnPageVisibleEvent -} -export interface Web_onDataResubmitted_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onDataResubmitted - readonly parameter: OnDataResubmittedEvent -} -export interface Web_onAudioStateChanged_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onAudioStateChanged - readonly parameter: OnAudioStateChangedEvent -} -export interface Web_onFirstContentfulPaint_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onFirstContentfulPaint - readonly parameter: OnFirstContentfulPaintEvent -} -export interface Web_onFirstMeaningfulPaint_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onFirstMeaningfulPaint - readonly firstMeaningfulPaint: FirstMeaningfulPaint -} -export interface Web_onLargestContentfulPaint_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onLargestContentfulPaint - readonly largestContentfulPaint: LargestContentfulPaint -} -export interface Web_onLoadIntercept_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onLoadIntercept - readonly parameter: OnLoadInterceptEvent -} -export interface Web_onControllerAttached_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onControllerAttached -} -export interface Web_onOverScroll_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onOverScroll - readonly parameter: OnOverScrollEvent -} -export interface Web_onSafeBrowsingCheckResult_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onSafeBrowsingCheckResult - readonly threatType: ThreatType -} -export interface Web_onNavigationEntryCommitted_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onNavigationEntryCommitted - readonly loadCommittedDetails: LoadCommittedDetails -} -export interface Web_onIntelligentTrackingPreventionResult_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onIntelligentTrackingPreventionResult - readonly details: IntelligentTrackingPreventionDetails -} -export interface Web_onNativeEmbedLifecycleChange_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onNativeEmbedLifecycleChange - readonly event: NativeEmbedDataInfo -} -export interface Web_onNativeEmbedVisibilityChange_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onNativeEmbedVisibilityChange - readonly nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo -} -export interface Web_onNativeEmbedGestureEvent_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onNativeEmbedGestureEvent - readonly event: NativeEmbedTouchInfo -} -export interface Web_onOverrideUrlLoading_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onOverrideUrlLoading - readonly webResourceRequest: WebResourceRequest -} -export interface Web_onRenderProcessNotResponding_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onRenderProcessNotResponding - readonly data: RenderProcessNotRespondingData -} -export interface Web_onRenderProcessResponding_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onRenderProcessResponding -} -export interface Web_onViewportFitChanged_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onViewportFitChanged - readonly viewportFit: ViewportFit -} -export interface Web_onInterceptKeyboardAttach_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onInterceptKeyboardAttach - readonly keyboardCallbackInfo: WebKeyboardCallbackInfo -} -export interface Web_onAdsBlocked_event extends PeerEvent { - readonly kind: PeerEventKind.Web_onAdsBlocked - readonly details: AdsBlockedDetails -} -export interface Web_bindSelectionMenu_event extends PeerEvent { - readonly kind: PeerEventKind.Web_bindSelectionMenu -} -export interface XComponent_onLoad_event extends PeerEvent { - readonly kind: PeerEventKind.XComponent_onLoad - readonly event?: Object | undefined -} -export interface XComponent_onDestroy_event extends PeerEvent { - readonly kind: PeerEventKind.XComponent_onDestroy -} -export interface SideBarContainer_onChange_event extends PeerEvent { - readonly kind: PeerEventKind.SideBarContainer_onChange - readonly parameter: boolean -} -export interface SideBarContainer__onChangeEvent_showSideBar_event extends PeerEvent { - readonly kind: PeerEventKind.SideBarContainer__onChangeEvent_showSideBar - readonly parameter: boolean -} -export interface WaterFlow_onReachStart_event extends PeerEvent { - readonly kind: PeerEventKind.WaterFlow_onReachStart -} -export interface WaterFlow_onReachEnd_event extends PeerEvent { - readonly kind: PeerEventKind.WaterFlow_onReachEnd -} -export interface WaterFlow_onScrollFrameBegin_event extends PeerEvent { - readonly kind: PeerEventKind.WaterFlow_onScrollFrameBegin - readonly offset: number - readonly state: ScrollState -} -export interface WaterFlow_onScrollIndex_event extends PeerEvent { - readonly kind: PeerEventKind.WaterFlow_onScrollIndex - readonly first: number - readonly last: number -} -export interface UIExtensionComponent_onRemoteReady_event extends PeerEvent { - readonly kind: PeerEventKind.UIExtensionComponent_onRemoteReady - readonly parameter: UIExtensionProxy -} -export interface UIExtensionComponent_onResult_event extends PeerEvent { - readonly kind: PeerEventKind.UIExtensionComponent_onResult - readonly parameter: { code: number, want?: Want } -} -export interface UIExtensionComponent_onRelease_event extends PeerEvent { - readonly kind: PeerEventKind.UIExtensionComponent_onRelease - readonly index: number -} -export interface UIExtensionComponent_onError_event extends PeerEvent { - readonly kind: PeerEventKind.UIExtensionComponent_onError - readonly err: BusinessError -} -export interface UIExtensionComponent_onTerminated_event extends PeerEvent { - readonly kind: PeerEventKind.UIExtensionComponent_onTerminated - readonly parameter: TerminationInfo -} -export function getEventNameByKind(kind: PeerEventKind): string { - switch (kind) { - case PeerEventKind.AbilityComponent_onConnect: return "AbilityComponent_onConnect" - case PeerEventKind.AbilityComponent_onDisconnect: return "AbilityComponent_onDisconnect" - case PeerEventKind.AlphabetIndexer_onSelected: return "AlphabetIndexer_onSelected" - case PeerEventKind.AlphabetIndexer_onSelect: return "AlphabetIndexer_onSelect" - case PeerEventKind.AlphabetIndexer_onRequestPopupData: return "AlphabetIndexer_onRequestPopupData" - case PeerEventKind.AlphabetIndexer_onPopupSelect: return "AlphabetIndexer_onPopupSelect" - case PeerEventKind.AlphabetIndexer__onChangeEvent_selected: return "AlphabetIndexer__onChangeEvent_selected" - case PeerEventKind.Animator_onStart: return "Animator_onStart" - case PeerEventKind.Animator_onPause: return "Animator_onPause" - case PeerEventKind.Animator_onRepeat: return "Animator_onRepeat" - case PeerEventKind.Animator_onCancel: return "Animator_onCancel" - case PeerEventKind.Animator_onFinish: return "Animator_onFinish" - case PeerEventKind.Animator_onFrame: return "Animator_onFrame" - case PeerEventKind.Calendar_onSelectChange: return "Calendar_onSelectChange" - case PeerEventKind.Calendar_onRequestData: return "Calendar_onRequestData" - case PeerEventKind.CalendarPicker_onChange: return "CalendarPicker_onChange" - case PeerEventKind.Canvas_onReady: return "Canvas_onReady" - case PeerEventKind.Checkbox_onChange: return "Checkbox_onChange" - case PeerEventKind.Checkbox__onChangeEvent_select: return "Checkbox__onChangeEvent_select" - case PeerEventKind.CheckboxGroup_onChange: return "CheckboxGroup_onChange" - case PeerEventKind.CheckboxGroup__onChangeEvent_selectAll: return "CheckboxGroup__onChangeEvent_selectAll" - case PeerEventKind.CommonMethod_onChildTouchTest: return "CommonMethod_onChildTouchTest" - case PeerEventKind.CommonMethod_onClick0: return "CommonMethod_onClick0" - case PeerEventKind.CommonMethod_onClick1: return "CommonMethod_onClick1" - case PeerEventKind.CommonMethod_onHover: return "CommonMethod_onHover" - case PeerEventKind.CommonMethod_onAccessibilityHover: return "CommonMethod_onAccessibilityHover" - case PeerEventKind.CommonMethod_onMouse: return "CommonMethod_onMouse" - case PeerEventKind.CommonMethod_onTouch: return "CommonMethod_onTouch" - case PeerEventKind.CommonMethod_onKeyEvent: return "CommonMethod_onKeyEvent" - case PeerEventKind.CommonMethod_onKeyPreIme: return "CommonMethod_onKeyPreIme" - case PeerEventKind.CommonMethod_onFocus: return "CommonMethod_onFocus" - case PeerEventKind.CommonMethod_onBlur: return "CommonMethod_onBlur" - case PeerEventKind.CommonMethod_onAppear: return "CommonMethod_onAppear" - case PeerEventKind.CommonMethod_onDisAppear: return "CommonMethod_onDisAppear" - case PeerEventKind.CommonMethod_onAttach: return "CommonMethod_onAttach" - case PeerEventKind.CommonMethod_onDetach: return "CommonMethod_onDetach" - case PeerEventKind.CommonMethod_onAreaChange: return "CommonMethod_onAreaChange" - case PeerEventKind.CommonMethod_onDragStart: return "CommonMethod_onDragStart" - case PeerEventKind.CommonMethod_onDragEnter: return "CommonMethod_onDragEnter" - case PeerEventKind.CommonMethod_onDragMove: return "CommonMethod_onDragMove" - case PeerEventKind.CommonMethod_onDragLeave: return "CommonMethod_onDragLeave" - case PeerEventKind.CommonMethod_onDrop: return "CommonMethod_onDrop" - case PeerEventKind.CommonMethod_onDragEnd: return "CommonMethod_onDragEnd" - case PeerEventKind.CommonMethod_onPreDrag: return "CommonMethod_onPreDrag" - case PeerEventKind.CommonMethod_accessibilityVirtualNode: return "CommonMethod_accessibilityVirtualNode" - case PeerEventKind.CommonMethod_onGestureJudgeBegin: return "CommonMethod_onGestureJudgeBegin" - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin0: return "CommonMethod_onGestureRecognizerJudgeBegin0" - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin1: return "CommonMethod_onGestureRecognizerJudgeBegin1" - case PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith: return "CommonMethod_shouldBuiltInRecognizerParallelWith" - case PeerEventKind.CommonMethod_onTouchIntercept: return "CommonMethod_onTouchIntercept" - case PeerEventKind.CommonMethod_onSizeChange: return "CommonMethod_onSizeChange" - case PeerEventKind.CommonMethod_background: return "CommonMethod_background" - case PeerEventKind.CommonMethod_bindContextMenu0: return "CommonMethod_bindContextMenu0" - case PeerEventKind.CommonMethod_bindContextMenu1: return "CommonMethod_bindContextMenu1" - case PeerEventKind.CommonMethod_bindContentCover0: return "CommonMethod_bindContentCover0" - case PeerEventKind.CommonMethod_bindContentCover1: return "CommonMethod_bindContentCover1" - case PeerEventKind.CommonMethod_bindSheet: return "CommonMethod_bindSheet" - case PeerEventKind.CommonMethod_onVisibleAreaChange: return "CommonMethod_onVisibleAreaChange" - case PeerEventKind.ScrollableCommonMethod_onScroll: return "ScrollableCommonMethod_onScroll" - case PeerEventKind.ScrollableCommonMethod_onDidScroll: return "ScrollableCommonMethod_onDidScroll" - case PeerEventKind.ScrollableCommonMethod_onReachStart: return "ScrollableCommonMethod_onReachStart" - case PeerEventKind.ScrollableCommonMethod_onReachEnd: return "ScrollableCommonMethod_onReachEnd" - case PeerEventKind.ScrollableCommonMethod_onScrollStart: return "ScrollableCommonMethod_onScrollStart" - case PeerEventKind.ScrollableCommonMethod_onScrollStop: return "ScrollableCommonMethod_onScrollStop" - case PeerEventKind.Counter_onInc: return "Counter_onInc" - case PeerEventKind.Counter_onDec: return "Counter_onDec" - case PeerEventKind.DatePicker_onChange: return "DatePicker_onChange" - case PeerEventKind.DatePicker_onDateChange: return "DatePicker_onDateChange" - case PeerEventKind.DatePicker__onChangeEvent_selected: return "DatePicker__onChangeEvent_selected" - case PeerEventKind.EmbeddedComponent_onTerminated: return "EmbeddedComponent_onTerminated" - case PeerEventKind.EmbeddedComponent_onError: return "EmbeddedComponent_onError" - case PeerEventKind.FolderStack_onFolderStateChange: return "FolderStack_onFolderStateChange" - case PeerEventKind.FolderStack_onHoverStatusChange: return "FolderStack_onHoverStatusChange" - case PeerEventKind.FormComponent_onAcquired: return "FormComponent_onAcquired" - case PeerEventKind.FormComponent_onError: return "FormComponent_onError" - case PeerEventKind.FormComponent_onRouter: return "FormComponent_onRouter" - case PeerEventKind.FormComponent_onUninstall: return "FormComponent_onUninstall" - case PeerEventKind.FormComponent_onLoad: return "FormComponent_onLoad" - case PeerEventKind.Gauge_description: return "Gauge_description" - case PeerEventKind.Grid_onScrollBarUpdate: return "Grid_onScrollBarUpdate" - case PeerEventKind.Grid_onScrollIndex: return "Grid_onScrollIndex" - case PeerEventKind.Grid_onItemDragStart: return "Grid_onItemDragStart" - case PeerEventKind.Grid_onItemDragEnter: return "Grid_onItemDragEnter" - case PeerEventKind.Grid_onItemDragMove: return "Grid_onItemDragMove" - case PeerEventKind.Grid_onItemDragLeave: return "Grid_onItemDragLeave" - case PeerEventKind.Grid_onItemDrop: return "Grid_onItemDrop" - case PeerEventKind.Grid_onScroll: return "Grid_onScroll" - case PeerEventKind.Grid_onReachStart: return "Grid_onReachStart" - case PeerEventKind.Grid_onReachEnd: return "Grid_onReachEnd" - case PeerEventKind.Grid_onScrollStart: return "Grid_onScrollStart" - case PeerEventKind.Grid_onScrollStop: return "Grid_onScrollStop" - case PeerEventKind.Grid_onScrollFrameBegin: return "Grid_onScrollFrameBegin" - case PeerEventKind.GridItem_onSelect: return "GridItem_onSelect" - case PeerEventKind.GridItem__onChangeEvent_selected: return "GridItem__onChangeEvent_selected" - case PeerEventKind.GridRow_onBreakpointChange: return "GridRow_onBreakpointChange" - case PeerEventKind.Image_onComplete: return "Image_onComplete" - case PeerEventKind.Image_onError: return "Image_onError" - case PeerEventKind.Image_onFinish: return "Image_onFinish" - case PeerEventKind.ImageAnimator_onStart: return "ImageAnimator_onStart" - case PeerEventKind.ImageAnimator_onPause: return "ImageAnimator_onPause" - case PeerEventKind.ImageAnimator_onRepeat: return "ImageAnimator_onRepeat" - case PeerEventKind.ImageAnimator_onCancel: return "ImageAnimator_onCancel" - case PeerEventKind.ImageAnimator_onFinish: return "ImageAnimator_onFinish" - case PeerEventKind.ImageSpan_onComplete: return "ImageSpan_onComplete" - case PeerEventKind.ImageSpan_onError: return "ImageSpan_onError" - case PeerEventKind.List_onScroll: return "List_onScroll" - case PeerEventKind.List_onScrollIndex: return "List_onScrollIndex" - case PeerEventKind.List_onScrollVisibleContentChange: return "List_onScrollVisibleContentChange" - case PeerEventKind.List_onReachStart: return "List_onReachStart" - case PeerEventKind.List_onReachEnd: return "List_onReachEnd" - case PeerEventKind.List_onScrollStart: return "List_onScrollStart" - case PeerEventKind.List_onScrollStop: return "List_onScrollStop" - case PeerEventKind.List_onItemDelete: return "List_onItemDelete" - case PeerEventKind.List_onItemMove: return "List_onItemMove" - case PeerEventKind.List_onItemDragStart: return "List_onItemDragStart" - case PeerEventKind.List_onItemDragEnter: return "List_onItemDragEnter" - case PeerEventKind.List_onItemDragMove: return "List_onItemDragMove" - case PeerEventKind.List_onItemDragLeave: return "List_onItemDragLeave" - case PeerEventKind.List_onItemDrop: return "List_onItemDrop" - case PeerEventKind.List_onScrollFrameBegin: return "List_onScrollFrameBegin" - case PeerEventKind.ListItem_onSelect: return "ListItem_onSelect" - case PeerEventKind.ListItem__onChangeEvent_selected: return "ListItem__onChangeEvent_selected" - case PeerEventKind.LocationButton_onClick: return "LocationButton_onClick" - case PeerEventKind.Marquee_onStart: return "Marquee_onStart" - case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" - case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" - case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" - case PeerEventKind.MenuItem__onChangeEvent_selected: return "MenuItem__onChangeEvent_selected" - case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" - case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" - case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" - case PeerEventKind.NavDestination_onReady: return "NavDestination_onReady" - case PeerEventKind.NavDestination_onWillAppear: return "NavDestination_onWillAppear" - case PeerEventKind.NavDestination_onWillDisappear: return "NavDestination_onWillDisappear" - case PeerEventKind.NavDestination_onWillShow: return "NavDestination_onWillShow" - case PeerEventKind.NavDestination_onWillHide: return "NavDestination_onWillHide" - case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" - case PeerEventKind.Panel_onChange: return "Panel_onChange" - case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" - case PeerEventKind.Panel__onChangeEvent_mode: return "Panel__onChangeEvent_mode" - case PeerEventKind.PasteButton_onClick: return "PasteButton_onClick" - case PeerEventKind.PatternLock_onPatternComplete: return "PatternLock_onPatternComplete" - case PeerEventKind.PatternLock_onDotConnect: return "PatternLock_onDotConnect" - case PeerEventKind.PluginComponent_onComplete: return "PluginComponent_onComplete" - case PeerEventKind.PluginComponent_onError: return "PluginComponent_onError" - case PeerEventKind.Radio_onChange: return "Radio_onChange" - case PeerEventKind.Radio__onChangeEvent_checked: return "Radio__onChangeEvent_checked" - case PeerEventKind.Rating_onChange: return "Rating_onChange" - case PeerEventKind.Rating__onChangeEvent_rating: return "Rating__onChangeEvent_rating" - case PeerEventKind.Refresh_onStateChange: return "Refresh_onStateChange" - case PeerEventKind.Refresh_onRefreshing: return "Refresh_onRefreshing" - case PeerEventKind.Refresh_onOffsetChange: return "Refresh_onOffsetChange" - case PeerEventKind.Refresh__onChangeEvent_refreshing: return "Refresh__onChangeEvent_refreshing" - case PeerEventKind.RichEditor_onReady: return "RichEditor_onReady" - case PeerEventKind.RichEditor_onSelect: return "RichEditor_onSelect" - case PeerEventKind.RichEditor_onSelectionChange: return "RichEditor_onSelectionChange" - case PeerEventKind.RichEditor_aboutToIMEInput: return "RichEditor_aboutToIMEInput" - case PeerEventKind.RichEditor_onIMEInputComplete: return "RichEditor_onIMEInputComplete" - case PeerEventKind.RichEditor_onDidIMEInput: return "RichEditor_onDidIMEInput" - case PeerEventKind.RichEditor_aboutToDelete: return "RichEditor_aboutToDelete" - case PeerEventKind.RichEditor_onDeleteComplete: return "RichEditor_onDeleteComplete" - case PeerEventKind.RichEditor_onPaste: return "RichEditor_onPaste" - case PeerEventKind.RichEditor_onEditingChange: return "RichEditor_onEditingChange" - case PeerEventKind.RichEditor_onSubmit: return "RichEditor_onSubmit" - case PeerEventKind.RichEditor_onWillChange: return "RichEditor_onWillChange" - case PeerEventKind.RichEditor_onDidChange: return "RichEditor_onDidChange" - case PeerEventKind.RichEditor_onCut: return "RichEditor_onCut" - case PeerEventKind.RichEditor_onCopy: return "RichEditor_onCopy" - case PeerEventKind.RichEditor_bindSelectionMenu: return "RichEditor_bindSelectionMenu" - case PeerEventKind.RichEditor_customKeyboard: return "RichEditor_customKeyboard" - case PeerEventKind.RichText_onStart: return "RichText_onStart" - case PeerEventKind.RichText_onComplete: return "RichText_onComplete" - case PeerEventKind.SaveButton_onClick: return "SaveButton_onClick" - case PeerEventKind.Scroll_onScroll: return "Scroll_onScroll" - case PeerEventKind.Scroll_onDidScroll: return "Scroll_onDidScroll" - case PeerEventKind.Scroll_onScrollEdge: return "Scroll_onScrollEdge" - case PeerEventKind.Scroll_onScrollStart: return "Scroll_onScrollStart" - case PeerEventKind.Scroll_onScrollEnd: return "Scroll_onScrollEnd" - case PeerEventKind.Scroll_onScrollStop: return "Scroll_onScrollStop" - case PeerEventKind.Scroll_onScrollFrameBegin: return "Scroll_onScrollFrameBegin" - case PeerEventKind.Search_onEditChange: return "Search_onEditChange" - case PeerEventKind.Search_onSubmit0: return "Search_onSubmit0" - case PeerEventKind.Search_onSubmit1: return "Search_onSubmit1" - case PeerEventKind.Search_onChange: return "Search_onChange" - case PeerEventKind.Search_onTextSelectionChange: return "Search_onTextSelectionChange" - case PeerEventKind.Search_onContentScroll: return "Search_onContentScroll" - case PeerEventKind.Search_onCopy: return "Search_onCopy" - case PeerEventKind.Search_onCut: return "Search_onCut" - case PeerEventKind.Search_onPaste: return "Search_onPaste" - case PeerEventKind.Search_onWillInsert: return "Search_onWillInsert" - case PeerEventKind.Search_onDidInsert: return "Search_onDidInsert" - case PeerEventKind.Search_onWillDelete: return "Search_onWillDelete" - case PeerEventKind.Search_onDidDelete: return "Search_onDidDelete" - case PeerEventKind.Search_customKeyboard: return "Search_customKeyboard" - case PeerEventKind.Search__onChangeEvent_value: return "Search__onChangeEvent_value" - case PeerEventKind.Select_onSelect: return "Select_onSelect" - case PeerEventKind.Select__onChangeEvent_selected: return "Select__onChangeEvent_selected" - case PeerEventKind.Select__onChangeEvent_value: return "Select__onChangeEvent_value" - case PeerEventKind.Slider_onChange: return "Slider_onChange" - case PeerEventKind.Slider__onChangeEvent_value: return "Slider__onChangeEvent_value" - case PeerEventKind.Stepper_onFinish: return "Stepper_onFinish" - case PeerEventKind.Stepper_onSkip: return "Stepper_onSkip" - case PeerEventKind.Stepper_onChange: return "Stepper_onChange" - case PeerEventKind.Stepper_onNext: return "Stepper_onNext" - case PeerEventKind.Stepper_onPrevious: return "Stepper_onPrevious" - case PeerEventKind.Stepper__onChangeEvent_index: return "Stepper__onChangeEvent_index" - case PeerEventKind.Swiper_onChange: return "Swiper_onChange" - case PeerEventKind.Swiper_onAnimationStart: return "Swiper_onAnimationStart" - case PeerEventKind.Swiper_onAnimationEnd: return "Swiper_onAnimationEnd" - case PeerEventKind.Swiper_onGestureSwipe: return "Swiper_onGestureSwipe" - case PeerEventKind.Swiper_onContentDidScroll: return "Swiper_onContentDidScroll" - case PeerEventKind.Swiper__onChangeEvent_index: return "Swiper__onChangeEvent_index" - case PeerEventKind.IndicatorComponent_onChange: return "IndicatorComponent_onChange" - case PeerEventKind.Tabs_onChange: return "Tabs_onChange" - case PeerEventKind.Tabs_onTabBarClick: return "Tabs_onTabBarClick" - case PeerEventKind.Tabs_onAnimationStart: return "Tabs_onAnimationStart" - case PeerEventKind.Tabs_onAnimationEnd: return "Tabs_onAnimationEnd" - case PeerEventKind.Tabs_onGestureSwipe: return "Tabs_onGestureSwipe" - case PeerEventKind.Tabs_customContentTransition: return "Tabs_customContentTransition" - case PeerEventKind.Tabs_onContentWillChange: return "Tabs_onContentWillChange" - case PeerEventKind.Tabs__onChangeEvent_index: return "Tabs__onChangeEvent_index" - case PeerEventKind.TabContent_onWillShow: return "TabContent_onWillShow" - case PeerEventKind.TabContent_onWillHide: return "TabContent_onWillHide" - case PeerEventKind.Text_onCopy: return "Text_onCopy" - case PeerEventKind.Text_onTextSelectionChange: return "Text_onTextSelectionChange" - case PeerEventKind.Text_bindSelectionMenu: return "Text_bindSelectionMenu" - case PeerEventKind.TextArea_onSubmit0: return "TextArea_onSubmit0" - case PeerEventKind.TextArea_onSubmit1: return "TextArea_onSubmit1" - case PeerEventKind.TextArea_onChange: return "TextArea_onChange" - case PeerEventKind.TextArea_onTextSelectionChange: return "TextArea_onTextSelectionChange" - case PeerEventKind.TextArea_onContentScroll: return "TextArea_onContentScroll" - case PeerEventKind.TextArea_onEditChange: return "TextArea_onEditChange" - case PeerEventKind.TextArea_onCopy: return "TextArea_onCopy" - case PeerEventKind.TextArea_onCut: return "TextArea_onCut" - case PeerEventKind.TextArea_onPaste: return "TextArea_onPaste" - case PeerEventKind.TextArea_onWillInsert: return "TextArea_onWillInsert" - case PeerEventKind.TextArea_onDidInsert: return "TextArea_onDidInsert" - case PeerEventKind.TextArea_onWillDelete: return "TextArea_onWillDelete" - case PeerEventKind.TextArea_onDidDelete: return "TextArea_onDidDelete" - case PeerEventKind.TextArea_customKeyboard: return "TextArea_customKeyboard" - case PeerEventKind.TextArea__onChangeEvent_text: return "TextArea__onChangeEvent_text" - case PeerEventKind.TextClock_onDateChange: return "TextClock_onDateChange" - case PeerEventKind.TextInput_onEditChanged: return "TextInput_onEditChanged" - case PeerEventKind.TextInput_onEditChange: return "TextInput_onEditChange" - case PeerEventKind.TextInput_onSubmit: return "TextInput_onSubmit" - case PeerEventKind.TextInput_onChange: return "TextInput_onChange" - case PeerEventKind.TextInput_onTextSelectionChange: return "TextInput_onTextSelectionChange" - case PeerEventKind.TextInput_onContentScroll: return "TextInput_onContentScroll" - case PeerEventKind.TextInput_onCopy: return "TextInput_onCopy" - case PeerEventKind.TextInput_onCut: return "TextInput_onCut" - case PeerEventKind.TextInput_onPaste: return "TextInput_onPaste" - case PeerEventKind.TextInput_showUnit: return "TextInput_showUnit" - case PeerEventKind.TextInput_onSecurityStateChange: return "TextInput_onSecurityStateChange" - case PeerEventKind.TextInput_onWillInsert: return "TextInput_onWillInsert" - case PeerEventKind.TextInput_onDidInsert: return "TextInput_onDidInsert" - case PeerEventKind.TextInput_onWillDelete: return "TextInput_onWillDelete" - case PeerEventKind.TextInput_onDidDelete: return "TextInput_onDidDelete" - case PeerEventKind.TextInput_customKeyboard: return "TextInput_customKeyboard" - case PeerEventKind.TextInput__onChangeEvent_text: return "TextInput__onChangeEvent_text" - case PeerEventKind.TextPicker_onAccept: return "TextPicker_onAccept" - case PeerEventKind.TextPicker_onCancel: return "TextPicker_onCancel" - case PeerEventKind.TextPicker_onChange: return "TextPicker_onChange" - case PeerEventKind.TextPicker__onChangeEvent_selected: return "TextPicker__onChangeEvent_selected" - case PeerEventKind.TextPicker__onChangeEvent_value: return "TextPicker__onChangeEvent_value" - case PeerEventKind.TextTimer_onTimer: return "TextTimer_onTimer" - case PeerEventKind.TimePicker_onChange: return "TimePicker_onChange" - case PeerEventKind.TimePicker__onChangeEvent_selected: return "TimePicker__onChangeEvent_selected" - case PeerEventKind.Toggle_onChange: return "Toggle_onChange" - case PeerEventKind.Toggle__onChangeEvent_isOn: return "Toggle__onChangeEvent_isOn" - case PeerEventKind.Video_onStart: return "Video_onStart" - case PeerEventKind.Video_onPause: return "Video_onPause" - case PeerEventKind.Video_onFinish: return "Video_onFinish" - case PeerEventKind.Video_onFullscreenChange: return "Video_onFullscreenChange" - case PeerEventKind.Video_onPrepared: return "Video_onPrepared" - case PeerEventKind.Video_onSeeking: return "Video_onSeeking" - case PeerEventKind.Video_onSeeked: return "Video_onSeeked" - case PeerEventKind.Video_onUpdate: return "Video_onUpdate" - case PeerEventKind.Video_onError: return "Video_onError" - case PeerEventKind.Video_onStop: return "Video_onStop" - case PeerEventKind.Web_onPageEnd: return "Web_onPageEnd" - case PeerEventKind.Web_onPageBegin: return "Web_onPageBegin" - case PeerEventKind.Web_onProgressChange: return "Web_onProgressChange" - case PeerEventKind.Web_onTitleReceive: return "Web_onTitleReceive" - case PeerEventKind.Web_onGeolocationHide: return "Web_onGeolocationHide" - case PeerEventKind.Web_onGeolocationShow: return "Web_onGeolocationShow" - case PeerEventKind.Web_onRequestSelected: return "Web_onRequestSelected" - case PeerEventKind.Web_onAlert: return "Web_onAlert" - case PeerEventKind.Web_onBeforeUnload: return "Web_onBeforeUnload" - case PeerEventKind.Web_onConfirm: return "Web_onConfirm" - case PeerEventKind.Web_onPrompt: return "Web_onPrompt" - case PeerEventKind.Web_onConsole: return "Web_onConsole" - case PeerEventKind.Web_onErrorReceive: return "Web_onErrorReceive" - case PeerEventKind.Web_onHttpErrorReceive: return "Web_onHttpErrorReceive" - case PeerEventKind.Web_onDownloadStart: return "Web_onDownloadStart" - case PeerEventKind.Web_onRefreshAccessedHistory: return "Web_onRefreshAccessedHistory" - case PeerEventKind.Web_onUrlLoadIntercept: return "Web_onUrlLoadIntercept" - case PeerEventKind.Web_onSslErrorReceive: return "Web_onSslErrorReceive" - case PeerEventKind.Web_onRenderExited0: return "Web_onRenderExited0" - case PeerEventKind.Web_onRenderExited1: return "Web_onRenderExited1" - case PeerEventKind.Web_onShowFileSelector: return "Web_onShowFileSelector" - case PeerEventKind.Web_onFileSelectorShow: return "Web_onFileSelectorShow" - case PeerEventKind.Web_onResourceLoad: return "Web_onResourceLoad" - case PeerEventKind.Web_onFullScreenExit: return "Web_onFullScreenExit" - case PeerEventKind.Web_onFullScreenEnter: return "Web_onFullScreenEnter" - case PeerEventKind.Web_onScaleChange: return "Web_onScaleChange" - case PeerEventKind.Web_onHttpAuthRequest: return "Web_onHttpAuthRequest" - case PeerEventKind.Web_onInterceptRequest: return "Web_onInterceptRequest" - case PeerEventKind.Web_onPermissionRequest: return "Web_onPermissionRequest" - case PeerEventKind.Web_onScreenCaptureRequest: return "Web_onScreenCaptureRequest" - case PeerEventKind.Web_onContextMenuShow: return "Web_onContextMenuShow" - case PeerEventKind.Web_onContextMenuHide: return "Web_onContextMenuHide" - case PeerEventKind.Web_onSearchResultReceive: return "Web_onSearchResultReceive" - case PeerEventKind.Web_onScroll: return "Web_onScroll" - case PeerEventKind.Web_onSslErrorEventReceive: return "Web_onSslErrorEventReceive" - case PeerEventKind.Web_onSslErrorEvent: return "Web_onSslErrorEvent" - case PeerEventKind.Web_onClientAuthenticationRequest: return "Web_onClientAuthenticationRequest" - case PeerEventKind.Web_onWindowNew: return "Web_onWindowNew" - case PeerEventKind.Web_onWindowExit: return "Web_onWindowExit" - case PeerEventKind.Web_onInterceptKeyEvent: return "Web_onInterceptKeyEvent" - case PeerEventKind.Web_onTouchIconUrlReceived: return "Web_onTouchIconUrlReceived" - case PeerEventKind.Web_onFaviconReceived: return "Web_onFaviconReceived" - case PeerEventKind.Web_onPageVisible: return "Web_onPageVisible" - case PeerEventKind.Web_onDataResubmitted: return "Web_onDataResubmitted" - case PeerEventKind.Web_onAudioStateChanged: return "Web_onAudioStateChanged" - case PeerEventKind.Web_onFirstContentfulPaint: return "Web_onFirstContentfulPaint" - case PeerEventKind.Web_onFirstMeaningfulPaint: return "Web_onFirstMeaningfulPaint" - case PeerEventKind.Web_onLargestContentfulPaint: return "Web_onLargestContentfulPaint" - case PeerEventKind.Web_onLoadIntercept: return "Web_onLoadIntercept" - case PeerEventKind.Web_onControllerAttached: return "Web_onControllerAttached" - case PeerEventKind.Web_onOverScroll: return "Web_onOverScroll" - case PeerEventKind.Web_onSafeBrowsingCheckResult: return "Web_onSafeBrowsingCheckResult" - case PeerEventKind.Web_onNavigationEntryCommitted: return "Web_onNavigationEntryCommitted" - case PeerEventKind.Web_onIntelligentTrackingPreventionResult: return "Web_onIntelligentTrackingPreventionResult" - case PeerEventKind.Web_onNativeEmbedLifecycleChange: return "Web_onNativeEmbedLifecycleChange" - case PeerEventKind.Web_onNativeEmbedVisibilityChange: return "Web_onNativeEmbedVisibilityChange" - case PeerEventKind.Web_onNativeEmbedGestureEvent: return "Web_onNativeEmbedGestureEvent" - case PeerEventKind.Web_onOverrideUrlLoading: return "Web_onOverrideUrlLoading" - case PeerEventKind.Web_onRenderProcessNotResponding: return "Web_onRenderProcessNotResponding" - case PeerEventKind.Web_onRenderProcessResponding: return "Web_onRenderProcessResponding" - case PeerEventKind.Web_onViewportFitChanged: return "Web_onViewportFitChanged" - case PeerEventKind.Web_onInterceptKeyboardAttach: return "Web_onInterceptKeyboardAttach" - case PeerEventKind.Web_onAdsBlocked: return "Web_onAdsBlocked" - case PeerEventKind.Web_bindSelectionMenu: return "Web_bindSelectionMenu" - case PeerEventKind.XComponent_onLoad: return "XComponent_onLoad" - case PeerEventKind.XComponent_onDestroy: return "XComponent_onDestroy" - case PeerEventKind.SideBarContainer_onChange: return "SideBarContainer_onChange" - case PeerEventKind.SideBarContainer__onChangeEvent_showSideBar: return "SideBarContainer__onChangeEvent_showSideBar" - case PeerEventKind.WaterFlow_onReachStart: return "WaterFlow_onReachStart" - case PeerEventKind.WaterFlow_onReachEnd: return "WaterFlow_onReachEnd" - case PeerEventKind.WaterFlow_onScrollFrameBegin: return "WaterFlow_onScrollFrameBegin" - case PeerEventKind.WaterFlow_onScrollIndex: return "WaterFlow_onScrollIndex" - case PeerEventKind.UIExtensionComponent_onRemoteReady: return "UIExtensionComponent_onRemoteReady" - case PeerEventKind.UIExtensionComponent_onResult: return "UIExtensionComponent_onResult" - case PeerEventKind.UIExtensionComponent_onRelease: return "UIExtensionComponent_onRelease" - case PeerEventKind.UIExtensionComponent_onError: return "UIExtensionComponent_onError" - case PeerEventKind.UIExtensionComponent_onTerminated: return "UIExtensionComponent_onTerminated" - default: throw new Error(`Unknown kind ${kind}`) - } -} -export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent { - const kind: PeerEventKind = eventDeserializer.readInt32() - const nodeId: number = eventDeserializer.readInt32() - if ((kind) === (PeerEventKind.AbilityComponent_onConnect)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as AbilityComponent_onConnect_event) - } - else if ((kind) === (PeerEventKind.AbilityComponent_onDisconnect)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as AbilityComponent_onDisconnect_event) - } - else if ((kind) === (PeerEventKind.AlphabetIndexer_onSelected)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as AlphabetIndexer_onSelected_event) - } - else if ((kind) === (PeerEventKind.AlphabetIndexer_onSelect)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as AlphabetIndexer_onSelect_event) - } - else if ((kind) === (PeerEventKind.AlphabetIndexer_onRequestPopupData)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as AlphabetIndexer_onRequestPopupData_event) - } - else if ((kind) === (PeerEventKind.AlphabetIndexer_onPopupSelect)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as AlphabetIndexer_onPopupSelect_event) - } - else if ((kind) === (PeerEventKind.AlphabetIndexer__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as AlphabetIndexer__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.Animator_onStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Animator_onStart_event) - } - else if ((kind) === (PeerEventKind.Animator_onPause)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Animator_onPause_event) - } - else if ((kind) === (PeerEventKind.Animator_onRepeat)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Animator_onRepeat_event) - } - else if ((kind) === (PeerEventKind.Animator_onCancel)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Animator_onCancel_event) - } - else if ((kind) === (PeerEventKind.Animator_onFinish)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Animator_onFinish_event) - } - else if ((kind) === (PeerEventKind.Animator_onFrame)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Animator_onFrame_event) - } - else if ((kind) === (PeerEventKind.Calendar_onSelectChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readCalendarSelectedDate() - return (event as Calendar_onSelectChange_event) - } - else if ((kind) === (PeerEventKind.Calendar_onRequestData)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readCalendarRequestedData() - return (event as Calendar_onRequestData_event) - } - else if ((kind) === (PeerEventKind.CalendarPicker_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = new Date(eventDeserializer.readInt64()) - return (event as CalendarPicker_onChange_event) - } - else if ((kind) === (PeerEventKind.Canvas_onReady)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Canvas_onReady_event) - } - else if ((kind) === (PeerEventKind.Checkbox_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = eventDeserializer.readBoolean() - return (event as Checkbox_onChange_event) - } - else if ((kind) === (PeerEventKind.Checkbox__onChangeEvent_select)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Checkbox__onChangeEvent_select_event) - } - else if ((kind) === (PeerEventKind.CheckboxGroup_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = eventDeserializer.readCheckboxGroupResult() - return (event as CheckboxGroup_onChange_event) - } - else if ((kind) === (PeerEventKind.CheckboxGroup__onChangeEvent_selectAll)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as CheckboxGroup__onChangeEvent_selectAll_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onChildTouchTest)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - const value_buf_length: int32 = eventDeserializer.readInt32() - let value_buf: Array = new Array() - for (let value_buf_i = 0; value_buf_i < value_buf_length; value_buf_i++) { - value_buf[value_buf_i] = eventDeserializer.readTouchTestInfo() - } - event.value = value_buf - return (event as CommonMethod_onChildTouchTest_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onClick0)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readClickEvent() as ClickEvent) - return (event as CommonMethod_onClick0_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onClick1)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readClickEvent() as ClickEvent) - return (event as CommonMethod_onClick1_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onHover)) { - const event: { kind?: number, nodeId?: PeerEventKind, isHover?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.isHover = eventDeserializer.readBoolean() - event.event = (eventDeserializer.readHoverEvent() as HoverEvent) - return (event as CommonMethod_onHover_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onAccessibilityHover)) { - const event: { kind?: number, nodeId?: PeerEventKind, isHover?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.isHover = eventDeserializer.readBoolean() - event.event = (eventDeserializer.readAccessibilityHoverEvent() as AccessibilityHoverEvent) - return (event as CommonMethod_onAccessibilityHover_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onMouse)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readMouseEvent() as MouseEvent) - return (event as CommonMethod_onMouse_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onTouch)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readTouchEvent() as TouchEvent) - return (event as CommonMethod_onTouch_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onKeyEvent)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readKeyEvent() as KeyEvent) - return (event as CommonMethod_onKeyEvent_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onKeyPreIme)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readKeyEvent() as KeyEvent) - return (event as CommonMethod_onKeyPreIme_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onFocus)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_onFocus_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onBlur)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_onBlur_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onAppear)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_onAppear_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDisAppear)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_onDisAppear_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onAttach)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_onAttach_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDetach)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_onDetach_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onAreaChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, oldValue?: any, newValue?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.oldValue = eventDeserializer.readArea() - event.newValue = eventDeserializer.readArea() - return (event as CommonMethod_onAreaChange_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDragStart)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, extraParams?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readDragEvent() as DragEvent) - const extraParams_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let extraParams_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (extraParams_buf_runtimeType)) - { - extraParams_buf = (eventDeserializer.readString() as string) - } - event.extraParams = extraParams_buf - return (event as CommonMethod_onDragStart_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDragEnter)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, extraParams?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readDragEvent() as DragEvent) - const extraParams_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let extraParams_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (extraParams_buf_runtimeType)) - { - extraParams_buf = (eventDeserializer.readString() as string) - } - event.extraParams = extraParams_buf - return (event as CommonMethod_onDragEnter_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDragMove)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, extraParams?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readDragEvent() as DragEvent) - const extraParams_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let extraParams_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (extraParams_buf_runtimeType)) - { - extraParams_buf = (eventDeserializer.readString() as string) - } - event.extraParams = extraParams_buf - return (event as CommonMethod_onDragMove_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDragLeave)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, extraParams?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readDragEvent() as DragEvent) - const extraParams_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let extraParams_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (extraParams_buf_runtimeType)) - { - extraParams_buf = (eventDeserializer.readString() as string) - } - event.extraParams = extraParams_buf - return (event as CommonMethod_onDragLeave_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDrop)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, extraParams?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readDragEvent() as DragEvent) - const extraParams_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let extraParams_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (extraParams_buf_runtimeType)) - { - extraParams_buf = (eventDeserializer.readString() as string) - } - event.extraParams = extraParams_buf - return (event as CommonMethod_onDrop_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onDragEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, extraParams?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readDragEvent() as DragEvent) - const extraParams_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let extraParams_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (extraParams_buf_runtimeType)) - { - extraParams_buf = (eventDeserializer.readString() as string) - } - event.extraParams = extraParams_buf - return (event as CommonMethod_onDragEnd_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onPreDrag)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readInt32() as PreDragStatus) - return (event as CommonMethod_onPreDrag_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_accessibilityVirtualNode)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_accessibilityVirtualNode_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onGestureJudgeBegin)) { - const event: { kind?: number, nodeId?: PeerEventKind, gestureInfo?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.gestureInfo = eventDeserializer.readGestureInfo() - event.event = (eventDeserializer.readBaseGestureEvent() as BaseGestureEvent) - return (event as CommonMethod_onGestureJudgeBegin_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin0)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, current?: any, recognizers?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readBaseGestureEvent() as BaseGestureEvent) - event.current = (eventDeserializer.readGestureRecognizer() as GestureRecognizer) - const recognizers_buf_length: int32 = eventDeserializer.readInt32() - let recognizers_buf: Array = new Array() - for (let recognizers_buf_i = 0; recognizers_buf_i < recognizers_buf_length; recognizers_buf_i++) { - recognizers_buf[recognizers_buf_i] = (eventDeserializer.readGestureRecognizer() as GestureRecognizer) - } - event.recognizers = recognizers_buf - return (event as CommonMethod_onGestureRecognizerJudgeBegin0_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin1)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, current?: any, recognizers?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readBaseGestureEvent() as BaseGestureEvent) - event.current = (eventDeserializer.readGestureRecognizer() as GestureRecognizer) - const recognizers_buf_length: int32 = eventDeserializer.readInt32() - let recognizers_buf: Array = new Array() - for (let recognizers_buf_i = 0; recognizers_buf_i < recognizers_buf_length; recognizers_buf_i++) { - recognizers_buf[recognizers_buf_i] = (eventDeserializer.readGestureRecognizer() as GestureRecognizer) - } - event.recognizers = recognizers_buf - return (event as CommonMethod_onGestureRecognizerJudgeBegin1_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith)) { - const event: { kind?: number, nodeId?: PeerEventKind, current?: any, others?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.current = (eventDeserializer.readGestureRecognizer() as GestureRecognizer) - const others_buf_length: int32 = eventDeserializer.readInt32() - let others_buf: Array = new Array() - for (let others_buf_i = 0; others_buf_i < others_buf_length; others_buf_i++) { - others_buf[others_buf_i] = (eventDeserializer.readGestureRecognizer() as GestureRecognizer) - } - event.others = others_buf - return (event as CommonMethod_shouldBuiltInRecognizerParallelWith_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onTouchIntercept)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readTouchEvent() as TouchEvent) - return (event as CommonMethod_onTouchIntercept_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onSizeChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, oldValue?: any, newValue?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.oldValue = eventDeserializer.readSizeOptions() - event.newValue = eventDeserializer.readSizeOptions() - return (event as CommonMethod_onSizeChange_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_background)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_background_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_bindContextMenu0)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_bindContextMenu0_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_bindContextMenu1)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_bindContextMenu1_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_bindContentCover0)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_bindContentCover0_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_bindContentCover1)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_bindContentCover1_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_bindSheet)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as CommonMethod_bindSheet_event) - } - else if ((kind) === (PeerEventKind.CommonMethod_onVisibleAreaChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, isExpanding?: any, currentRatio?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.isExpanding = eventDeserializer.readBoolean() - event.currentRatio = (eventDeserializer.readNumber() as number) - return (event as CommonMethod_onVisibleAreaChange_event) - } - else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as ScrollableCommonMethod_onScroll_event) - } - else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onDidScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, xOffset?: any, yOffset?: any, scrollState?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.xOffset = (eventDeserializer.readNumber() as number) - event.yOffset = (eventDeserializer.readNumber() as number) - event.scrollState = (eventDeserializer.readInt32() as ScrollState) - return (event as ScrollableCommonMethod_onDidScroll_event) - } - else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onReachStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ScrollableCommonMethod_onReachStart_event) - } - else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onReachEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ScrollableCommonMethod_onReachEnd_event) - } - else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onScrollStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ScrollableCommonMethod_onScrollStart_event) - } - else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onScrollStop)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ScrollableCommonMethod_onScrollStop_event) - } - else if ((kind) === (PeerEventKind.Counter_onInc)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Counter_onInc_event) - } - else if ((kind) === (PeerEventKind.Counter_onDec)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Counter_onDec_event) - } - else if ((kind) === (PeerEventKind.DatePicker_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = eventDeserializer.readDatePickerResult() - return (event as DatePicker_onChange_event) - } - else if ((kind) === (PeerEventKind.DatePicker_onDateChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = new Date(eventDeserializer.readInt64()) - return (event as DatePicker_onDateChange_event) - } - else if ((kind) === (PeerEventKind.DatePicker__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = new Date(eventDeserializer.readInt64()) - return (event as DatePicker__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.EmbeddedComponent_onTerminated)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readTerminationInfo() - return (event as EmbeddedComponent_onTerminated_event) - } - else if ((kind) === (PeerEventKind.EmbeddedComponent_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind, err?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.err = eventDeserializer.readBusinessError() - return (event as EmbeddedComponent_onError_event) - } - else if ((kind) === (PeerEventKind.FolderStack_onFolderStateChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readOnFoldStatusChangeInfo() - return (event as FolderStack_onFolderStateChange_event) - } - else if ((kind) === (PeerEventKind.FolderStack_onHoverStatusChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, param?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.param = eventDeserializer.readHoverEventParam() - return (event as FolderStack_onHoverStatusChange_event) - } - else if ((kind) === (PeerEventKind.FormComponent_onAcquired)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readFormCallbackInfo() - return (event as FormComponent_onAcquired_event) - } - else if ((kind) === (PeerEventKind.FormComponent_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind, info?: any } = {} - event.kind = kind - event.nodeId = nodeId - const info_buf_errcode: number = (eventDeserializer.readNumber() as number) - const info_buf_msg: string = (eventDeserializer.readString() as string) - event.info = ({errcode: info_buf_errcode, msg: info_buf_msg} as { errcode: number, msg: string }) - return (event as FormComponent_onError_event) - } - else if ((kind) === (PeerEventKind.FormComponent_onRouter)) { - const event: { kind?: number, nodeId?: PeerEventKind, info?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.info = (eventDeserializer.readCustomObject("Any") as Object) - return (event as FormComponent_onRouter_event) - } - else if ((kind) === (PeerEventKind.FormComponent_onUninstall)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readFormCallbackInfo() - return (event as FormComponent_onUninstall_event) - } - else if ((kind) === (PeerEventKind.FormComponent_onLoad)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as FormComponent_onLoad_event) - } - else if ((kind) === (PeerEventKind.Gauge_description)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Gauge_description_event) - } - else if ((kind) === (PeerEventKind.Grid_onScrollBarUpdate)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, offset?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.offset = (eventDeserializer.readNumber() as number) - return (event as Grid_onScrollBarUpdate_event) - } - else if ((kind) === (PeerEventKind.Grid_onScrollIndex)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Grid_onScrollIndex_event) - } - else if ((kind) === (PeerEventKind.Grid_onItemDragStart)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - return (event as Grid_onItemDragStart_event) - } - else if ((kind) === (PeerEventKind.Grid_onItemDragEnter)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - return (event as Grid_onItemDragEnter_event) - } - else if ((kind) === (PeerEventKind.Grid_onItemDragMove)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any, insertIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - event.insertIndex = (eventDeserializer.readNumber() as number) - return (event as Grid_onItemDragMove_event) - } - else if ((kind) === (PeerEventKind.Grid_onItemDragLeave)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - return (event as Grid_onItemDragLeave_event) - } - else if ((kind) === (PeerEventKind.Grid_onItemDrop)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any, insertIndex?: any, isSuccess?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - event.insertIndex = (eventDeserializer.readNumber() as number) - event.isSuccess = eventDeserializer.readBoolean() - return (event as Grid_onItemDrop_event) - } - else if ((kind) === (PeerEventKind.Grid_onScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Grid_onScroll_event) - } - else if ((kind) === (PeerEventKind.Grid_onReachStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Grid_onReachStart_event) - } - else if ((kind) === (PeerEventKind.Grid_onReachEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Grid_onReachEnd_event) - } - else if ((kind) === (PeerEventKind.Grid_onScrollStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Grid_onScrollStart_event) - } - else if ((kind) === (PeerEventKind.Grid_onScrollStop)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Grid_onScrollStop_event) - } - else if ((kind) === (PeerEventKind.Grid_onScrollFrameBegin)) { - const event: { kind?: number, nodeId?: PeerEventKind, offset?: any, state?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.offset = (eventDeserializer.readNumber() as number) - event.state = (eventDeserializer.readInt32() as ScrollState) - return (event as Grid_onScrollFrameBegin_event) - } - else if ((kind) === (PeerEventKind.GridItem_onSelect)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as GridItem_onSelect_event) - } - else if ((kind) === (PeerEventKind.GridItem__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as GridItem__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.GridRow_onBreakpointChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as GridRow_onBreakpointChange_event) - } - else if ((kind) === (PeerEventKind.Image_onComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - const event_buf__width: number = (eventDeserializer.readNumber() as number) - const event_buf__height: number = (eventDeserializer.readNumber() as number) - const event_buf__componentWidth: number = (eventDeserializer.readNumber() as number) - const event_buf__componentHeight: number = (eventDeserializer.readNumber() as number) - const event_buf__loadingStatus: number = (eventDeserializer.readNumber() as number) - const event_buf__contentWidth: number = (eventDeserializer.readNumber() as number) - const event_buf__contentHeight: number = (eventDeserializer.readNumber() as number) - const event_buf__contentOffsetX: number = (eventDeserializer.readNumber() as number) - const event_buf__contentOffsetY: number = (eventDeserializer.readNumber() as number) - event_buf = ({width: event_buf__width, height: event_buf__height, componentWidth: event_buf__componentWidth, componentHeight: event_buf__componentHeight, loadingStatus: event_buf__loadingStatus, contentWidth: event_buf__contentWidth, contentHeight: event_buf__contentHeight, contentOffsetX: event_buf__contentOffsetX, contentOffsetY: event_buf__contentOffsetY} as { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) - } - event.event = event_buf - return (event as Image_onComplete_event) - } - else if ((kind) === (PeerEventKind.Image_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind, error?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.error = eventDeserializer.readImageError() - return (event as Image_onError_event) - } - else if ((kind) === (PeerEventKind.Image_onFinish)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Image_onFinish_event) - } - else if ((kind) === (PeerEventKind.ImageAnimator_onStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ImageAnimator_onStart_event) - } - else if ((kind) === (PeerEventKind.ImageAnimator_onPause)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ImageAnimator_onPause_event) - } - else if ((kind) === (PeerEventKind.ImageAnimator_onRepeat)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ImageAnimator_onRepeat_event) - } - else if ((kind) === (PeerEventKind.ImageAnimator_onCancel)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ImageAnimator_onCancel_event) - } - else if ((kind) === (PeerEventKind.ImageAnimator_onFinish)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as ImageAnimator_onFinish_event) - } - else if ((kind) === (PeerEventKind.ImageSpan_onComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind, result?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.result = eventDeserializer.readImageLoadResult() - return (event as ImageSpan_onComplete_event) - } - else if ((kind) === (PeerEventKind.ImageSpan_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind, error?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.error = eventDeserializer.readImageError() - return (event as ImageSpan_onError_event) - } - else if ((kind) === (PeerEventKind.List_onScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as List_onScroll_event) - } - else if ((kind) === (PeerEventKind.List_onScrollIndex)) { - const event: { kind?: number, nodeId?: PeerEventKind, start?: any, end?: any, center?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.start = (eventDeserializer.readNumber() as number) - event.end = (eventDeserializer.readNumber() as number) - event.center = (eventDeserializer.readNumber() as number) - return (event as List_onScrollIndex_event) - } - else if ((kind) === (PeerEventKind.List_onScrollVisibleContentChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, start?: any, end?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.start = eventDeserializer.readVisibleListContentInfo() - event.end = eventDeserializer.readVisibleListContentInfo() - return (event as List_onScrollVisibleContentChange_event) - } - else if ((kind) === (PeerEventKind.List_onReachStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as List_onReachStart_event) - } - else if ((kind) === (PeerEventKind.List_onReachEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as List_onReachEnd_event) - } - else if ((kind) === (PeerEventKind.List_onScrollStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as List_onScrollStart_event) - } - else if ((kind) === (PeerEventKind.List_onScrollStop)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as List_onScrollStop_event) - } - else if ((kind) === (PeerEventKind.List_onItemDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as List_onItemDelete_event) - } - else if ((kind) === (PeerEventKind.List_onItemMove)) { - const event: { kind?: number, nodeId?: PeerEventKind, from?: any, to?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.from = (eventDeserializer.readNumber() as number) - event.to = (eventDeserializer.readNumber() as number) - return (event as List_onItemMove_event) - } - else if ((kind) === (PeerEventKind.List_onItemDragStart)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - return (event as List_onItemDragStart_event) - } - else if ((kind) === (PeerEventKind.List_onItemDragEnter)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - return (event as List_onItemDragEnter_event) - } - else if ((kind) === (PeerEventKind.List_onItemDragMove)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any, insertIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - event.insertIndex = (eventDeserializer.readNumber() as number) - return (event as List_onItemDragMove_event) - } - else if ((kind) === (PeerEventKind.List_onItemDragLeave)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - return (event as List_onItemDragLeave_event) - } - else if ((kind) === (PeerEventKind.List_onItemDrop)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, itemIndex?: any, insertIndex?: any, isSuccess?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readItemDragInfo() - event.itemIndex = (eventDeserializer.readNumber() as number) - event.insertIndex = (eventDeserializer.readNumber() as number) - event.isSuccess = eventDeserializer.readBoolean() - return (event as List_onItemDrop_event) - } - else if ((kind) === (PeerEventKind.List_onScrollFrameBegin)) { - const event: { kind?: number, nodeId?: PeerEventKind, offset?: any, state?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.offset = (eventDeserializer.readNumber() as number) - event.state = (eventDeserializer.readInt32() as ScrollState) - return (event as List_onScrollFrameBegin_event) - } - else if ((kind) === (PeerEventKind.ListItem_onSelect)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as ListItem_onSelect_event) - } - else if ((kind) === (PeerEventKind.ListItem__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as ListItem__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.LocationButton_onClick)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, result?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readClickEvent() as ClickEvent) - event.result = (eventDeserializer.readInt32() as LocationButtonOnClickResult) - return (event as LocationButton_onClick_event) - } - else if ((kind) === (PeerEventKind.Marquee_onStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Marquee_onStart_event) - } - else if ((kind) === (PeerEventKind.Marquee_onBounce)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Marquee_onBounce_event) - } - else if ((kind) === (PeerEventKind.Marquee_onFinish)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Marquee_onFinish_event) - } - else if ((kind) === (PeerEventKind.MenuItem_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as MenuItem_onChange_event) - } - else if ((kind) === (PeerEventKind.MenuItem__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as MenuItem__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onShown)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onShown_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onHidden)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onHidden_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onBackPressed)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onBackPressed_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onReady)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readNavDestinationContext() as NavDestinationContext) - return (event as NavDestination_onReady_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillAppear)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillAppear_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillDisappear)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillDisappear_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillShow)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillShow_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillHide)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillHide_event) - } - else if ((kind) === (PeerEventKind.NavRouter_onStateChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as NavRouter_onStateChange_event) - } - else if ((kind) === (PeerEventKind.Panel_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, width?: any, height?: any, mode?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.width = (eventDeserializer.readNumber() as number) - event.height = (eventDeserializer.readNumber() as number) - event.mode = (eventDeserializer.readInt32() as PanelMode) - return (event as Panel_onChange_event) - } - else if ((kind) === (PeerEventKind.Panel_onHeightChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Panel_onHeightChange_event) - } - else if ((kind) === (PeerEventKind.Panel__onChangeEvent_mode)) { - const event: { kind?: number, nodeId?: PeerEventKind, mode?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.mode = (eventDeserializer.readInt32() as PanelMode) - return (event as Panel__onChangeEvent_mode_event) - } - else if ((kind) === (PeerEventKind.PasteButton_onClick)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, result?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readClickEvent() as ClickEvent) - event.result = (eventDeserializer.readInt32() as PasteButtonOnClickResult) - return (event as PasteButton_onClick_event) - } - else if ((kind) === (PeerEventKind.PatternLock_onPatternComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind, input?: any } = {} - event.kind = kind - event.nodeId = nodeId - const input_buf_length: int32 = eventDeserializer.readInt32() - let input_buf: Array = new Array() - for (let input_buf_i = 0; input_buf_i < input_buf_length; input_buf_i++) { - input_buf[input_buf_i] = (eventDeserializer.readNumber() as number) - } - event.input = input_buf - return (event as PatternLock_onPatternComplete_event) - } - else if ((kind) === (PeerEventKind.PatternLock_onDotConnect)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as PatternLock_onDotConnect_event) - } - else if ((kind) === (PeerEventKind.PluginComponent_onComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as PluginComponent_onComplete_event) - } - else if ((kind) === (PeerEventKind.PluginComponent_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind, info?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.info = eventDeserializer.readPluginErrorData() - return (event as PluginComponent_onError_event) - } - else if ((kind) === (PeerEventKind.Radio_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Radio_onChange_event) - } - else if ((kind) === (PeerEventKind.Radio__onChangeEvent_checked)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Radio__onChangeEvent_checked_event) - } - else if ((kind) === (PeerEventKind.Rating_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Rating_onChange_event) - } - else if ((kind) === (PeerEventKind.Rating__onChangeEvent_rating)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Rating__onChangeEvent_rating_event) - } - else if ((kind) === (PeerEventKind.Refresh_onStateChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, state?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.state = (eventDeserializer.readInt32() as RefreshStatus) - return (event as Refresh_onStateChange_event) - } - else if ((kind) === (PeerEventKind.Refresh_onRefreshing)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Refresh_onRefreshing_event) - } - else if ((kind) === (PeerEventKind.Refresh_onOffsetChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Refresh_onOffsetChange_event) - } - else if ((kind) === (PeerEventKind.Refresh__onChangeEvent_refreshing)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Refresh__onChangeEvent_refreshing_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onReady)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as RichEditor_onReady_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onSelect)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readRichEditorSelection() - return (event as RichEditor_onSelect_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onSelectionChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readRichEditorRange() - return (event as RichEditor_onSelectionChange_event) - } - else if ((kind) === (PeerEventKind.RichEditor_aboutToIMEInput)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readRichEditorInsertValue() - return (event as RichEditor_aboutToIMEInput_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onIMEInputComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readRichEditorTextSpanResult() - return (event as RichEditor_onIMEInputComplete_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onDidIMEInput)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readTextRange() - return (event as RichEditor_onDidIMEInput_event) - } - else if ((kind) === (PeerEventKind.RichEditor_aboutToDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readRichEditorDeleteValue() - return (event as RichEditor_aboutToDelete_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onDeleteComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as RichEditor_onDeleteComplete_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onPaste)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: PasteEvent | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - event_buf = eventDeserializer.readPasteEvent() - } - event.event = event_buf - return (event as RichEditor_onPaste_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onEditingChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as RichEditor_onEditingChange_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onSubmit)) { - const event: { kind?: number, nodeId?: PeerEventKind, enterKey?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.enterKey = (eventDeserializer.readInt32() as EnterKeyType) - event.event = (eventDeserializer.readSubmitEvent() as SubmitEvent) - return (event as RichEditor_onSubmit_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onWillChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readRichEditorChangeValue() - return (event as RichEditor_onWillChange_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onDidChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, rangeBefore?: any, rangeAfter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.rangeBefore = eventDeserializer.readTextRange() - event.rangeAfter = eventDeserializer.readTextRange() - return (event as RichEditor_onDidChange_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onCut)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readCutEvent() - return (event as RichEditor_onCut_event) - } - else if ((kind) === (PeerEventKind.RichEditor_onCopy)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readCopyEvent() - return (event as RichEditor_onCopy_event) - } - else if ((kind) === (PeerEventKind.RichEditor_bindSelectionMenu)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as RichEditor_bindSelectionMenu_event) - } - else if ((kind) === (PeerEventKind.RichEditor_customKeyboard)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as RichEditor_customKeyboard_event) - } - else if ((kind) === (PeerEventKind.RichText_onStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as RichText_onStart_event) - } - else if ((kind) === (PeerEventKind.RichText_onComplete)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as RichText_onComplete_event) - } - else if ((kind) === (PeerEventKind.SaveButton_onClick)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any, result?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = (eventDeserializer.readClickEvent() as ClickEvent) - event.result = (eventDeserializer.readInt32() as SaveButtonOnClickResult) - return (event as SaveButton_onClick_event) - } - else if ((kind) === (PeerEventKind.Scroll_onScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Scroll_onScroll_event) - } - else if ((kind) === (PeerEventKind.Scroll_onDidScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, xOffset?: any, yOffset?: any, scrollState?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.xOffset = (eventDeserializer.readNumber() as number) - event.yOffset = (eventDeserializer.readNumber() as number) - event.scrollState = (eventDeserializer.readInt32() as ScrollState) - return (event as Scroll_onDidScroll_event) - } - else if ((kind) === (PeerEventKind.Scroll_onScrollEdge)) { - const event: { kind?: number, nodeId?: PeerEventKind, side?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.side = (eventDeserializer.readInt32() as Edge) - return (event as Scroll_onScrollEdge_event) - } - else if ((kind) === (PeerEventKind.Scroll_onScrollStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Scroll_onScrollStart_event) - } - else if ((kind) === (PeerEventKind.Scroll_onScrollEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Scroll_onScrollEnd_event) - } - else if ((kind) === (PeerEventKind.Scroll_onScrollStop)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Scroll_onScrollStop_event) - } - else if ((kind) === (PeerEventKind.Scroll_onScrollFrameBegin)) { - const event: { kind?: number, nodeId?: PeerEventKind, offset?: any, state?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.offset = (eventDeserializer.readNumber() as number) - event.state = (eventDeserializer.readInt32() as ScrollState) - return (event as Scroll_onScrollFrameBegin_event) - } - else if ((kind) === (PeerEventKind.Search_onEditChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Search_onEditChange_event) - } - else if ((kind) === (PeerEventKind.Search_onSubmit0)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as Search_onSubmit0_event) - } - else if ((kind) === (PeerEventKind.Search_onSubmit1)) { - const event: { kind?: number, nodeId?: PeerEventKind, searchContent?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.searchContent = (eventDeserializer.readString() as string) - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: SubmitEvent | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - event_buf = (eventDeserializer.readSubmitEvent() as SubmitEvent) - } - event.event = event_buf - return (event as Search_onSubmit1_event) - } - else if ((kind) === (PeerEventKind.Search_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, previewText?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = (eventDeserializer.readString() as string) - const previewText_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let previewText_buf: PreviewText | undefined|undefined - if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) - { - previewText_buf = eventDeserializer.readPreviewText() - } - event.previewText = previewText_buf - return (event as Search_onChange_event) - } - else if ((kind) === (PeerEventKind.Search_onTextSelectionChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, selectionStart?: any, selectionEnd?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.selectionStart = (eventDeserializer.readNumber() as number) - event.selectionEnd = (eventDeserializer.readNumber() as number) - return (event as Search_onTextSelectionChange_event) - } - else if ((kind) === (PeerEventKind.Search_onContentScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, totalOffsetX?: any, totalOffsetY?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.totalOffsetX = (eventDeserializer.readNumber() as number) - event.totalOffsetY = (eventDeserializer.readNumber() as number) - return (event as Search_onContentScroll_event) - } - else if ((kind) === (PeerEventKind.Search_onCopy)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as Search_onCopy_event) - } - else if ((kind) === (PeerEventKind.Search_onCut)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as Search_onCut_event) - } - else if ((kind) === (PeerEventKind.Search_onPaste)) { - const event: { kind?: number, nodeId?: PeerEventKind, content?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.content = (eventDeserializer.readString() as string) - event.event = eventDeserializer.readPasteEvent() - return (event as Search_onPaste_event) - } - else if ((kind) === (PeerEventKind.Search_onWillInsert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readInsertValue() - return (event as Search_onWillInsert_event) - } - else if ((kind) === (PeerEventKind.Search_onDidInsert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readInsertValue() - return (event as Search_onDidInsert_event) - } - else if ((kind) === (PeerEventKind.Search_onWillDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readDeleteValue() - return (event as Search_onWillDelete_event) - } - else if ((kind) === (PeerEventKind.Search_onDidDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readDeleteValue() - return (event as Search_onDidDelete_event) - } - else if ((kind) === (PeerEventKind.Search_customKeyboard)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Search_customKeyboard_event) - } - else if ((kind) === (PeerEventKind.Search__onChangeEvent_value)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as Search__onChangeEvent_value_event) - } - else if ((kind) === (PeerEventKind.Select_onSelect)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.value = (eventDeserializer.readString() as string) - return (event as Select_onSelect_event) - } - else if ((kind) === (PeerEventKind.Select__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, selected?: any } = {} - event.kind = kind - event.nodeId = nodeId - const selected_buf_selector: number = eventDeserializer.readInt8() - let selected_buf: number | Resource | undefined|undefined - if (selected_buf_selector == 0) { - selected_buf = (eventDeserializer.readNumber() as number) - } - else if (selected_buf_selector == 1) { - selected_buf = eventDeserializer.readResource() - } - else { - throw new Error("One of the branches for selected_buf has to be chosen through deserialisation.") - } - event.selected = (selected_buf as number | Resource) - return (event as Select__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.Select__onChangeEvent_value)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - const value_buf_selector: number = eventDeserializer.readInt8() - let value_buf: string | Resource | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (eventDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = eventDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - event.value = (value_buf as string | Resource) - return (event as Select__onChangeEvent_value_event) - } - else if ((kind) === (PeerEventKind.Slider_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, mode?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = (eventDeserializer.readNumber() as number) - event.mode = (eventDeserializer.readInt32() as SliderChangeMode) - return (event as Slider_onChange_event) - } - else if ((kind) === (PeerEventKind.Slider__onChangeEvent_value)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Slider__onChangeEvent_value_event) - } - else if ((kind) === (PeerEventKind.Stepper_onFinish)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Stepper_onFinish_event) - } - else if ((kind) === (PeerEventKind.Stepper_onSkip)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Stepper_onSkip_event) - } - else if ((kind) === (PeerEventKind.Stepper_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Stepper_onChange_event) - } - else if ((kind) === (PeerEventKind.Stepper_onNext)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Stepper_onNext_event) - } - else if ((kind) === (PeerEventKind.Stepper_onPrevious)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Stepper_onPrevious_event) - } - else if ((kind) === (PeerEventKind.Stepper__onChangeEvent_index)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Stepper__onChangeEvent_index_event) - } - else if ((kind) === (PeerEventKind.Swiper_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Swiper_onChange_event) - } - else if ((kind) === (PeerEventKind.Swiper_onAnimationStart)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, targetIndex?: any, extraInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.targetIndex = (eventDeserializer.readNumber() as number) - event.extraInfo = eventDeserializer.readSwiperAnimationEvent() - return (event as Swiper_onAnimationStart_event) - } - else if ((kind) === (PeerEventKind.Swiper_onAnimationEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, extraInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.extraInfo = eventDeserializer.readSwiperAnimationEvent() - return (event as Swiper_onAnimationEnd_event) - } - else if ((kind) === (PeerEventKind.Swiper_onGestureSwipe)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, extraInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.extraInfo = eventDeserializer.readSwiperAnimationEvent() - return (event as Swiper_onGestureSwipe_event) - } - else if ((kind) === (PeerEventKind.Swiper_onContentDidScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, selectedIndex?: any, index?: any, position?: any, mainAxisLength?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.selectedIndex = (eventDeserializer.readNumber() as number) - event.index = (eventDeserializer.readNumber() as number) - event.position = (eventDeserializer.readNumber() as number) - event.mainAxisLength = (eventDeserializer.readNumber() as number) - return (event as Swiper_onContentDidScroll_event) - } - else if ((kind) === (PeerEventKind.Swiper__onChangeEvent_index)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Swiper__onChangeEvent_index_event) - } - else if ((kind) === (PeerEventKind.IndicatorComponent_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as IndicatorComponent_onChange_event) - } - else if ((kind) === (PeerEventKind.Tabs_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Tabs_onChange_event) - } - else if ((kind) === (PeerEventKind.Tabs_onTabBarClick)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Tabs_onTabBarClick_event) - } - else if ((kind) === (PeerEventKind.Tabs_onAnimationStart)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, targetIndex?: any, extraInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.targetIndex = (eventDeserializer.readNumber() as number) - event.extraInfo = eventDeserializer.readTabsAnimationEvent() - return (event as Tabs_onAnimationStart_event) - } - else if ((kind) === (PeerEventKind.Tabs_onAnimationEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, extraInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.extraInfo = eventDeserializer.readTabsAnimationEvent() - return (event as Tabs_onAnimationEnd_event) - } - else if ((kind) === (PeerEventKind.Tabs_onGestureSwipe)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any, extraInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - event.extraInfo = eventDeserializer.readTabsAnimationEvent() - return (event as Tabs_onGestureSwipe_event) - } - else if ((kind) === (PeerEventKind.Tabs_customContentTransition)) { - const event: { kind?: number, nodeId?: PeerEventKind, from?: any, to?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.from = (eventDeserializer.readNumber() as number) - event.to = (eventDeserializer.readNumber() as number) - return (event as Tabs_customContentTransition_event) - } - else if ((kind) === (PeerEventKind.Tabs_onContentWillChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, currentIndex?: any, comingIndex?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.currentIndex = (eventDeserializer.readNumber() as number) - event.comingIndex = (eventDeserializer.readNumber() as number) - return (event as Tabs_onContentWillChange_event) - } - else if ((kind) === (PeerEventKind.Tabs__onChangeEvent_index)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as Tabs__onChangeEvent_index_event) - } - else if ((kind) === (PeerEventKind.TabContent_onWillShow)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as TabContent_onWillShow_event) - } - else if ((kind) === (PeerEventKind.TabContent_onWillHide)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as TabContent_onWillHide_event) - } - else if ((kind) === (PeerEventKind.Text_onCopy)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as Text_onCopy_event) - } - else if ((kind) === (PeerEventKind.Text_onTextSelectionChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as Text_onTextSelectionChange_event) - } - else if ((kind) === (PeerEventKind.Text_bindSelectionMenu)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Text_bindSelectionMenu_event) - } - else if ((kind) === (PeerEventKind.TextArea_onSubmit0)) { - const event: { kind?: number, nodeId?: PeerEventKind, enterKey?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.enterKey = (eventDeserializer.readInt32() as EnterKeyType) - return (event as TextArea_onSubmit0_event) - } - else if ((kind) === (PeerEventKind.TextArea_onSubmit1)) { - const event: { kind?: number, nodeId?: PeerEventKind, enterKeyType?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.enterKeyType = (eventDeserializer.readInt32() as EnterKeyType) - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: SubmitEvent | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - event_buf = (eventDeserializer.readSubmitEvent() as SubmitEvent) - } - event.event = event_buf - return (event as TextArea_onSubmit1_event) - } - else if ((kind) === (PeerEventKind.TextArea_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, previewText?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = (eventDeserializer.readString() as string) - const previewText_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let previewText_buf: PreviewText | undefined|undefined - if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) - { - previewText_buf = eventDeserializer.readPreviewText() - } - event.previewText = previewText_buf - return (event as TextArea_onChange_event) - } - else if ((kind) === (PeerEventKind.TextArea_onTextSelectionChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as TextArea_onTextSelectionChange_event) - } - else if ((kind) === (PeerEventKind.TextArea_onContentScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as TextArea_onContentScroll_event) - } - else if ((kind) === (PeerEventKind.TextArea_onEditChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as TextArea_onEditChange_event) - } - else if ((kind) === (PeerEventKind.TextArea_onCopy)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as TextArea_onCopy_event) - } - else if ((kind) === (PeerEventKind.TextArea_onCut)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as TextArea_onCut_event) - } - else if ((kind) === (PeerEventKind.TextArea_onPaste)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = (eventDeserializer.readString() as string) - event.event = eventDeserializer.readPasteEvent() - return (event as TextArea_onPaste_event) - } - else if ((kind) === (PeerEventKind.TextArea_onWillInsert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readInsertValue() - return (event as TextArea_onWillInsert_event) - } - else if ((kind) === (PeerEventKind.TextArea_onDidInsert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readInsertValue() - return (event as TextArea_onDidInsert_event) - } - else if ((kind) === (PeerEventKind.TextArea_onWillDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readDeleteValue() - return (event as TextArea_onWillDelete_event) - } - else if ((kind) === (PeerEventKind.TextArea_onDidDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readDeleteValue() - return (event as TextArea_onDidDelete_event) - } - else if ((kind) === (PeerEventKind.TextArea_customKeyboard)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as TextArea_customKeyboard_event) - } - else if ((kind) === (PeerEventKind.TextArea__onChangeEvent_text)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - const value_buf_selector: number = eventDeserializer.readInt8() - let value_buf: string | Resource | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (eventDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = eventDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - event.value = (value_buf as string | Resource) - return (event as TextArea__onChangeEvent_text_event) - } - else if ((kind) === (PeerEventKind.TextClock_onDateChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as TextClock_onDateChange_event) - } - else if ((kind) === (PeerEventKind.TextInput_onEditChanged)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as TextInput_onEditChanged_event) - } - else if ((kind) === (PeerEventKind.TextInput_onEditChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as TextInput_onEditChange_event) - } - else if ((kind) === (PeerEventKind.TextInput_onSubmit)) { - const event: { kind?: number, nodeId?: PeerEventKind, enterKey?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.enterKey = (eventDeserializer.readInt32() as EnterKeyType) - event.event = (eventDeserializer.readSubmitEvent() as SubmitEvent) - return (event as TextInput_onSubmit_event) - } - else if ((kind) === (PeerEventKind.TextInput_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, previewText?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = (eventDeserializer.readString() as string) - const previewText_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let previewText_buf: PreviewText | undefined|undefined - if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) - { - previewText_buf = eventDeserializer.readPreviewText() - } - event.previewText = previewText_buf - return (event as TextInput_onChange_event) - } - else if ((kind) === (PeerEventKind.TextInput_onTextSelectionChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, selectionStart?: any, selectionEnd?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.selectionStart = (eventDeserializer.readNumber() as number) - event.selectionEnd = (eventDeserializer.readNumber() as number) - return (event as TextInput_onTextSelectionChange_event) - } - else if ((kind) === (PeerEventKind.TextInput_onContentScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, totalOffsetX?: any, totalOffsetY?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.totalOffsetX = (eventDeserializer.readNumber() as number) - event.totalOffsetY = (eventDeserializer.readNumber() as number) - return (event as TextInput_onContentScroll_event) - } - else if ((kind) === (PeerEventKind.TextInput_onCopy)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as TextInput_onCopy_event) - } - else if ((kind) === (PeerEventKind.TextInput_onCut)) { - const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.breakpoints = (eventDeserializer.readString() as string) - return (event as TextInput_onCut_event) - } - else if ((kind) === (PeerEventKind.TextInput_onPaste)) { - const event: { kind?: number, nodeId?: PeerEventKind, content?: any, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.content = (eventDeserializer.readString() as string) - event.event = eventDeserializer.readPasteEvent() - return (event as TextInput_onPaste_event) - } - else if ((kind) === (PeerEventKind.TextInput_showUnit)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as TextInput_showUnit_event) - } - else if ((kind) === (PeerEventKind.TextInput_onSecurityStateChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as TextInput_onSecurityStateChange_event) - } - else if ((kind) === (PeerEventKind.TextInput_onWillInsert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readInsertValue() - return (event as TextInput_onWillInsert_event) - } - else if ((kind) === (PeerEventKind.TextInput_onDidInsert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readInsertValue() - return (event as TextInput_onDidInsert_event) - } - else if ((kind) === (PeerEventKind.TextInput_onWillDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readDeleteValue() - return (event as TextInput_onWillDelete_event) - } - else if ((kind) === (PeerEventKind.TextInput_onDidDelete)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readDeleteValue() - return (event as TextInput_onDidDelete_event) - } - else if ((kind) === (PeerEventKind.TextInput_customKeyboard)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as TextInput_customKeyboard_event) - } - else if ((kind) === (PeerEventKind.TextInput__onChangeEvent_text)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - const value_buf_selector: number = eventDeserializer.readInt8() - let value_buf: string | Resource | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (eventDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = eventDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - event.value = (value_buf as string | Resource) - return (event as TextInput__onChangeEvent_text_event) - } - else if ((kind) === (PeerEventKind.TextPicker_onAccept)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = (eventDeserializer.readString() as string) - event.index = (eventDeserializer.readNumber() as number) - return (event as TextPicker_onAccept_event) - } - else if ((kind) === (PeerEventKind.TextPicker_onCancel)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as TextPicker_onCancel_event) - } - else if ((kind) === (PeerEventKind.TextPicker_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - const value_buf_selector: number = eventDeserializer.readInt8() - let value_buf: string | Array | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (eventDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - const value_buf_u_length: int32 = eventDeserializer.readInt32() - let value_buf_u: Array = new Array() - for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { - value_buf_u[value_buf_u_i] = (eventDeserializer.readString() as string) - } - value_buf = value_buf_u - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - event.value = (value_buf as string | Array) - const index_buf_selector: number = eventDeserializer.readInt8() - let index_buf: number | Array | undefined|undefined - if (index_buf_selector == 0) { - index_buf = (eventDeserializer.readNumber() as number) - } - else if (index_buf_selector == 1) { - const index_buf_u_length: int32 = eventDeserializer.readInt32() - let index_buf_u: Array = new Array() - for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { - index_buf_u[index_buf_u_i] = (eventDeserializer.readNumber() as number) - } - index_buf = index_buf_u - } - else { - throw new Error("One of the branches for index_buf has to be chosen through deserialisation.") - } - event.index = (index_buf as number | Array) - return (event as TextPicker_onChange_event) - } - else if ((kind) === (PeerEventKind.TextPicker__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, selected?: any } = {} - event.kind = kind - event.nodeId = nodeId - const selected_buf_selector: number = eventDeserializer.readInt8() - let selected_buf: number | Array | undefined|undefined - if (selected_buf_selector == 0) { - selected_buf = (eventDeserializer.readNumber() as number) - } - else if (selected_buf_selector == 1) { - const selected_buf_u_length: int32 = eventDeserializer.readInt32() - let selected_buf_u: Array = new Array() - for (let selected_buf_u_i = 0; selected_buf_u_i < selected_buf_u_length; selected_buf_u_i++) { - selected_buf_u[selected_buf_u_i] = (eventDeserializer.readNumber() as number) - } - selected_buf = selected_buf_u - } - else { - throw new Error("One of the branches for selected_buf has to be chosen through deserialisation.") - } - event.selected = (selected_buf as number | Array) - return (event as TextPicker__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.TextPicker__onChangeEvent_value)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - const value_buf_selector: number = eventDeserializer.readInt8() - let value_buf: string | Array | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (eventDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - const value_buf_u_length: int32 = eventDeserializer.readInt32() - let value_buf_u: Array = new Array() - for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { - value_buf_u[value_buf_u_i] = (eventDeserializer.readString() as string) - } - value_buf = value_buf_u - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - event.value = (value_buf as string | Array) - return (event as TextPicker__onChangeEvent_value_event) - } - else if ((kind) === (PeerEventKind.TextTimer_onTimer)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as TextTimer_onTimer_event) - } - else if ((kind) === (PeerEventKind.TimePicker_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.value = eventDeserializer.readTimePickerResult() - return (event as TimePicker_onChange_event) - } - else if ((kind) === (PeerEventKind.TimePicker__onChangeEvent_selected)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = new Date(eventDeserializer.readInt64()) - return (event as TimePicker__onChangeEvent_selected_event) - } - else if ((kind) === (PeerEventKind.Toggle_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Toggle_onChange_event) - } - else if ((kind) === (PeerEventKind.Toggle__onChangeEvent_isOn)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as Toggle__onChangeEvent_isOn_event) - } - else if ((kind) === (PeerEventKind.Video_onStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Video_onStart_event) - } - else if ((kind) === (PeerEventKind.Video_onPause)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Video_onPause_event) - } - else if ((kind) === (PeerEventKind.Video_onFinish)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Video_onFinish_event) - } - else if ((kind) === (PeerEventKind.Video_onFullscreenChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readFullscreenInfo() - return (event as Video_onFullscreenChange_event) - } - else if ((kind) === (PeerEventKind.Video_onPrepared)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readPreparedInfo() - return (event as Video_onPrepared_event) - } - else if ((kind) === (PeerEventKind.Video_onSeeking)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readPlaybackInfo() - return (event as Video_onSeeking_event) - } - else if ((kind) === (PeerEventKind.Video_onSeeked)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readPlaybackInfo() - return (event as Video_onSeeked_event) - } - else if ((kind) === (PeerEventKind.Video_onUpdate)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readPlaybackInfo() - return (event as Video_onUpdate_event) - } - else if ((kind) === (PeerEventKind.Video_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Video_onError_event) - } - else if ((kind) === (PeerEventKind.Video_onStop)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Video_onStop_event) - } - else if ((kind) === (PeerEventKind.Web_onPageEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnPageEndEvent() - return (event as Web_onPageEnd_event) - } - else if ((kind) === (PeerEventKind.Web_onPageBegin)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnPageBeginEvent() - return (event as Web_onPageBegin_event) - } - else if ((kind) === (PeerEventKind.Web_onProgressChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnProgressChangeEvent() - return (event as Web_onProgressChange_event) - } - else if ((kind) === (PeerEventKind.Web_onTitleReceive)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnTitleReceiveEvent() - return (event as Web_onTitleReceive_event) - } - else if ((kind) === (PeerEventKind.Web_onGeolocationHide)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onGeolocationHide_event) - } - else if ((kind) === (PeerEventKind.Web_onGeolocationShow)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnGeolocationShowEvent() - return (event as Web_onGeolocationShow_event) - } - else if ((kind) === (PeerEventKind.Web_onRequestSelected)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onRequestSelected_event) - } - else if ((kind) === (PeerEventKind.Web_onAlert)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnAlertEvent() - return (event as Web_onAlert_event) - } - else if ((kind) === (PeerEventKind.Web_onBeforeUnload)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnBeforeUnloadEvent() - return (event as Web_onBeforeUnload_event) - } - else if ((kind) === (PeerEventKind.Web_onConfirm)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnConfirmEvent() - return (event as Web_onConfirm_event) - } - else if ((kind) === (PeerEventKind.Web_onPrompt)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnPromptEvent() - return (event as Web_onPrompt_event) - } - else if ((kind) === (PeerEventKind.Web_onConsole)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnConsoleEvent() - return (event as Web_onConsole_event) - } - else if ((kind) === (PeerEventKind.Web_onErrorReceive)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnErrorReceiveEvent() - return (event as Web_onErrorReceive_event) - } - else if ((kind) === (PeerEventKind.Web_onHttpErrorReceive)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnHttpErrorReceiveEvent() - return (event as Web_onHttpErrorReceive_event) - } - else if ((kind) === (PeerEventKind.Web_onDownloadStart)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnDownloadStartEvent() - return (event as Web_onDownloadStart_event) - } - else if ((kind) === (PeerEventKind.Web_onRefreshAccessedHistory)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnRefreshAccessedHistoryEvent() - return (event as Web_onRefreshAccessedHistory_event) - } - else if ((kind) === (PeerEventKind.Web_onUrlLoadIntercept)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: { data: string | WebResourceRequest } | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - const event_buf__data_buf_selector: number = eventDeserializer.readInt8() - let event_buf__data_buf: string | WebResourceRequest | undefined|undefined - if (event_buf__data_buf_selector == 0) { - event_buf__data_buf = (eventDeserializer.readString() as string) - } - else if (event_buf__data_buf_selector == 1) { - event_buf__data_buf = (eventDeserializer.readWebResourceRequest() as WebResourceRequest) - } - else { - throw new Error("One of the branches for event_buf__data_buf has to be chosen through deserialisation.") - } - const event_buf__data: string | WebResourceRequest = (event_buf__data_buf as string | WebResourceRequest) - event_buf = ({data: event_buf__data} as { data: string | WebResourceRequest }) - } - event.event = event_buf - return (event as Web_onUrlLoadIntercept_event) - } - else if ((kind) === (PeerEventKind.Web_onSslErrorReceive)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: { handler: Function, error: Object } | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - const event_buf__handler: Function = (eventDeserializer.readFunction() as Function) - const event_buf__error: Object = (eventDeserializer.readCustomObject("Object") as Object) - event_buf = ({handler: event_buf__handler, error: event_buf__error} as { handler: Function, error: Object }) - } - event.event = event_buf - return (event as Web_onSslErrorReceive_event) - } - else if ((kind) === (PeerEventKind.Web_onRenderExited0)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnRenderExitedEvent() - return (event as Web_onRenderExited0_event) - } - else if ((kind) === (PeerEventKind.Web_onRenderExited1)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: { detail: Object } | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - const event_buf__detail: Object = (eventDeserializer.readCustomObject("Object") as Object) - event_buf = ({detail: event_buf__detail} as { detail: Object }) - } - event.event = event_buf - return (event as Web_onRenderExited1_event) - } - else if ((kind) === (PeerEventKind.Web_onShowFileSelector)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnShowFileSelectorEvent() - return (event as Web_onShowFileSelector_event) - } - else if ((kind) === (PeerEventKind.Web_onFileSelectorShow)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: { callback_: Function, fileSelector: Object } | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - const event_buf__callback_: Function = (eventDeserializer.readFunction() as Function) - const event_buf__fileSelector: Object = (eventDeserializer.readCustomObject("Object") as Object) - event_buf = ({callback_: event_buf__callback_, fileSelector: event_buf__fileSelector} as { callback_: Function, fileSelector: Object }) - } - event.event = event_buf - return (event as Web_onFileSelectorShow_event) - } - else if ((kind) === (PeerEventKind.Web_onResourceLoad)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnResourceLoadEvent() - return (event as Web_onResourceLoad_event) - } - else if ((kind) === (PeerEventKind.Web_onFullScreenExit)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onFullScreenExit_event) - } - else if ((kind) === (PeerEventKind.Web_onFullScreenEnter)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readFullScreenEnterEvent() - return (event as Web_onFullScreenEnter_event) - } - else if ((kind) === (PeerEventKind.Web_onScaleChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnScaleChangeEvent() - return (event as Web_onScaleChange_event) - } - else if ((kind) === (PeerEventKind.Web_onHttpAuthRequest)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnHttpAuthRequestEvent() - return (event as Web_onHttpAuthRequest_event) - } - else if ((kind) === (PeerEventKind.Web_onInterceptRequest)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnInterceptRequestEvent() - return (event as Web_onInterceptRequest_event) - } - else if ((kind) === (PeerEventKind.Web_onPermissionRequest)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnPermissionRequestEvent() - return (event as Web_onPermissionRequest_event) - } - else if ((kind) === (PeerEventKind.Web_onScreenCaptureRequest)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnScreenCaptureRequestEvent() - return (event as Web_onScreenCaptureRequest_event) - } - else if ((kind) === (PeerEventKind.Web_onContextMenuShow)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnContextMenuShowEvent() - return (event as Web_onContextMenuShow_event) - } - else if ((kind) === (PeerEventKind.Web_onContextMenuHide)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onContextMenuHide_event) - } - else if ((kind) === (PeerEventKind.Web_onSearchResultReceive)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnSearchResultReceiveEvent() - return (event as Web_onSearchResultReceive_event) - } - else if ((kind) === (PeerEventKind.Web_onScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnScrollEvent() - return (event as Web_onScroll_event) - } - else if ((kind) === (PeerEventKind.Web_onSslErrorEventReceive)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnSslErrorEventReceiveEvent() - return (event as Web_onSslErrorEventReceive_event) - } - else if ((kind) === (PeerEventKind.Web_onSslErrorEvent)) { - const event: { kind?: number, nodeId?: PeerEventKind, sslErrorEvent?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.sslErrorEvent = eventDeserializer.readSslErrorEvent() - return (event as Web_onSslErrorEvent_event) - } - else if ((kind) === (PeerEventKind.Web_onClientAuthenticationRequest)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnClientAuthenticationEvent() - return (event as Web_onClientAuthenticationRequest_event) - } - else if ((kind) === (PeerEventKind.Web_onWindowNew)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnWindowNewEvent() - return (event as Web_onWindowNew_event) - } - else if ((kind) === (PeerEventKind.Web_onWindowExit)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onWindowExit_event) - } - else if ((kind) === (PeerEventKind.Web_onInterceptKeyEvent)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readKeyEvent() as KeyEvent) - return (event as Web_onInterceptKeyEvent_event) - } - else if ((kind) === (PeerEventKind.Web_onTouchIconUrlReceived)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnTouchIconUrlReceivedEvent() - return (event as Web_onTouchIconUrlReceived_event) - } - else if ((kind) === (PeerEventKind.Web_onFaviconReceived)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnFaviconReceivedEvent() - return (event as Web_onFaviconReceived_event) - } - else if ((kind) === (PeerEventKind.Web_onPageVisible)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnPageVisibleEvent() - return (event as Web_onPageVisible_event) - } - else if ((kind) === (PeerEventKind.Web_onDataResubmitted)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnDataResubmittedEvent() - return (event as Web_onDataResubmitted_event) - } - else if ((kind) === (PeerEventKind.Web_onAudioStateChanged)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnAudioStateChangedEvent() - return (event as Web_onAudioStateChanged_event) - } - else if ((kind) === (PeerEventKind.Web_onFirstContentfulPaint)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnFirstContentfulPaintEvent() - return (event as Web_onFirstContentfulPaint_event) - } - else if ((kind) === (PeerEventKind.Web_onFirstMeaningfulPaint)) { - const event: { kind?: number, nodeId?: PeerEventKind, firstMeaningfulPaint?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.firstMeaningfulPaint = eventDeserializer.readFirstMeaningfulPaint() - return (event as Web_onFirstMeaningfulPaint_event) - } - else if ((kind) === (PeerEventKind.Web_onLargestContentfulPaint)) { - const event: { kind?: number, nodeId?: PeerEventKind, largestContentfulPaint?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.largestContentfulPaint = eventDeserializer.readLargestContentfulPaint() - return (event as Web_onLargestContentfulPaint_event) - } - else if ((kind) === (PeerEventKind.Web_onLoadIntercept)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnLoadInterceptEvent() - return (event as Web_onLoadIntercept_event) - } - else if ((kind) === (PeerEventKind.Web_onControllerAttached)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onControllerAttached_event) - } - else if ((kind) === (PeerEventKind.Web_onOverScroll)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readOnOverScrollEvent() - return (event as Web_onOverScroll_event) - } - else if ((kind) === (PeerEventKind.Web_onSafeBrowsingCheckResult)) { - const event: { kind?: number, nodeId?: PeerEventKind, threatType?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.threatType = (eventDeserializer.readInt32() as ThreatType) - return (event as Web_onSafeBrowsingCheckResult_event) - } - else if ((kind) === (PeerEventKind.Web_onNavigationEntryCommitted)) { - const event: { kind?: number, nodeId?: PeerEventKind, loadCommittedDetails?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.loadCommittedDetails = eventDeserializer.readLoadCommittedDetails() - return (event as Web_onNavigationEntryCommitted_event) - } - else if ((kind) === (PeerEventKind.Web_onIntelligentTrackingPreventionResult)) { - const event: { kind?: number, nodeId?: PeerEventKind, details?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.details = eventDeserializer.readIntelligentTrackingPreventionDetails() - return (event as Web_onIntelligentTrackingPreventionResult_event) - } - else if ((kind) === (PeerEventKind.Web_onNativeEmbedLifecycleChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readNativeEmbedDataInfo() - return (event as Web_onNativeEmbedLifecycleChange_event) - } - else if ((kind) === (PeerEventKind.Web_onNativeEmbedVisibilityChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, nativeEmbedVisibilityInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.nativeEmbedVisibilityInfo = eventDeserializer.readNativeEmbedVisibilityInfo() - return (event as Web_onNativeEmbedVisibilityChange_event) - } - else if ((kind) === (PeerEventKind.Web_onNativeEmbedGestureEvent)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.event = eventDeserializer.readNativeEmbedTouchInfo() - return (event as Web_onNativeEmbedGestureEvent_event) - } - else if ((kind) === (PeerEventKind.Web_onOverrideUrlLoading)) { - const event: { kind?: number, nodeId?: PeerEventKind, webResourceRequest?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.webResourceRequest = (eventDeserializer.readWebResourceRequest() as WebResourceRequest) - return (event as Web_onOverrideUrlLoading_event) - } - else if ((kind) === (PeerEventKind.Web_onRenderProcessNotResponding)) { - const event: { kind?: number, nodeId?: PeerEventKind, data?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.data = eventDeserializer.readRenderProcessNotRespondingData() - return (event as Web_onRenderProcessNotResponding_event) - } - else if ((kind) === (PeerEventKind.Web_onRenderProcessResponding)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_onRenderProcessResponding_event) - } - else if ((kind) === (PeerEventKind.Web_onViewportFitChanged)) { - const event: { kind?: number, nodeId?: PeerEventKind, viewportFit?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.viewportFit = (eventDeserializer.readInt32() as ViewportFit) - return (event as Web_onViewportFitChanged_event) - } - else if ((kind) === (PeerEventKind.Web_onInterceptKeyboardAttach)) { - const event: { kind?: number, nodeId?: PeerEventKind, keyboardCallbackInfo?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.keyboardCallbackInfo = eventDeserializer.readWebKeyboardCallbackInfo() - return (event as Web_onInterceptKeyboardAttach_event) - } - else if ((kind) === (PeerEventKind.Web_onAdsBlocked)) { - const event: { kind?: number, nodeId?: PeerEventKind, details?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.details = eventDeserializer.readAdsBlockedDetails() - return (event as Web_onAdsBlocked_event) - } - else if ((kind) === (PeerEventKind.Web_bindSelectionMenu)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as Web_bindSelectionMenu_event) - } - else if ((kind) === (PeerEventKind.XComponent_onLoad)) { - const event: { kind?: number, nodeId?: PeerEventKind, event?: any } = {} - event.kind = kind - event.nodeId = nodeId - const event_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let event_buf: Object | undefined|undefined - if ((RuntimeType.UNDEFINED) != (event_buf_runtimeType)) - { - event_buf = (eventDeserializer.readCustomObject("Object") as Object) - } - event.event = event_buf - return (event as XComponent_onLoad_event) - } - else if ((kind) === (PeerEventKind.XComponent_onDestroy)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as XComponent_onDestroy_event) - } - else if ((kind) === (PeerEventKind.SideBarContainer_onChange)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as SideBarContainer_onChange_event) - } - else if ((kind) === (PeerEventKind.SideBarContainer__onChangeEvent_showSideBar)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readBoolean() - return (event as SideBarContainer__onChangeEvent_showSideBar_event) - } - else if ((kind) === (PeerEventKind.WaterFlow_onReachStart)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as WaterFlow_onReachStart_event) - } - else if ((kind) === (PeerEventKind.WaterFlow_onReachEnd)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as WaterFlow_onReachEnd_event) - } - else if ((kind) === (PeerEventKind.WaterFlow_onScrollFrameBegin)) { - const event: { kind?: number, nodeId?: PeerEventKind, offset?: any, state?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.offset = (eventDeserializer.readNumber() as number) - event.state = (eventDeserializer.readInt32() as ScrollState) - return (event as WaterFlow_onScrollFrameBegin_event) - } - else if ((kind) === (PeerEventKind.WaterFlow_onScrollIndex)) { - const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.first = (eventDeserializer.readNumber() as number) - event.last = (eventDeserializer.readNumber() as number) - return (event as WaterFlow_onScrollIndex_event) - } - else if ((kind) === (PeerEventKind.UIExtensionComponent_onRemoteReady)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readUIExtensionProxy() as UIExtensionProxy) - return (event as UIExtensionComponent_onRemoteReady_event) - } - else if ((kind) === (PeerEventKind.UIExtensionComponent_onResult)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - const parameter_buf_code: number = (eventDeserializer.readNumber() as number) - const parameter_buf_want_buf_runtimeType = (eventDeserializer.readInt8() as int32) - let parameter_buf_want_buf: Want | undefined|undefined - if ((RuntimeType.UNDEFINED) != (parameter_buf_want_buf_runtimeType)) - { - parameter_buf_want_buf = eventDeserializer.readWant() - } - const parameter_buf_want: undefined | Want = parameter_buf_want_buf - event.parameter = ({code: parameter_buf_code, want: parameter_buf_want} as { code: number, want?: Want }) - return (event as UIExtensionComponent_onResult_event) - } - else if ((kind) === (PeerEventKind.UIExtensionComponent_onRelease)) { - const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.index = (eventDeserializer.readNumber() as number) - return (event as UIExtensionComponent_onRelease_event) - } - else if ((kind) === (PeerEventKind.UIExtensionComponent_onError)) { - const event: { kind?: number, nodeId?: PeerEventKind, err?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.err = eventDeserializer.readBusinessError() - return (event as UIExtensionComponent_onError_event) - } - else if ((kind) === (PeerEventKind.UIExtensionComponent_onTerminated)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = eventDeserializer.readTerminationInfo() - return (event as UIExtensionComponent_onTerminated_event) - } - else { - throw `Unknown kind ${kind}` - } -} -export interface PeerEventsProperties { - AbilityComponent_onConnect?: (() => void) - AbilityComponent_onDisconnect?: (() => void) - AlphabetIndexer_onSelected?: ((index: number) => void) - AlphabetIndexer_onSelect?: OnAlphabetIndexerSelectCallback - AlphabetIndexer_onRequestPopupData?: OnAlphabetIndexerRequestPopupDataCallback - AlphabetIndexer_onPopupSelect?: OnAlphabetIndexerPopupSelectCallback - AlphabetIndexer__onChangeEvent_selected?: ((index: number) => void) - Animator_onStart?: (() => void) - Animator_onPause?: (() => void) - Animator_onRepeat?: (() => void) - Animator_onCancel?: (() => void) - Animator_onFinish?: (() => void) - Animator_onFrame?: ((index: number) => void) - Calendar_onSelectChange?: ((event: CalendarSelectedDate) => void) - Calendar_onRequestData?: ((event: CalendarRequestedData) => void) - CalendarPicker_onChange?: ((parameter: Date) => void) - Canvas_onReady?: VoidCallback - Checkbox_onChange?: OnCheckboxChangeCallback - Checkbox__onChangeEvent_select?: ((parameter: boolean) => void) - CheckboxGroup_onChange?: OnCheckboxGroupChangeCallback - CheckboxGroup__onChangeEvent_selectAll?: ((parameter: boolean) => void) - CommonMethod_onChildTouchTest?: ((value: Array) => TouchResult) - CommonMethod_onClick0?: ((event: ClickEvent) => void) - CommonMethod_onClick1?: ((event: ClickEvent) => void) - CommonMethod_onHover?: ((isHover: boolean, event: HoverEvent) => void) - CommonMethod_onAccessibilityHover?: AccessibilityCallback - CommonMethod_onMouse?: ((event: MouseEvent) => void) - CommonMethod_onTouch?: ((event: TouchEvent) => void) - CommonMethod_onKeyEvent?: ((event: KeyEvent) => void) - CommonMethod_onKeyPreIme?: ((parameter: KeyEvent) => boolean) - CommonMethod_onFocus?: (() => void) - CommonMethod_onBlur?: (() => void) - CommonMethod_onAppear?: (() => void) - CommonMethod_onDisAppear?: (() => void) - CommonMethod_onAttach?: (() => void) - CommonMethod_onDetach?: (() => void) - CommonMethod_onAreaChange?: ((oldValue: Area, newValue: Area) => void) - CommonMethod_onDragStart?: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo) - CommonMethod_onDragEnter?: ((event: DragEvent, extraParams?: string) => void) - CommonMethod_onDragMove?: ((event: DragEvent, extraParams?: string) => void) - CommonMethod_onDragLeave?: ((event: DragEvent, extraParams?: string) => void) - CommonMethod_onDrop?: ((event: DragEvent, extraParams?: string) => void) - CommonMethod_onDragEnd?: ((event: DragEvent, extraParams?: string) => void) - CommonMethod_onPreDrag?: ((parameter: PreDragStatus) => void) - CommonMethod_accessibilityVirtualNode?: CustomBuilder - CommonMethod_onGestureJudgeBegin?: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) - CommonMethod_onGestureRecognizerJudgeBegin0?: GestureRecognizerJudgeBeginCallback - CommonMethod_onGestureRecognizerJudgeBegin1?: GestureRecognizerJudgeBeginCallback - CommonMethod_shouldBuiltInRecognizerParallelWith?: ShouldBuiltInRecognizerParallelWithCallback - CommonMethod_onTouchIntercept?: ((parameter: TouchEvent) => HitTestMode) - CommonMethod_onSizeChange?: SizeChangeCallback - CommonMethod_background?: CustomBuilder - CommonMethod_bindContextMenu0?: CustomBuilder - CommonMethod_bindContextMenu1?: CustomBuilder - CommonMethod_bindContentCover0?: CustomBuilder - CommonMethod_bindContentCover1?: CustomBuilder - CommonMethod_bindSheet?: CustomBuilder - CommonMethod_onVisibleAreaChange?: VisibleAreaChangeCallback - ScrollableCommonMethod_onScroll?: ((first: number, last: number) => void) - ScrollableCommonMethod_onDidScroll?: ScrollOnScrollCallback - ScrollableCommonMethod_onReachStart?: (() => void) - ScrollableCommonMethod_onReachEnd?: (() => void) - ScrollableCommonMethod_onScrollStart?: (() => void) - ScrollableCommonMethod_onScrollStop?: (() => void) - Counter_onInc?: VoidCallback - Counter_onDec?: VoidCallback - DatePicker_onChange?: ((value: DatePickerResult) => void) - DatePicker_onDateChange?: ((parameter: Date) => void) - DatePicker__onChangeEvent_selected?: ((parameter: Date) => void) - EmbeddedComponent_onTerminated?: ((parameter: TerminationInfo) => void) - EmbeddedComponent_onError?: ErrorCallback - FolderStack_onFolderStateChange?: OnFoldStatusChangeCallback - FolderStack_onHoverStatusChange?: OnHoverStatusChangeCallback - FormComponent_onAcquired?: ((parameter: FormCallbackInfo) => void) - FormComponent_onError?: ((info: { errcode: number, msg: string }) => void) - FormComponent_onRouter?: ((info: any) => void) - FormComponent_onUninstall?: ((parameter: FormCallbackInfo) => void) - FormComponent_onLoad?: (() => void) - Gauge_description?: CustomBuilder - Grid_onScrollBarUpdate?: ((index: number, offset: number) => ComputedBarAttribute) - Grid_onScrollIndex?: ((first: number, last: number) => void) - Grid_onItemDragStart?: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder) - Grid_onItemDragEnter?: ((event: ItemDragInfo) => void) - Grid_onItemDragMove?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) - Grid_onItemDragLeave?: ((event: ItemDragInfo, itemIndex: number) => void) - Grid_onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) - Grid_onScroll?: ((first: number, last: number) => void) - Grid_onReachStart?: (() => void) - Grid_onReachEnd?: (() => void) - Grid_onScrollStart?: (() => void) - Grid_onScrollStop?: (() => void) - Grid_onScrollFrameBegin?: ((offset: number, state: ScrollState) => { offsetRemain: number }) - GridItem_onSelect?: ((parameter: boolean) => void) - GridItem__onChangeEvent_selected?: ((parameter: boolean) => void) - GridRow_onBreakpointChange?: ((breakpoints: string) => void) - Image_onComplete?: ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void) - Image_onError?: ImageErrorCallback - Image_onFinish?: (() => void) - ImageAnimator_onStart?: (() => void) - ImageAnimator_onPause?: (() => void) - ImageAnimator_onRepeat?: (() => void) - ImageAnimator_onCancel?: (() => void) - ImageAnimator_onFinish?: (() => void) - ImageSpan_onComplete?: ImageCompleteCallback - ImageSpan_onError?: ImageErrorCallback - List_onScroll?: ((first: number, last: number) => void) - List_onScrollIndex?: ((start: number, end: number, center: number) => void) - List_onScrollVisibleContentChange?: OnScrollVisibleContentChangeCallback - List_onReachStart?: (() => void) - List_onReachEnd?: (() => void) - List_onScrollStart?: (() => void) - List_onScrollStop?: (() => void) - List_onItemDelete?: ((index: number) => boolean) - List_onItemMove?: ((from: number, to: number) => boolean) - List_onItemDragStart?: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder) - List_onItemDragEnter?: ((event: ItemDragInfo) => void) - List_onItemDragMove?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) - List_onItemDragLeave?: ((event: ItemDragInfo, itemIndex: number) => void) - List_onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) - List_onScrollFrameBegin?: ((offset: number, state: ScrollState) => { offsetRemain: number }) - ListItem_onSelect?: ((parameter: boolean) => void) - ListItem__onChangeEvent_selected?: ((parameter: boolean) => void) - LocationButton_onClick?: ((event: ClickEvent, result: LocationButtonOnClickResult) => void) - Marquee_onStart?: (() => void) - Marquee_onBounce?: (() => void) - Marquee_onFinish?: (() => void) - MenuItem_onChange?: ((parameter: boolean) => void) - MenuItem__onChangeEvent_selected?: ((parameter: boolean) => void) - NavDestination_onShown?: (() => void) - NavDestination_onHidden?: (() => void) - NavDestination_onBackPressed?: (() => boolean) - NavDestination_onReady?: ((parameter: NavDestinationContext) => void) - NavDestination_onWillAppear?: (() => void) - NavDestination_onWillDisappear?: (() => void) - NavDestination_onWillShow?: (() => void) - NavDestination_onWillHide?: (() => void) - NavRouter_onStateChange?: ((parameter: boolean) => void) - Panel_onChange?: ((width: number, height: number, mode: PanelMode) => void) - Panel_onHeightChange?: ((index: number) => void) - Panel__onChangeEvent_mode?: ((mode: PanelMode) => void) - PasteButton_onClick?: ((event: ClickEvent, result: PasteButtonOnClickResult) => void) - PatternLock_onPatternComplete?: ((input: Array) => void) - PatternLock_onDotConnect?: ((index: number) => void) - PluginComponent_onComplete?: VoidCallback - PluginComponent_onError?: PluginErrorCallback - Radio_onChange?: ((parameter: boolean) => void) - Radio__onChangeEvent_checked?: ((parameter: boolean) => void) - Rating_onChange?: ((index: number) => void) - Rating__onChangeEvent_rating?: ((index: number) => void) - Refresh_onStateChange?: ((state: RefreshStatus) => void) - Refresh_onRefreshing?: (() => void) - Refresh_onOffsetChange?: ((index: number) => void) - Refresh__onChangeEvent_refreshing?: ((parameter: boolean) => void) - RichEditor_onReady?: (() => void) - RichEditor_onSelect?: ((parameter: RichEditorSelection) => void) - RichEditor_onSelectionChange?: ((parameter: RichEditorRange) => void) - RichEditor_aboutToIMEInput?: ((parameter: RichEditorInsertValue) => boolean) - RichEditor_onIMEInputComplete?: ((parameter: RichEditorTextSpanResult) => void) - RichEditor_onDidIMEInput?: ((parameter: TextRange) => void) - RichEditor_aboutToDelete?: ((parameter: RichEditorDeleteValue) => boolean) - RichEditor_onDeleteComplete?: (() => void) - RichEditor_onPaste?: PasteEventCallback - RichEditor_onEditingChange?: ((parameter: boolean) => void) - RichEditor_onSubmit?: SubmitCallback - RichEditor_onWillChange?: ((parameter: RichEditorChangeValue) => boolean) - RichEditor_onDidChange?: OnDidChangeCallback - RichEditor_onCut?: ((parameter: CutEvent) => void) - RichEditor_onCopy?: ((parameter: CopyEvent) => void) - RichEditor_bindSelectionMenu?: CustomBuilder - RichEditor_customKeyboard?: CustomBuilder - RichText_onStart?: (() => void) - RichText_onComplete?: (() => void) - SaveButton_onClick?: ((event: ClickEvent, result: SaveButtonOnClickResult) => void) - Scroll_onScroll?: ((first: number, last: number) => void) - Scroll_onDidScroll?: ScrollOnScrollCallback - Scroll_onScrollEdge?: OnScrollEdgeCallback - Scroll_onScrollStart?: VoidCallback - Scroll_onScrollEnd?: (() => void) - Scroll_onScrollStop?: VoidCallback - Scroll_onScrollFrameBegin?: OnScrollFrameBeginCallback - Search_onEditChange?: ((parameter: boolean) => void) - Search_onSubmit0?: ((breakpoints: string) => void) - Search_onSubmit1?: SearchSubmitCallback - Search_onChange?: EditableTextOnChangeCallback - Search_onTextSelectionChange?: OnTextSelectionChangeCallback - Search_onContentScroll?: OnContentScrollCallback - Search_onCopy?: ((breakpoints: string) => void) - Search_onCut?: ((breakpoints: string) => void) - Search_onPaste?: OnPasteCallback - Search_onWillInsert?: ((parameter: InsertValue) => boolean) - Search_onDidInsert?: ((parameter: InsertValue) => void) - Search_onWillDelete?: ((parameter: DeleteValue) => boolean) - Search_onDidDelete?: ((parameter: DeleteValue) => void) - Search_customKeyboard?: CustomBuilder - Search__onChangeEvent_value?: ((breakpoints: string) => void) - Select_onSelect?: ((index: number, value: string) => void) - Select__onChangeEvent_selected?: ((selected: number | Resource) => void) - Select__onChangeEvent_value?: ((value: ResourceStr) => void) - Slider_onChange?: ((value: number, mode: SliderChangeMode) => void) - Slider__onChangeEvent_value?: ((index: number) => void) - Stepper_onFinish?: (() => void) - Stepper_onSkip?: (() => void) - Stepper_onChange?: ((first: number, last: number) => void) - Stepper_onNext?: ((first: number, last: number) => void) - Stepper_onPrevious?: ((first: number, last: number) => void) - Stepper__onChangeEvent_index?: ((index: number) => void) - Swiper_onChange?: ((index: number) => void) - Swiper_onAnimationStart?: OnSwiperAnimationStartCallback - Swiper_onAnimationEnd?: OnSwiperAnimationEndCallback - Swiper_onGestureSwipe?: OnSwiperGestureSwipeCallback - Swiper_onContentDidScroll?: ContentDidScrollCallback - Swiper__onChangeEvent_index?: ((index: number) => void) - IndicatorComponent_onChange?: ((index: number) => void) - Tabs_onChange?: ((index: number) => void) - Tabs_onTabBarClick?: ((index: number) => void) - Tabs_onAnimationStart?: OnTabsAnimationStartCallback - Tabs_onAnimationEnd?: OnTabsAnimationEndCallback - Tabs_onGestureSwipe?: OnTabsGestureSwipeCallback - Tabs_customContentTransition?: TabsCustomContentTransitionCallback - Tabs_onContentWillChange?: OnTabsContentWillChangeCallback - Tabs__onChangeEvent_index?: ((index: number) => void) - TabContent_onWillShow?: VoidCallback - TabContent_onWillHide?: VoidCallback - Text_onCopy?: ((breakpoints: string) => void) - Text_onTextSelectionChange?: ((first: number, last: number) => void) - Text_bindSelectionMenu?: CustomBuilder - TextArea_onSubmit0?: ((enterKey: EnterKeyType) => void) - TextArea_onSubmit1?: TextAreaSubmitCallback - TextArea_onChange?: EditableTextOnChangeCallback - TextArea_onTextSelectionChange?: ((first: number, last: number) => void) - TextArea_onContentScroll?: ((first: number, last: number) => void) - TextArea_onEditChange?: ((parameter: boolean) => void) - TextArea_onCopy?: ((breakpoints: string) => void) - TextArea_onCut?: ((breakpoints: string) => void) - TextArea_onPaste?: ((value: string, event: PasteEvent) => void) - TextArea_onWillInsert?: ((parameter: InsertValue) => boolean) - TextArea_onDidInsert?: ((parameter: InsertValue) => void) - TextArea_onWillDelete?: ((parameter: DeleteValue) => boolean) - TextArea_onDidDelete?: ((parameter: DeleteValue) => void) - TextArea_customKeyboard?: CustomBuilder - TextArea__onChangeEvent_text?: ((value: ResourceStr) => void) - TextClock_onDateChange?: ((index: number) => void) - TextInput_onEditChanged?: ((parameter: boolean) => void) - TextInput_onEditChange?: ((parameter: boolean) => void) - TextInput_onSubmit?: OnSubmitCallback - TextInput_onChange?: EditableTextOnChangeCallback - TextInput_onTextSelectionChange?: OnTextSelectionChangeCallback - TextInput_onContentScroll?: OnContentScrollCallback - TextInput_onCopy?: ((breakpoints: string) => void) - TextInput_onCut?: ((breakpoints: string) => void) - TextInput_onPaste?: OnPasteCallback - TextInput_showUnit?: CustomBuilder - TextInput_onSecurityStateChange?: ((parameter: boolean) => void) - TextInput_onWillInsert?: ((parameter: InsertValue) => boolean) - TextInput_onDidInsert?: ((parameter: InsertValue) => void) - TextInput_onWillDelete?: ((parameter: DeleteValue) => boolean) - TextInput_onDidDelete?: ((parameter: DeleteValue) => void) - TextInput_customKeyboard?: CustomBuilder - TextInput__onChangeEvent_text?: ((value: ResourceStr) => void) - TextPicker_onAccept?: ((value: string, index: number) => void) - TextPicker_onCancel?: (() => void) - TextPicker_onChange?: ((value: string | Array, index: number | Array) => void) - TextPicker__onChangeEvent_selected?: ((selected: number | Array) => void) - TextPicker__onChangeEvent_value?: ((value: string | Array) => void) - TextTimer_onTimer?: ((first: number, last: number) => void) - TimePicker_onChange?: ((value: TimePickerResult) => void) - TimePicker__onChangeEvent_selected?: ((parameter: Date) => void) - Toggle_onChange?: ((parameter: boolean) => void) - Toggle__onChangeEvent_isOn?: ((parameter: boolean) => void) - Video_onStart?: VoidCallback - Video_onPause?: VoidCallback - Video_onFinish?: VoidCallback - Video_onFullscreenChange?: ((parameter: FullscreenInfo) => void) - Video_onPrepared?: ((parameter: PreparedInfo) => void) - Video_onSeeking?: ((parameter: PlaybackInfo) => void) - Video_onSeeked?: ((parameter: PlaybackInfo) => void) - Video_onUpdate?: ((parameter: PlaybackInfo) => void) - Video_onError?: (() => void) - Video_onStop?: (() => void) - Web_onPageEnd?: ((parameter: OnPageEndEvent) => void) - Web_onPageBegin?: ((parameter: OnPageBeginEvent) => void) - Web_onProgressChange?: ((parameter: OnProgressChangeEvent) => void) - Web_onTitleReceive?: ((parameter: OnTitleReceiveEvent) => void) - Web_onGeolocationHide?: (() => void) - Web_onGeolocationShow?: ((parameter: OnGeolocationShowEvent) => void) - Web_onRequestSelected?: (() => void) - Web_onAlert?: ((parameter: OnAlertEvent) => boolean) - Web_onBeforeUnload?: ((parameter: OnBeforeUnloadEvent) => boolean) - Web_onConfirm?: ((parameter: OnConfirmEvent) => boolean) - Web_onPrompt?: ((parameter: OnPromptEvent) => boolean) - Web_onConsole?: ((parameter: OnConsoleEvent) => boolean) - Web_onErrorReceive?: ((parameter: OnErrorReceiveEvent) => void) - Web_onHttpErrorReceive?: ((parameter: OnHttpErrorReceiveEvent) => void) - Web_onDownloadStart?: ((parameter: OnDownloadStartEvent) => void) - Web_onRefreshAccessedHistory?: ((parameter: OnRefreshAccessedHistoryEvent) => void) - Web_onUrlLoadIntercept?: ((event?: { data: string | WebResourceRequest }) => boolean) - Web_onSslErrorReceive?: ((event?: { handler: Function, error: Object }) => void) - Web_onRenderExited0?: ((parameter: OnRenderExitedEvent) => void) - Web_onRenderExited1?: ((event?: { detail: Object }) => boolean) - Web_onShowFileSelector?: ((parameter: OnShowFileSelectorEvent) => boolean) - Web_onFileSelectorShow?: ((event?: { callback_: Function, fileSelector: Object }) => void) - Web_onResourceLoad?: ((parameter: OnResourceLoadEvent) => void) - Web_onFullScreenExit?: (() => void) - Web_onFullScreenEnter?: OnFullScreenEnterCallback - Web_onScaleChange?: ((parameter: OnScaleChangeEvent) => void) - Web_onHttpAuthRequest?: ((parameter: OnHttpAuthRequestEvent) => boolean) - Web_onInterceptRequest?: ((parameter: OnInterceptRequestEvent) => WebResourceResponse) - Web_onPermissionRequest?: ((parameter: OnPermissionRequestEvent) => void) - Web_onScreenCaptureRequest?: ((parameter: OnScreenCaptureRequestEvent) => void) - Web_onContextMenuShow?: ((parameter: OnContextMenuShowEvent) => boolean) - Web_onContextMenuHide?: OnContextMenuHideCallback - Web_onSearchResultReceive?: ((parameter: OnSearchResultReceiveEvent) => void) - Web_onScroll?: ((parameter: OnScrollEvent) => void) - Web_onSslErrorEventReceive?: ((parameter: OnSslErrorEventReceiveEvent) => void) - Web_onSslErrorEvent?: OnSslErrorEventCallback - Web_onClientAuthenticationRequest?: ((parameter: OnClientAuthenticationEvent) => void) - Web_onWindowNew?: ((parameter: OnWindowNewEvent) => void) - Web_onWindowExit?: (() => void) - Web_onInterceptKeyEvent?: ((parameter: KeyEvent) => boolean) - Web_onTouchIconUrlReceived?: ((parameter: OnTouchIconUrlReceivedEvent) => void) - Web_onFaviconReceived?: ((parameter: OnFaviconReceivedEvent) => void) - Web_onPageVisible?: ((parameter: OnPageVisibleEvent) => void) - Web_onDataResubmitted?: ((parameter: OnDataResubmittedEvent) => void) - Web_onAudioStateChanged?: ((parameter: OnAudioStateChangedEvent) => void) - Web_onFirstContentfulPaint?: ((parameter: OnFirstContentfulPaintEvent) => void) - Web_onFirstMeaningfulPaint?: OnFirstMeaningfulPaintCallback - Web_onLargestContentfulPaint?: OnLargestContentfulPaintCallback - Web_onLoadIntercept?: ((parameter: OnLoadInterceptEvent) => boolean) - Web_onControllerAttached?: (() => void) - Web_onOverScroll?: ((parameter: OnOverScrollEvent) => void) - Web_onSafeBrowsingCheckResult?: OnSafeBrowsingCheckResultCallback - Web_onNavigationEntryCommitted?: OnNavigationEntryCommittedCallback - Web_onIntelligentTrackingPreventionResult?: OnIntelligentTrackingPreventionCallback - Web_onNativeEmbedLifecycleChange?: ((event: NativeEmbedDataInfo) => void) - Web_onNativeEmbedVisibilityChange?: OnNativeEmbedVisibilityChangeCallback - Web_onNativeEmbedGestureEvent?: ((event: NativeEmbedTouchInfo) => void) - Web_onOverrideUrlLoading?: OnOverrideUrlLoadingCallback - Web_onRenderProcessNotResponding?: OnRenderProcessNotRespondingCallback - Web_onRenderProcessResponding?: OnRenderProcessRespondingCallback - Web_onViewportFitChanged?: OnViewportFitChangedCallback - Web_onInterceptKeyboardAttach?: WebKeyboardCallback - Web_onAdsBlocked?: OnAdsBlockedCallback - Web_bindSelectionMenu?: CustomBuilder - XComponent_onLoad?: OnNativeLoadCallback - XComponent_onDestroy?: VoidCallback - SideBarContainer_onChange?: ((parameter: boolean) => void) - SideBarContainer__onChangeEvent_showSideBar?: ((parameter: boolean) => void) - WaterFlow_onReachStart?: (() => void) - WaterFlow_onReachEnd?: (() => void) - WaterFlow_onScrollFrameBegin?: ((offset: number, state: ScrollState) => { offsetRemain: number }) - WaterFlow_onScrollIndex?: ((first: number, last: number) => void) - UIExtensionComponent_onRemoteReady?: ((parameter: UIExtensionProxy) => void) - UIExtensionComponent_onResult?: ((parameter: { code: number, want?: Want }) => void) - UIExtensionComponent_onRelease?: ((index: number) => void) - UIExtensionComponent_onError?: ErrorCallback - UIExtensionComponent_onTerminated?: ((parameter: TerminationInfo) => void) -} -export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEventsProperties): void { - switch (event.kind) { - case PeerEventKind.AbilityComponent_onConnect: properties.AbilityComponent_onConnect?.(); break - case PeerEventKind.AbilityComponent_onDisconnect: properties.AbilityComponent_onDisconnect?.(); break - case PeerEventKind.AlphabetIndexer_onSelected: properties.AlphabetIndexer_onSelected?.((event as AlphabetIndexer_onSelected_event).index); break - case PeerEventKind.AlphabetIndexer_onSelect: properties.AlphabetIndexer_onSelect?.((event as AlphabetIndexer_onSelect_event).index); break - case PeerEventKind.AlphabetIndexer_onRequestPopupData: properties.AlphabetIndexer_onRequestPopupData?.((event as AlphabetIndexer_onRequestPopupData_event).index); break - case PeerEventKind.AlphabetIndexer_onPopupSelect: properties.AlphabetIndexer_onPopupSelect?.((event as AlphabetIndexer_onPopupSelect_event).index); break - case PeerEventKind.AlphabetIndexer__onChangeEvent_selected: properties.AlphabetIndexer__onChangeEvent_selected?.((event as AlphabetIndexer__onChangeEvent_selected_event).index); break - case PeerEventKind.Animator_onStart: properties.Animator_onStart?.(); break - case PeerEventKind.Animator_onPause: properties.Animator_onPause?.(); break - case PeerEventKind.Animator_onRepeat: properties.Animator_onRepeat?.(); break - case PeerEventKind.Animator_onCancel: properties.Animator_onCancel?.(); break - case PeerEventKind.Animator_onFinish: properties.Animator_onFinish?.(); break - case PeerEventKind.Animator_onFrame: properties.Animator_onFrame?.((event as Animator_onFrame_event).index); break - case PeerEventKind.Calendar_onSelectChange: properties.Calendar_onSelectChange?.((event as Calendar_onSelectChange_event).event); break - case PeerEventKind.Calendar_onRequestData: properties.Calendar_onRequestData?.((event as Calendar_onRequestData_event).event); break - case PeerEventKind.CalendarPicker_onChange: properties.CalendarPicker_onChange?.((event as CalendarPicker_onChange_event).parameter); break - case PeerEventKind.Canvas_onReady: properties.Canvas_onReady?.(); break - case PeerEventKind.Checkbox_onChange: properties.Checkbox_onChange?.((event as Checkbox_onChange_event).value); break - case PeerEventKind.Checkbox__onChangeEvent_select: properties.Checkbox__onChangeEvent_select?.((event as Checkbox__onChangeEvent_select_event).parameter); break - case PeerEventKind.CheckboxGroup_onChange: properties.CheckboxGroup_onChange?.((event as CheckboxGroup_onChange_event).value); break - case PeerEventKind.CheckboxGroup__onChangeEvent_selectAll: properties.CheckboxGroup__onChangeEvent_selectAll?.((event as CheckboxGroup__onChangeEvent_selectAll_event).parameter); break - case PeerEventKind.CommonMethod_onChildTouchTest: properties.CommonMethod_onChildTouchTest?.((event as CommonMethod_onChildTouchTest_event).value); break - case PeerEventKind.CommonMethod_onClick0: properties.CommonMethod_onClick0?.((event as CommonMethod_onClick0_event).event); break - case PeerEventKind.CommonMethod_onClick1: properties.CommonMethod_onClick1?.((event as CommonMethod_onClick1_event).event); break - case PeerEventKind.CommonMethod_onHover: properties.CommonMethod_onHover?.((event as CommonMethod_onHover_event).isHover, (event as CommonMethod_onHover_event).event); break - case PeerEventKind.CommonMethod_onAccessibilityHover: properties.CommonMethod_onAccessibilityHover?.((event as CommonMethod_onAccessibilityHover_event).isHover, (event as CommonMethod_onAccessibilityHover_event).event); break - case PeerEventKind.CommonMethod_onMouse: properties.CommonMethod_onMouse?.((event as CommonMethod_onMouse_event).event); break - case PeerEventKind.CommonMethod_onTouch: properties.CommonMethod_onTouch?.((event as CommonMethod_onTouch_event).event); break - case PeerEventKind.CommonMethod_onKeyEvent: properties.CommonMethod_onKeyEvent?.((event as CommonMethod_onKeyEvent_event).event); break - case PeerEventKind.CommonMethod_onKeyPreIme: properties.CommonMethod_onKeyPreIme?.((event as CommonMethod_onKeyPreIme_event).parameter); break - case PeerEventKind.CommonMethod_onFocus: properties.CommonMethod_onFocus?.(); break - case PeerEventKind.CommonMethod_onBlur: properties.CommonMethod_onBlur?.(); break - case PeerEventKind.CommonMethod_onAppear: properties.CommonMethod_onAppear?.(); break - case PeerEventKind.CommonMethod_onDisAppear: properties.CommonMethod_onDisAppear?.(); break - case PeerEventKind.CommonMethod_onAttach: properties.CommonMethod_onAttach?.(); break - case PeerEventKind.CommonMethod_onDetach: properties.CommonMethod_onDetach?.(); break - case PeerEventKind.CommonMethod_onAreaChange: properties.CommonMethod_onAreaChange?.((event as CommonMethod_onAreaChange_event).oldValue, (event as CommonMethod_onAreaChange_event).newValue); break - case PeerEventKind.CommonMethod_onDragStart: properties.CommonMethod_onDragStart?.((event as CommonMethod_onDragStart_event).event, (event as CommonMethod_onDragStart_event).extraParams); break - case PeerEventKind.CommonMethod_onDragEnter: properties.CommonMethod_onDragEnter?.((event as CommonMethod_onDragEnter_event).event, (event as CommonMethod_onDragEnter_event).extraParams); break - case PeerEventKind.CommonMethod_onDragMove: properties.CommonMethod_onDragMove?.((event as CommonMethod_onDragMove_event).event, (event as CommonMethod_onDragMove_event).extraParams); break - case PeerEventKind.CommonMethod_onDragLeave: properties.CommonMethod_onDragLeave?.((event as CommonMethod_onDragLeave_event).event, (event as CommonMethod_onDragLeave_event).extraParams); break - case PeerEventKind.CommonMethod_onDrop: properties.CommonMethod_onDrop?.((event as CommonMethod_onDrop_event).event, (event as CommonMethod_onDrop_event).extraParams); break - case PeerEventKind.CommonMethod_onDragEnd: properties.CommonMethod_onDragEnd?.((event as CommonMethod_onDragEnd_event).event, (event as CommonMethod_onDragEnd_event).extraParams); break - case PeerEventKind.CommonMethod_onPreDrag: properties.CommonMethod_onPreDrag?.((event as CommonMethod_onPreDrag_event).parameter); break - case PeerEventKind.CommonMethod_accessibilityVirtualNode: properties.CommonMethod_accessibilityVirtualNode?.(); break - case PeerEventKind.CommonMethod_onGestureJudgeBegin: properties.CommonMethod_onGestureJudgeBegin?.((event as CommonMethod_onGestureJudgeBegin_event).gestureInfo, (event as CommonMethod_onGestureJudgeBegin_event).event); break - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin0: properties.CommonMethod_onGestureRecognizerJudgeBegin0?.((event as CommonMethod_onGestureRecognizerJudgeBegin0_event).event, (event as CommonMethod_onGestureRecognizerJudgeBegin0_event).current, (event as CommonMethod_onGestureRecognizerJudgeBegin0_event).recognizers); break - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin1: properties.CommonMethod_onGestureRecognizerJudgeBegin1?.((event as CommonMethod_onGestureRecognizerJudgeBegin1_event).event, (event as CommonMethod_onGestureRecognizerJudgeBegin1_event).current, (event as CommonMethod_onGestureRecognizerJudgeBegin1_event).recognizers); break - case PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith: properties.CommonMethod_shouldBuiltInRecognizerParallelWith?.((event as CommonMethod_shouldBuiltInRecognizerParallelWith_event).current, (event as CommonMethod_shouldBuiltInRecognizerParallelWith_event).others); break - case PeerEventKind.CommonMethod_onTouchIntercept: properties.CommonMethod_onTouchIntercept?.((event as CommonMethod_onTouchIntercept_event).parameter); break - case PeerEventKind.CommonMethod_onSizeChange: properties.CommonMethod_onSizeChange?.((event as CommonMethod_onSizeChange_event).oldValue, (event as CommonMethod_onSizeChange_event).newValue); break - case PeerEventKind.CommonMethod_background: properties.CommonMethod_background?.(); break - case PeerEventKind.CommonMethod_bindContextMenu0: properties.CommonMethod_bindContextMenu0?.(); break - case PeerEventKind.CommonMethod_bindContextMenu1: properties.CommonMethod_bindContextMenu1?.(); break - case PeerEventKind.CommonMethod_bindContentCover0: properties.CommonMethod_bindContentCover0?.(); break - case PeerEventKind.CommonMethod_bindContentCover1: properties.CommonMethod_bindContentCover1?.(); break - case PeerEventKind.CommonMethod_bindSheet: properties.CommonMethod_bindSheet?.(); break - case PeerEventKind.CommonMethod_onVisibleAreaChange: properties.CommonMethod_onVisibleAreaChange?.((event as CommonMethod_onVisibleAreaChange_event).isExpanding, (event as CommonMethod_onVisibleAreaChange_event).currentRatio); break - case PeerEventKind.ScrollableCommonMethod_onScroll: properties.ScrollableCommonMethod_onScroll?.((event as ScrollableCommonMethod_onScroll_event).first, (event as ScrollableCommonMethod_onScroll_event).last); break - case PeerEventKind.ScrollableCommonMethod_onDidScroll: properties.ScrollableCommonMethod_onDidScroll?.((event as ScrollableCommonMethod_onDidScroll_event).xOffset, (event as ScrollableCommonMethod_onDidScroll_event).yOffset, (event as ScrollableCommonMethod_onDidScroll_event).scrollState); break - case PeerEventKind.ScrollableCommonMethod_onReachStart: properties.ScrollableCommonMethod_onReachStart?.(); break - case PeerEventKind.ScrollableCommonMethod_onReachEnd: properties.ScrollableCommonMethod_onReachEnd?.(); break - case PeerEventKind.ScrollableCommonMethod_onScrollStart: properties.ScrollableCommonMethod_onScrollStart?.(); break - case PeerEventKind.ScrollableCommonMethod_onScrollStop: properties.ScrollableCommonMethod_onScrollStop?.(); break - case PeerEventKind.Counter_onInc: properties.Counter_onInc?.(); break - case PeerEventKind.Counter_onDec: properties.Counter_onDec?.(); break - case PeerEventKind.DatePicker_onChange: properties.DatePicker_onChange?.((event as DatePicker_onChange_event).value); break - case PeerEventKind.DatePicker_onDateChange: properties.DatePicker_onDateChange?.((event as DatePicker_onDateChange_event).parameter); break - case PeerEventKind.DatePicker__onChangeEvent_selected: properties.DatePicker__onChangeEvent_selected?.((event as DatePicker__onChangeEvent_selected_event).parameter); break - case PeerEventKind.EmbeddedComponent_onTerminated: properties.EmbeddedComponent_onTerminated?.((event as EmbeddedComponent_onTerminated_event).parameter); break - case PeerEventKind.EmbeddedComponent_onError: properties.EmbeddedComponent_onError?.((event as EmbeddedComponent_onError_event).err); break - case PeerEventKind.FolderStack_onFolderStateChange: properties.FolderStack_onFolderStateChange?.((event as FolderStack_onFolderStateChange_event).event); break - case PeerEventKind.FolderStack_onHoverStatusChange: properties.FolderStack_onHoverStatusChange?.((event as FolderStack_onHoverStatusChange_event).param); break - case PeerEventKind.FormComponent_onAcquired: properties.FormComponent_onAcquired?.((event as FormComponent_onAcquired_event).parameter); break - case PeerEventKind.FormComponent_onError: properties.FormComponent_onError?.((event as FormComponent_onError_event).info); break - case PeerEventKind.FormComponent_onRouter: properties.FormComponent_onRouter?.((event as FormComponent_onRouter_event).info); break - case PeerEventKind.FormComponent_onUninstall: properties.FormComponent_onUninstall?.((event as FormComponent_onUninstall_event).parameter); break - case PeerEventKind.FormComponent_onLoad: properties.FormComponent_onLoad?.(); break - case PeerEventKind.Gauge_description: properties.Gauge_description?.(); break - case PeerEventKind.Grid_onScrollBarUpdate: properties.Grid_onScrollBarUpdate?.((event as Grid_onScrollBarUpdate_event).index, (event as Grid_onScrollBarUpdate_event).offset); break - case PeerEventKind.Grid_onScrollIndex: properties.Grid_onScrollIndex?.((event as Grid_onScrollIndex_event).first, (event as Grid_onScrollIndex_event).last); break - case PeerEventKind.Grid_onItemDragStart: properties.Grid_onItemDragStart?.((event as Grid_onItemDragStart_event).event, (event as Grid_onItemDragStart_event).itemIndex); break - case PeerEventKind.Grid_onItemDragEnter: properties.Grid_onItemDragEnter?.((event as Grid_onItemDragEnter_event).event); break - case PeerEventKind.Grid_onItemDragMove: properties.Grid_onItemDragMove?.((event as Grid_onItemDragMove_event).event, (event as Grid_onItemDragMove_event).itemIndex, (event as Grid_onItemDragMove_event).insertIndex); break - case PeerEventKind.Grid_onItemDragLeave: properties.Grid_onItemDragLeave?.((event as Grid_onItemDragLeave_event).event, (event as Grid_onItemDragLeave_event).itemIndex); break - case PeerEventKind.Grid_onItemDrop: properties.Grid_onItemDrop?.((event as Grid_onItemDrop_event).event, (event as Grid_onItemDrop_event).itemIndex, (event as Grid_onItemDrop_event).insertIndex, (event as Grid_onItemDrop_event).isSuccess); break - case PeerEventKind.Grid_onScroll: properties.Grid_onScroll?.((event as Grid_onScroll_event).first, (event as Grid_onScroll_event).last); break - case PeerEventKind.Grid_onReachStart: properties.Grid_onReachStart?.(); break - case PeerEventKind.Grid_onReachEnd: properties.Grid_onReachEnd?.(); break - case PeerEventKind.Grid_onScrollStart: properties.Grid_onScrollStart?.(); break - case PeerEventKind.Grid_onScrollStop: properties.Grid_onScrollStop?.(); break - case PeerEventKind.Grid_onScrollFrameBegin: properties.Grid_onScrollFrameBegin?.((event as Grid_onScrollFrameBegin_event).offset, (event as Grid_onScrollFrameBegin_event).state); break - case PeerEventKind.GridItem_onSelect: properties.GridItem_onSelect?.((event as GridItem_onSelect_event).parameter); break - case PeerEventKind.GridItem__onChangeEvent_selected: properties.GridItem__onChangeEvent_selected?.((event as GridItem__onChangeEvent_selected_event).parameter); break - case PeerEventKind.GridRow_onBreakpointChange: properties.GridRow_onBreakpointChange?.((event as GridRow_onBreakpointChange_event).breakpoints); break - case PeerEventKind.Image_onComplete: properties.Image_onComplete?.((event as Image_onComplete_event).event); break - case PeerEventKind.Image_onError: properties.Image_onError?.((event as Image_onError_event).error); break - case PeerEventKind.Image_onFinish: properties.Image_onFinish?.(); break - case PeerEventKind.ImageAnimator_onStart: properties.ImageAnimator_onStart?.(); break - case PeerEventKind.ImageAnimator_onPause: properties.ImageAnimator_onPause?.(); break - case PeerEventKind.ImageAnimator_onRepeat: properties.ImageAnimator_onRepeat?.(); break - case PeerEventKind.ImageAnimator_onCancel: properties.ImageAnimator_onCancel?.(); break - case PeerEventKind.ImageAnimator_onFinish: properties.ImageAnimator_onFinish?.(); break - case PeerEventKind.ImageSpan_onComplete: properties.ImageSpan_onComplete?.((event as ImageSpan_onComplete_event).result); break - case PeerEventKind.ImageSpan_onError: properties.ImageSpan_onError?.((event as ImageSpan_onError_event).error); break - case PeerEventKind.List_onScroll: properties.List_onScroll?.((event as List_onScroll_event).first, (event as List_onScroll_event).last); break - case PeerEventKind.List_onScrollIndex: properties.List_onScrollIndex?.((event as List_onScrollIndex_event).start, (event as List_onScrollIndex_event).end, (event as List_onScrollIndex_event).center); break - case PeerEventKind.List_onScrollVisibleContentChange: properties.List_onScrollVisibleContentChange?.((event as List_onScrollVisibleContentChange_event).start, (event as List_onScrollVisibleContentChange_event).end); break - case PeerEventKind.List_onReachStart: properties.List_onReachStart?.(); break - case PeerEventKind.List_onReachEnd: properties.List_onReachEnd?.(); break - case PeerEventKind.List_onScrollStart: properties.List_onScrollStart?.(); break - case PeerEventKind.List_onScrollStop: properties.List_onScrollStop?.(); break - case PeerEventKind.List_onItemDelete: properties.List_onItemDelete?.((event as List_onItemDelete_event).index); break - case PeerEventKind.List_onItemMove: properties.List_onItemMove?.((event as List_onItemMove_event).from, (event as List_onItemMove_event).to); break - case PeerEventKind.List_onItemDragStart: properties.List_onItemDragStart?.((event as List_onItemDragStart_event).event, (event as List_onItemDragStart_event).itemIndex); break - case PeerEventKind.List_onItemDragEnter: properties.List_onItemDragEnter?.((event as List_onItemDragEnter_event).event); break - case PeerEventKind.List_onItemDragMove: properties.List_onItemDragMove?.((event as List_onItemDragMove_event).event, (event as List_onItemDragMove_event).itemIndex, (event as List_onItemDragMove_event).insertIndex); break - case PeerEventKind.List_onItemDragLeave: properties.List_onItemDragLeave?.((event as List_onItemDragLeave_event).event, (event as List_onItemDragLeave_event).itemIndex); break - case PeerEventKind.List_onItemDrop: properties.List_onItemDrop?.((event as List_onItemDrop_event).event, (event as List_onItemDrop_event).itemIndex, (event as List_onItemDrop_event).insertIndex, (event as List_onItemDrop_event).isSuccess); break - case PeerEventKind.List_onScrollFrameBegin: properties.List_onScrollFrameBegin?.((event as List_onScrollFrameBegin_event).offset, (event as List_onScrollFrameBegin_event).state); break - case PeerEventKind.ListItem_onSelect: properties.ListItem_onSelect?.((event as ListItem_onSelect_event).parameter); break - case PeerEventKind.ListItem__onChangeEvent_selected: properties.ListItem__onChangeEvent_selected?.((event as ListItem__onChangeEvent_selected_event).parameter); break - case PeerEventKind.LocationButton_onClick: properties.LocationButton_onClick?.((event as LocationButton_onClick_event).event, (event as LocationButton_onClick_event).result); break - case PeerEventKind.Marquee_onStart: properties.Marquee_onStart?.(); break - case PeerEventKind.Marquee_onBounce: properties.Marquee_onBounce?.(); break - case PeerEventKind.Marquee_onFinish: properties.Marquee_onFinish?.(); break - case PeerEventKind.MenuItem_onChange: properties.MenuItem_onChange?.((event as MenuItem_onChange_event).parameter); break - case PeerEventKind.MenuItem__onChangeEvent_selected: properties.MenuItem__onChangeEvent_selected?.((event as MenuItem__onChangeEvent_selected_event).parameter); break - case PeerEventKind.NavDestination_onShown: properties.NavDestination_onShown?.(); break - case PeerEventKind.NavDestination_onHidden: properties.NavDestination_onHidden?.(); break - case PeerEventKind.NavDestination_onBackPressed: properties.NavDestination_onBackPressed?.(); break - case PeerEventKind.NavDestination_onReady: properties.NavDestination_onReady?.((event as NavDestination_onReady_event).parameter); break - case PeerEventKind.NavDestination_onWillAppear: properties.NavDestination_onWillAppear?.(); break - case PeerEventKind.NavDestination_onWillDisappear: properties.NavDestination_onWillDisappear?.(); break - case PeerEventKind.NavDestination_onWillShow: properties.NavDestination_onWillShow?.(); break - case PeerEventKind.NavDestination_onWillHide: properties.NavDestination_onWillHide?.(); break - case PeerEventKind.NavRouter_onStateChange: properties.NavRouter_onStateChange?.((event as NavRouter_onStateChange_event).parameter); break - case PeerEventKind.Panel_onChange: properties.Panel_onChange?.((event as Panel_onChange_event).width, (event as Panel_onChange_event).height, (event as Panel_onChange_event).mode); break - case PeerEventKind.Panel_onHeightChange: properties.Panel_onHeightChange?.((event as Panel_onHeightChange_event).index); break - case PeerEventKind.Panel__onChangeEvent_mode: properties.Panel__onChangeEvent_mode?.((event as Panel__onChangeEvent_mode_event).mode); break - case PeerEventKind.PasteButton_onClick: properties.PasteButton_onClick?.((event as PasteButton_onClick_event).event, (event as PasteButton_onClick_event).result); break - case PeerEventKind.PatternLock_onPatternComplete: properties.PatternLock_onPatternComplete?.((event as PatternLock_onPatternComplete_event).input); break - case PeerEventKind.PatternLock_onDotConnect: properties.PatternLock_onDotConnect?.((event as PatternLock_onDotConnect_event).index); break - case PeerEventKind.PluginComponent_onComplete: properties.PluginComponent_onComplete?.(); break - case PeerEventKind.PluginComponent_onError: properties.PluginComponent_onError?.((event as PluginComponent_onError_event).info); break - case PeerEventKind.Radio_onChange: properties.Radio_onChange?.((event as Radio_onChange_event).parameter); break - case PeerEventKind.Radio__onChangeEvent_checked: properties.Radio__onChangeEvent_checked?.((event as Radio__onChangeEvent_checked_event).parameter); break - case PeerEventKind.Rating_onChange: properties.Rating_onChange?.((event as Rating_onChange_event).index); break - case PeerEventKind.Rating__onChangeEvent_rating: properties.Rating__onChangeEvent_rating?.((event as Rating__onChangeEvent_rating_event).index); break - case PeerEventKind.Refresh_onStateChange: properties.Refresh_onStateChange?.((event as Refresh_onStateChange_event).state); break - case PeerEventKind.Refresh_onRefreshing: properties.Refresh_onRefreshing?.(); break - case PeerEventKind.Refresh_onOffsetChange: properties.Refresh_onOffsetChange?.((event as Refresh_onOffsetChange_event).index); break - case PeerEventKind.Refresh__onChangeEvent_refreshing: properties.Refresh__onChangeEvent_refreshing?.((event as Refresh__onChangeEvent_refreshing_event).parameter); break - case PeerEventKind.RichEditor_onReady: properties.RichEditor_onReady?.(); break - case PeerEventKind.RichEditor_onSelect: properties.RichEditor_onSelect?.((event as RichEditor_onSelect_event).parameter); break - case PeerEventKind.RichEditor_onSelectionChange: properties.RichEditor_onSelectionChange?.((event as RichEditor_onSelectionChange_event).parameter); break - case PeerEventKind.RichEditor_aboutToIMEInput: properties.RichEditor_aboutToIMEInput?.((event as RichEditor_aboutToIMEInput_event).parameter); break - case PeerEventKind.RichEditor_onIMEInputComplete: properties.RichEditor_onIMEInputComplete?.((event as RichEditor_onIMEInputComplete_event).parameter); break - case PeerEventKind.RichEditor_onDidIMEInput: properties.RichEditor_onDidIMEInput?.((event as RichEditor_onDidIMEInput_event).parameter); break - case PeerEventKind.RichEditor_aboutToDelete: properties.RichEditor_aboutToDelete?.((event as RichEditor_aboutToDelete_event).parameter); break - case PeerEventKind.RichEditor_onDeleteComplete: properties.RichEditor_onDeleteComplete?.(); break - case PeerEventKind.RichEditor_onPaste: properties.RichEditor_onPaste?.((event as RichEditor_onPaste_event).event); break - case PeerEventKind.RichEditor_onEditingChange: properties.RichEditor_onEditingChange?.((event as RichEditor_onEditingChange_event).parameter); break - case PeerEventKind.RichEditor_onSubmit: properties.RichEditor_onSubmit?.((event as RichEditor_onSubmit_event).enterKey, (event as RichEditor_onSubmit_event).event); break - case PeerEventKind.RichEditor_onWillChange: properties.RichEditor_onWillChange?.((event as RichEditor_onWillChange_event).parameter); break - case PeerEventKind.RichEditor_onDidChange: properties.RichEditor_onDidChange?.((event as RichEditor_onDidChange_event).rangeBefore, (event as RichEditor_onDidChange_event).rangeAfter); break - case PeerEventKind.RichEditor_onCut: properties.RichEditor_onCut?.((event as RichEditor_onCut_event).parameter); break - case PeerEventKind.RichEditor_onCopy: properties.RichEditor_onCopy?.((event as RichEditor_onCopy_event).parameter); break - case PeerEventKind.RichEditor_bindSelectionMenu: properties.RichEditor_bindSelectionMenu?.(); break - case PeerEventKind.RichEditor_customKeyboard: properties.RichEditor_customKeyboard?.(); break - case PeerEventKind.RichText_onStart: properties.RichText_onStart?.(); break - case PeerEventKind.RichText_onComplete: properties.RichText_onComplete?.(); break - case PeerEventKind.SaveButton_onClick: properties.SaveButton_onClick?.((event as SaveButton_onClick_event).event, (event as SaveButton_onClick_event).result); break - case PeerEventKind.Scroll_onScroll: properties.Scroll_onScroll?.((event as Scroll_onScroll_event).first, (event as Scroll_onScroll_event).last); break - case PeerEventKind.Scroll_onDidScroll: properties.Scroll_onDidScroll?.((event as Scroll_onDidScroll_event).xOffset, (event as Scroll_onDidScroll_event).yOffset, (event as Scroll_onDidScroll_event).scrollState); break - case PeerEventKind.Scroll_onScrollEdge: properties.Scroll_onScrollEdge?.((event as Scroll_onScrollEdge_event).side); break - case PeerEventKind.Scroll_onScrollStart: properties.Scroll_onScrollStart?.(); break - case PeerEventKind.Scroll_onScrollEnd: properties.Scroll_onScrollEnd?.(); break - case PeerEventKind.Scroll_onScrollStop: properties.Scroll_onScrollStop?.(); break - case PeerEventKind.Scroll_onScrollFrameBegin: properties.Scroll_onScrollFrameBegin?.((event as Scroll_onScrollFrameBegin_event).offset, (event as Scroll_onScrollFrameBegin_event).state); break - case PeerEventKind.Search_onEditChange: properties.Search_onEditChange?.((event as Search_onEditChange_event).parameter); break - case PeerEventKind.Search_onSubmit0: properties.Search_onSubmit0?.((event as Search_onSubmit0_event).breakpoints); break - case PeerEventKind.Search_onSubmit1: properties.Search_onSubmit1?.((event as Search_onSubmit1_event).searchContent, (event as Search_onSubmit1_event).event); break - case PeerEventKind.Search_onChange: properties.Search_onChange?.((event as Search_onChange_event).value, (event as Search_onChange_event).previewText); break - case PeerEventKind.Search_onTextSelectionChange: properties.Search_onTextSelectionChange?.((event as Search_onTextSelectionChange_event).selectionStart, (event as Search_onTextSelectionChange_event).selectionEnd); break - case PeerEventKind.Search_onContentScroll: properties.Search_onContentScroll?.((event as Search_onContentScroll_event).totalOffsetX, (event as Search_onContentScroll_event).totalOffsetY); break - case PeerEventKind.Search_onCopy: properties.Search_onCopy?.((event as Search_onCopy_event).breakpoints); break - case PeerEventKind.Search_onCut: properties.Search_onCut?.((event as Search_onCut_event).breakpoints); break - case PeerEventKind.Search_onPaste: properties.Search_onPaste?.((event as Search_onPaste_event).content, (event as Search_onPaste_event).event); break - case PeerEventKind.Search_onWillInsert: properties.Search_onWillInsert?.((event as Search_onWillInsert_event).parameter); break - case PeerEventKind.Search_onDidInsert: properties.Search_onDidInsert?.((event as Search_onDidInsert_event).parameter); break - case PeerEventKind.Search_onWillDelete: properties.Search_onWillDelete?.((event as Search_onWillDelete_event).parameter); break - case PeerEventKind.Search_onDidDelete: properties.Search_onDidDelete?.((event as Search_onDidDelete_event).parameter); break - case PeerEventKind.Search_customKeyboard: properties.Search_customKeyboard?.(); break - case PeerEventKind.Search__onChangeEvent_value: properties.Search__onChangeEvent_value?.((event as Search__onChangeEvent_value_event).breakpoints); break - case PeerEventKind.Select_onSelect: properties.Select_onSelect?.((event as Select_onSelect_event).index, (event as Select_onSelect_event).value); break - case PeerEventKind.Select__onChangeEvent_selected: properties.Select__onChangeEvent_selected?.((event as Select__onChangeEvent_selected_event).selected); break - case PeerEventKind.Select__onChangeEvent_value: properties.Select__onChangeEvent_value?.((event as Select__onChangeEvent_value_event).value); break - case PeerEventKind.Slider_onChange: properties.Slider_onChange?.((event as Slider_onChange_event).value, (event as Slider_onChange_event).mode); break - case PeerEventKind.Slider__onChangeEvent_value: properties.Slider__onChangeEvent_value?.((event as Slider__onChangeEvent_value_event).index); break - case PeerEventKind.Stepper_onFinish: properties.Stepper_onFinish?.(); break - case PeerEventKind.Stepper_onSkip: properties.Stepper_onSkip?.(); break - case PeerEventKind.Stepper_onChange: properties.Stepper_onChange?.((event as Stepper_onChange_event).first, (event as Stepper_onChange_event).last); break - case PeerEventKind.Stepper_onNext: properties.Stepper_onNext?.((event as Stepper_onNext_event).first, (event as Stepper_onNext_event).last); break - case PeerEventKind.Stepper_onPrevious: properties.Stepper_onPrevious?.((event as Stepper_onPrevious_event).first, (event as Stepper_onPrevious_event).last); break - case PeerEventKind.Stepper__onChangeEvent_index: properties.Stepper__onChangeEvent_index?.((event as Stepper__onChangeEvent_index_event).index); break - case PeerEventKind.Swiper_onChange: properties.Swiper_onChange?.((event as Swiper_onChange_event).index); break - case PeerEventKind.Swiper_onAnimationStart: properties.Swiper_onAnimationStart?.((event as Swiper_onAnimationStart_event).index, (event as Swiper_onAnimationStart_event).targetIndex, (event as Swiper_onAnimationStart_event).extraInfo); break - case PeerEventKind.Swiper_onAnimationEnd: properties.Swiper_onAnimationEnd?.((event as Swiper_onAnimationEnd_event).index, (event as Swiper_onAnimationEnd_event).extraInfo); break - case PeerEventKind.Swiper_onGestureSwipe: properties.Swiper_onGestureSwipe?.((event as Swiper_onGestureSwipe_event).index, (event as Swiper_onGestureSwipe_event).extraInfo); break - case PeerEventKind.Swiper_onContentDidScroll: properties.Swiper_onContentDidScroll?.((event as Swiper_onContentDidScroll_event).selectedIndex, (event as Swiper_onContentDidScroll_event).index, (event as Swiper_onContentDidScroll_event).position, (event as Swiper_onContentDidScroll_event).mainAxisLength); break - case PeerEventKind.Swiper__onChangeEvent_index: properties.Swiper__onChangeEvent_index?.((event as Swiper__onChangeEvent_index_event).index); break - case PeerEventKind.IndicatorComponent_onChange: properties.IndicatorComponent_onChange?.((event as IndicatorComponent_onChange_event).index); break - case PeerEventKind.Tabs_onChange: properties.Tabs_onChange?.((event as Tabs_onChange_event).index); break - case PeerEventKind.Tabs_onTabBarClick: properties.Tabs_onTabBarClick?.((event as Tabs_onTabBarClick_event).index); break - case PeerEventKind.Tabs_onAnimationStart: properties.Tabs_onAnimationStart?.((event as Tabs_onAnimationStart_event).index, (event as Tabs_onAnimationStart_event).targetIndex, (event as Tabs_onAnimationStart_event).extraInfo); break - case PeerEventKind.Tabs_onAnimationEnd: properties.Tabs_onAnimationEnd?.((event as Tabs_onAnimationEnd_event).index, (event as Tabs_onAnimationEnd_event).extraInfo); break - case PeerEventKind.Tabs_onGestureSwipe: properties.Tabs_onGestureSwipe?.((event as Tabs_onGestureSwipe_event).index, (event as Tabs_onGestureSwipe_event).extraInfo); break - case PeerEventKind.Tabs_customContentTransition: properties.Tabs_customContentTransition?.((event as Tabs_customContentTransition_event).from, (event as Tabs_customContentTransition_event).to); break - case PeerEventKind.Tabs_onContentWillChange: properties.Tabs_onContentWillChange?.((event as Tabs_onContentWillChange_event).currentIndex, (event as Tabs_onContentWillChange_event).comingIndex); break - case PeerEventKind.Tabs__onChangeEvent_index: properties.Tabs__onChangeEvent_index?.((event as Tabs__onChangeEvent_index_event).index); break - case PeerEventKind.TabContent_onWillShow: properties.TabContent_onWillShow?.(); break - case PeerEventKind.TabContent_onWillHide: properties.TabContent_onWillHide?.(); break - case PeerEventKind.Text_onCopy: properties.Text_onCopy?.((event as Text_onCopy_event).breakpoints); break - case PeerEventKind.Text_onTextSelectionChange: properties.Text_onTextSelectionChange?.((event as Text_onTextSelectionChange_event).first, (event as Text_onTextSelectionChange_event).last); break - case PeerEventKind.Text_bindSelectionMenu: properties.Text_bindSelectionMenu?.(); break - case PeerEventKind.TextArea_onSubmit0: properties.TextArea_onSubmit0?.((event as TextArea_onSubmit0_event).enterKey); break - case PeerEventKind.TextArea_onSubmit1: properties.TextArea_onSubmit1?.((event as TextArea_onSubmit1_event).enterKeyType, (event as TextArea_onSubmit1_event).event); break - case PeerEventKind.TextArea_onChange: properties.TextArea_onChange?.((event as TextArea_onChange_event).value, (event as TextArea_onChange_event).previewText); break - case PeerEventKind.TextArea_onTextSelectionChange: properties.TextArea_onTextSelectionChange?.((event as TextArea_onTextSelectionChange_event).first, (event as TextArea_onTextSelectionChange_event).last); break - case PeerEventKind.TextArea_onContentScroll: properties.TextArea_onContentScroll?.((event as TextArea_onContentScroll_event).first, (event as TextArea_onContentScroll_event).last); break - case PeerEventKind.TextArea_onEditChange: properties.TextArea_onEditChange?.((event as TextArea_onEditChange_event).parameter); break - case PeerEventKind.TextArea_onCopy: properties.TextArea_onCopy?.((event as TextArea_onCopy_event).breakpoints); break - case PeerEventKind.TextArea_onCut: properties.TextArea_onCut?.((event as TextArea_onCut_event).breakpoints); break - case PeerEventKind.TextArea_onPaste: properties.TextArea_onPaste?.((event as TextArea_onPaste_event).value, (event as TextArea_onPaste_event).event); break - case PeerEventKind.TextArea_onWillInsert: properties.TextArea_onWillInsert?.((event as TextArea_onWillInsert_event).parameter); break - case PeerEventKind.TextArea_onDidInsert: properties.TextArea_onDidInsert?.((event as TextArea_onDidInsert_event).parameter); break - case PeerEventKind.TextArea_onWillDelete: properties.TextArea_onWillDelete?.((event as TextArea_onWillDelete_event).parameter); break - case PeerEventKind.TextArea_onDidDelete: properties.TextArea_onDidDelete?.((event as TextArea_onDidDelete_event).parameter); break - case PeerEventKind.TextArea_customKeyboard: properties.TextArea_customKeyboard?.(); break - case PeerEventKind.TextArea__onChangeEvent_text: properties.TextArea__onChangeEvent_text?.((event as TextArea__onChangeEvent_text_event).value); break - case PeerEventKind.TextClock_onDateChange: properties.TextClock_onDateChange?.((event as TextClock_onDateChange_event).index); break - case PeerEventKind.TextInput_onEditChanged: properties.TextInput_onEditChanged?.((event as TextInput_onEditChanged_event).parameter); break - case PeerEventKind.TextInput_onEditChange: properties.TextInput_onEditChange?.((event as TextInput_onEditChange_event).parameter); break - case PeerEventKind.TextInput_onSubmit: properties.TextInput_onSubmit?.((event as TextInput_onSubmit_event).enterKey, (event as TextInput_onSubmit_event).event); break - case PeerEventKind.TextInput_onChange: properties.TextInput_onChange?.((event as TextInput_onChange_event).value, (event as TextInput_onChange_event).previewText); break - case PeerEventKind.TextInput_onTextSelectionChange: properties.TextInput_onTextSelectionChange?.((event as TextInput_onTextSelectionChange_event).selectionStart, (event as TextInput_onTextSelectionChange_event).selectionEnd); break - case PeerEventKind.TextInput_onContentScroll: properties.TextInput_onContentScroll?.((event as TextInput_onContentScroll_event).totalOffsetX, (event as TextInput_onContentScroll_event).totalOffsetY); break - case PeerEventKind.TextInput_onCopy: properties.TextInput_onCopy?.((event as TextInput_onCopy_event).breakpoints); break - case PeerEventKind.TextInput_onCut: properties.TextInput_onCut?.((event as TextInput_onCut_event).breakpoints); break - case PeerEventKind.TextInput_onPaste: properties.TextInput_onPaste?.((event as TextInput_onPaste_event).content, (event as TextInput_onPaste_event).event); break - case PeerEventKind.TextInput_showUnit: properties.TextInput_showUnit?.(); break - case PeerEventKind.TextInput_onSecurityStateChange: properties.TextInput_onSecurityStateChange?.((event as TextInput_onSecurityStateChange_event).parameter); break - case PeerEventKind.TextInput_onWillInsert: properties.TextInput_onWillInsert?.((event as TextInput_onWillInsert_event).parameter); break - case PeerEventKind.TextInput_onDidInsert: properties.TextInput_onDidInsert?.((event as TextInput_onDidInsert_event).parameter); break - case PeerEventKind.TextInput_onWillDelete: properties.TextInput_onWillDelete?.((event as TextInput_onWillDelete_event).parameter); break - case PeerEventKind.TextInput_onDidDelete: properties.TextInput_onDidDelete?.((event as TextInput_onDidDelete_event).parameter); break - case PeerEventKind.TextInput_customKeyboard: properties.TextInput_customKeyboard?.(); break - case PeerEventKind.TextInput__onChangeEvent_text: properties.TextInput__onChangeEvent_text?.((event as TextInput__onChangeEvent_text_event).value); break - case PeerEventKind.TextPicker_onAccept: properties.TextPicker_onAccept?.((event as TextPicker_onAccept_event).value, (event as TextPicker_onAccept_event).index); break - case PeerEventKind.TextPicker_onCancel: properties.TextPicker_onCancel?.(); break - case PeerEventKind.TextPicker_onChange: properties.TextPicker_onChange?.((event as TextPicker_onChange_event).value, (event as TextPicker_onChange_event).index); break - case PeerEventKind.TextPicker__onChangeEvent_selected: properties.TextPicker__onChangeEvent_selected?.((event as TextPicker__onChangeEvent_selected_event).selected); break - case PeerEventKind.TextPicker__onChangeEvent_value: properties.TextPicker__onChangeEvent_value?.((event as TextPicker__onChangeEvent_value_event).value); break - case PeerEventKind.TextTimer_onTimer: properties.TextTimer_onTimer?.((event as TextTimer_onTimer_event).first, (event as TextTimer_onTimer_event).last); break - case PeerEventKind.TimePicker_onChange: properties.TimePicker_onChange?.((event as TimePicker_onChange_event).value); break - case PeerEventKind.TimePicker__onChangeEvent_selected: properties.TimePicker__onChangeEvent_selected?.((event as TimePicker__onChangeEvent_selected_event).parameter); break - case PeerEventKind.Toggle_onChange: properties.Toggle_onChange?.((event as Toggle_onChange_event).parameter); break - case PeerEventKind.Toggle__onChangeEvent_isOn: properties.Toggle__onChangeEvent_isOn?.((event as Toggle__onChangeEvent_isOn_event).parameter); break - case PeerEventKind.Video_onStart: properties.Video_onStart?.(); break - case PeerEventKind.Video_onPause: properties.Video_onPause?.(); break - case PeerEventKind.Video_onFinish: properties.Video_onFinish?.(); break - case PeerEventKind.Video_onFullscreenChange: properties.Video_onFullscreenChange?.((event as Video_onFullscreenChange_event).parameter); break - case PeerEventKind.Video_onPrepared: properties.Video_onPrepared?.((event as Video_onPrepared_event).parameter); break - case PeerEventKind.Video_onSeeking: properties.Video_onSeeking?.((event as Video_onSeeking_event).parameter); break - case PeerEventKind.Video_onSeeked: properties.Video_onSeeked?.((event as Video_onSeeked_event).parameter); break - case PeerEventKind.Video_onUpdate: properties.Video_onUpdate?.((event as Video_onUpdate_event).parameter); break - case PeerEventKind.Video_onError: properties.Video_onError?.(); break - case PeerEventKind.Video_onStop: properties.Video_onStop?.(); break - case PeerEventKind.Web_onPageEnd: properties.Web_onPageEnd?.((event as Web_onPageEnd_event).parameter); break - case PeerEventKind.Web_onPageBegin: properties.Web_onPageBegin?.((event as Web_onPageBegin_event).parameter); break - case PeerEventKind.Web_onProgressChange: properties.Web_onProgressChange?.((event as Web_onProgressChange_event).parameter); break - case PeerEventKind.Web_onTitleReceive: properties.Web_onTitleReceive?.((event as Web_onTitleReceive_event).parameter); break - case PeerEventKind.Web_onGeolocationHide: properties.Web_onGeolocationHide?.(); break - case PeerEventKind.Web_onGeolocationShow: properties.Web_onGeolocationShow?.((event as Web_onGeolocationShow_event).parameter); break - case PeerEventKind.Web_onRequestSelected: properties.Web_onRequestSelected?.(); break - case PeerEventKind.Web_onAlert: properties.Web_onAlert?.((event as Web_onAlert_event).parameter); break - case PeerEventKind.Web_onBeforeUnload: properties.Web_onBeforeUnload?.((event as Web_onBeforeUnload_event).parameter); break - case PeerEventKind.Web_onConfirm: properties.Web_onConfirm?.((event as Web_onConfirm_event).parameter); break - case PeerEventKind.Web_onPrompt: properties.Web_onPrompt?.((event as Web_onPrompt_event).parameter); break - case PeerEventKind.Web_onConsole: properties.Web_onConsole?.((event as Web_onConsole_event).parameter); break - case PeerEventKind.Web_onErrorReceive: properties.Web_onErrorReceive?.((event as Web_onErrorReceive_event).parameter); break - case PeerEventKind.Web_onHttpErrorReceive: properties.Web_onHttpErrorReceive?.((event as Web_onHttpErrorReceive_event).parameter); break - case PeerEventKind.Web_onDownloadStart: properties.Web_onDownloadStart?.((event as Web_onDownloadStart_event).parameter); break - case PeerEventKind.Web_onRefreshAccessedHistory: properties.Web_onRefreshAccessedHistory?.((event as Web_onRefreshAccessedHistory_event).parameter); break - case PeerEventKind.Web_onUrlLoadIntercept: properties.Web_onUrlLoadIntercept?.((event as Web_onUrlLoadIntercept_event).event); break - case PeerEventKind.Web_onSslErrorReceive: properties.Web_onSslErrorReceive?.((event as Web_onSslErrorReceive_event).event); break - case PeerEventKind.Web_onRenderExited0: properties.Web_onRenderExited0?.((event as Web_onRenderExited0_event).parameter); break - case PeerEventKind.Web_onRenderExited1: properties.Web_onRenderExited1?.((event as Web_onRenderExited1_event).event); break - case PeerEventKind.Web_onShowFileSelector: properties.Web_onShowFileSelector?.((event as Web_onShowFileSelector_event).parameter); break - case PeerEventKind.Web_onFileSelectorShow: properties.Web_onFileSelectorShow?.((event as Web_onFileSelectorShow_event).event); break - case PeerEventKind.Web_onResourceLoad: properties.Web_onResourceLoad?.((event as Web_onResourceLoad_event).parameter); break - case PeerEventKind.Web_onFullScreenExit: properties.Web_onFullScreenExit?.(); break - case PeerEventKind.Web_onFullScreenEnter: properties.Web_onFullScreenEnter?.((event as Web_onFullScreenEnter_event).event); break - case PeerEventKind.Web_onScaleChange: properties.Web_onScaleChange?.((event as Web_onScaleChange_event).parameter); break - case PeerEventKind.Web_onHttpAuthRequest: properties.Web_onHttpAuthRequest?.((event as Web_onHttpAuthRequest_event).parameter); break - case PeerEventKind.Web_onInterceptRequest: properties.Web_onInterceptRequest?.((event as Web_onInterceptRequest_event).parameter); break - case PeerEventKind.Web_onPermissionRequest: properties.Web_onPermissionRequest?.((event as Web_onPermissionRequest_event).parameter); break - case PeerEventKind.Web_onScreenCaptureRequest: properties.Web_onScreenCaptureRequest?.((event as Web_onScreenCaptureRequest_event).parameter); break - case PeerEventKind.Web_onContextMenuShow: properties.Web_onContextMenuShow?.((event as Web_onContextMenuShow_event).parameter); break - case PeerEventKind.Web_onContextMenuHide: properties.Web_onContextMenuHide?.(); break - case PeerEventKind.Web_onSearchResultReceive: properties.Web_onSearchResultReceive?.((event as Web_onSearchResultReceive_event).parameter); break - case PeerEventKind.Web_onScroll: properties.Web_onScroll?.((event as Web_onScroll_event).parameter); break - case PeerEventKind.Web_onSslErrorEventReceive: properties.Web_onSslErrorEventReceive?.((event as Web_onSslErrorEventReceive_event).parameter); break - case PeerEventKind.Web_onSslErrorEvent: properties.Web_onSslErrorEvent?.((event as Web_onSslErrorEvent_event).sslErrorEvent); break - case PeerEventKind.Web_onClientAuthenticationRequest: properties.Web_onClientAuthenticationRequest?.((event as Web_onClientAuthenticationRequest_event).parameter); break - case PeerEventKind.Web_onWindowNew: properties.Web_onWindowNew?.((event as Web_onWindowNew_event).parameter); break - case PeerEventKind.Web_onWindowExit: properties.Web_onWindowExit?.(); break - case PeerEventKind.Web_onInterceptKeyEvent: properties.Web_onInterceptKeyEvent?.((event as Web_onInterceptKeyEvent_event).parameter); break - case PeerEventKind.Web_onTouchIconUrlReceived: properties.Web_onTouchIconUrlReceived?.((event as Web_onTouchIconUrlReceived_event).parameter); break - case PeerEventKind.Web_onFaviconReceived: properties.Web_onFaviconReceived?.((event as Web_onFaviconReceived_event).parameter); break - case PeerEventKind.Web_onPageVisible: properties.Web_onPageVisible?.((event as Web_onPageVisible_event).parameter); break - case PeerEventKind.Web_onDataResubmitted: properties.Web_onDataResubmitted?.((event as Web_onDataResubmitted_event).parameter); break - case PeerEventKind.Web_onAudioStateChanged: properties.Web_onAudioStateChanged?.((event as Web_onAudioStateChanged_event).parameter); break - case PeerEventKind.Web_onFirstContentfulPaint: properties.Web_onFirstContentfulPaint?.((event as Web_onFirstContentfulPaint_event).parameter); break - case PeerEventKind.Web_onFirstMeaningfulPaint: properties.Web_onFirstMeaningfulPaint?.((event as Web_onFirstMeaningfulPaint_event).firstMeaningfulPaint); break - case PeerEventKind.Web_onLargestContentfulPaint: properties.Web_onLargestContentfulPaint?.((event as Web_onLargestContentfulPaint_event).largestContentfulPaint); break - case PeerEventKind.Web_onLoadIntercept: properties.Web_onLoadIntercept?.((event as Web_onLoadIntercept_event).parameter); break - case PeerEventKind.Web_onControllerAttached: properties.Web_onControllerAttached?.(); break - case PeerEventKind.Web_onOverScroll: properties.Web_onOverScroll?.((event as Web_onOverScroll_event).parameter); break - case PeerEventKind.Web_onSafeBrowsingCheckResult: properties.Web_onSafeBrowsingCheckResult?.((event as Web_onSafeBrowsingCheckResult_event).threatType); break - case PeerEventKind.Web_onNavigationEntryCommitted: properties.Web_onNavigationEntryCommitted?.((event as Web_onNavigationEntryCommitted_event).loadCommittedDetails); break - case PeerEventKind.Web_onIntelligentTrackingPreventionResult: properties.Web_onIntelligentTrackingPreventionResult?.((event as Web_onIntelligentTrackingPreventionResult_event).details); break - case PeerEventKind.Web_onNativeEmbedLifecycleChange: properties.Web_onNativeEmbedLifecycleChange?.((event as Web_onNativeEmbedLifecycleChange_event).event); break - case PeerEventKind.Web_onNativeEmbedVisibilityChange: properties.Web_onNativeEmbedVisibilityChange?.((event as Web_onNativeEmbedVisibilityChange_event).nativeEmbedVisibilityInfo); break - case PeerEventKind.Web_onNativeEmbedGestureEvent: properties.Web_onNativeEmbedGestureEvent?.((event as Web_onNativeEmbedGestureEvent_event).event); break - case PeerEventKind.Web_onOverrideUrlLoading: properties.Web_onOverrideUrlLoading?.((event as Web_onOverrideUrlLoading_event).webResourceRequest); break - case PeerEventKind.Web_onRenderProcessNotResponding: properties.Web_onRenderProcessNotResponding?.((event as Web_onRenderProcessNotResponding_event).data); break - case PeerEventKind.Web_onRenderProcessResponding: properties.Web_onRenderProcessResponding?.(); break - case PeerEventKind.Web_onViewportFitChanged: properties.Web_onViewportFitChanged?.((event as Web_onViewportFitChanged_event).viewportFit); break - case PeerEventKind.Web_onInterceptKeyboardAttach: properties.Web_onInterceptKeyboardAttach?.((event as Web_onInterceptKeyboardAttach_event).keyboardCallbackInfo); break - case PeerEventKind.Web_onAdsBlocked: properties.Web_onAdsBlocked?.((event as Web_onAdsBlocked_event).details); break - case PeerEventKind.Web_bindSelectionMenu: properties.Web_bindSelectionMenu?.(); break - case PeerEventKind.XComponent_onLoad: properties.XComponent_onLoad?.((event as XComponent_onLoad_event).event); break - case PeerEventKind.XComponent_onDestroy: properties.XComponent_onDestroy?.(); break - case PeerEventKind.SideBarContainer_onChange: properties.SideBarContainer_onChange?.((event as SideBarContainer_onChange_event).parameter); break - case PeerEventKind.SideBarContainer__onChangeEvent_showSideBar: properties.SideBarContainer__onChangeEvent_showSideBar?.((event as SideBarContainer__onChangeEvent_showSideBar_event).parameter); break - case PeerEventKind.WaterFlow_onReachStart: properties.WaterFlow_onReachStart?.(); break - case PeerEventKind.WaterFlow_onReachEnd: properties.WaterFlow_onReachEnd?.(); break - case PeerEventKind.WaterFlow_onScrollFrameBegin: properties.WaterFlow_onScrollFrameBegin?.((event as WaterFlow_onScrollFrameBegin_event).offset, (event as WaterFlow_onScrollFrameBegin_event).state); break - case PeerEventKind.WaterFlow_onScrollIndex: properties.WaterFlow_onScrollIndex?.((event as WaterFlow_onScrollIndex_event).first, (event as WaterFlow_onScrollIndex_event).last); break - case PeerEventKind.UIExtensionComponent_onRemoteReady: properties.UIExtensionComponent_onRemoteReady?.((event as UIExtensionComponent_onRemoteReady_event).parameter); break - case PeerEventKind.UIExtensionComponent_onResult: properties.UIExtensionComponent_onResult?.((event as UIExtensionComponent_onResult_event).parameter); break - case PeerEventKind.UIExtensionComponent_onRelease: properties.UIExtensionComponent_onRelease?.((event as UIExtensionComponent_onRelease_event).index); break - case PeerEventKind.UIExtensionComponent_onError: properties.UIExtensionComponent_onError?.((event as UIExtensionComponent_onError_event).err); break - case PeerEventKind.UIExtensionComponent_onTerminated: properties.UIExtensionComponent_onTerminated?.((event as UIExtensionComponent_onTerminated_event).parameter); break - default: throw new Error(`Unknown kind ${event.kind}`) - } -} \ No newline at end of file diff --git a/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index 8e76d8cd11a38c6fd012ee73f7c261a1c0c8e685..e2e667058cc1b87695b342a6b6410afddee45700 100644 --- a/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts b/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index f8c620b34aabe5eedd0f05d6996c1d7d66dd920f..a3d0750c7ac42f9c348b2fedeab9d8aaf844ae7f 100644 --- a/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts index a91d07a981ed9ec7773e026cf74aaf523b8a4a43..8fd94fb8eec0fb0fa07be7df6f692fd44251518f 100644 --- a/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts b/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts index abb5084c723b817528a36cf64f9a7ec4a9a94dfa..512616458319a51adbdb9373882f30e1b7ba2ab4 100644 --- a/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts b/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts index 44e3ee643a78b93682b448584666a290c250fc8c..1afb846f5cd5ce08a75977a48b56d65ac179c014 100644 --- a/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts index bbd73306fd8e6268e6a0f2286f7508806cdd228d..ad894949dbadf9552fb63b42c644d7658d868ba9 100644 --- a/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts b/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts index 71270cb5f409e5a0245da86f2da04157382ee3e2..e43c7e15f186e7becae51cfc1edbcf2f36ed82bf 100644 --- a/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Axis } from "./../ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute, CalendarDay } from "./../ArkCalendarInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index d3af4194fc28ee196a30d1286891f98ccff9a367..509d3f8686f0f248f3b63ae1388bf4b57991fcc0 100644 --- a/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts b/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts index a62925777b25c7bb0df3d6a5eb6a80ff632ca5f6..c3f918893a1fee8aadde2c0bfa5c073c1e9a5bab 100644 --- a/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts b/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts index f882ff4a1b77ec40c79e37479ef49e88aaa02691..a695feb868d7ec62cc867da0bcc3f71f29c933cd 100644 --- a/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index cbfcedd9770cdea538462dc125e41bfd8f84eabc..707f7efddaafdd7a11bf023a078c2f87c32baddb 100644 --- a/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts b/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts index e7471fe6598b79cfea5fd93bec55814680204eda..d301c139b64d66543434e1036d1841a37d9314a4 100644 --- a/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts b/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts index d2fd3295f8632b8a9ccf0f2c12d54f8b2ddc3d5a..082179c09e364df3b702289f7dc545d6b6008b38 100644 --- a/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts b/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts index f696c914186c530bc52764568f8d0dba36625c91..aaffbb52ca61b206a902ea9d7ac28c6228c65657 100644 --- a/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts index 61c5c659915d78a89deac3849d80f9dee371743f..60a25d3d390054f08f8d0ba2f45d42fb6f4a0d66 100644 --- a/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./../ArkUnitsInterfaces" import { DrawModifier } from "./../ArkDrawModifierMaterialized" @@ -189,7 +191,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("right")) || (value!.hasOwnProperty("left"))))) { + if (isPadding(value)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) const value_0_top = value_0.top @@ -242,7 +244,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("right")) || (value!.hasOwnProperty("left"))))) { + if (isPadding(value)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) const value_0_top = value_0.top @@ -295,7 +297,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("right")) || (value!.hasOwnProperty("left"))))) { + if (isPadding(value)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) const value_0_top = value_0.top diff --git a/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts b/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts index 1025d5efe8549202845560916493f1b285d3e075..1add2fe83ecfbd3a35c31e34a41d50b6cabc190d 100644 --- a/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts index 76adffd25bcc9d55f208d4589a60c4de87923c38..69900e502f51b610295f75d0596f530a96e2522b 100644 --- a/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { AttributeModifier } from "./../../handwritten" diff --git a/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts b/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts index a6b8e02564afa6a30c2db44129daee99053169fe..6104fd7ba2a6304d1b8b30026e18cd23e2a9a719 100644 --- a/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts b/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts index 7f8f958d839b137ece26ff9a0cca68929fd6359d..acaad6aa73eaaccf211630c73a5ab4b316564416 100644 --- a/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts index 73bf7ff1ad957f8e8059c36634c25e332910b01b..ba7cee2ba03f9693e6bed3a126d4b8d2d39db0a6 100644 --- a/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts b/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts index 6a0aba87aac7e67cbbe035efb19555dfc0ca7957..9acbf3a7b9cc540534464f239c88d7dbce6edf8c 100644 --- a/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts index 02c67c3c59747b0142945aeec62c0ac5d772937e..52006818792f063cd782fc90f77b0677fc84bce1 100644 --- a/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts b/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts index 941fd1b3ea69d990d397475183b14369a8acba35..9ccaec435c6b6fb85d7a5fb2d8be717134dad75f 100644 --- a/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index dfc503bd21aee72c6ce2d7472c91ee2f0cbe2dd5..6aebb94cb6e7031482a02a9470ac656a1ad2208a 100644 --- a/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts b/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts index c06988ed8de2eeeaeb04520a6463709d071b55a0..35b91a0584f29fa52abed80e35d66dc41178053e 100644 --- a/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts index 298be02e4b3b38d2a7b9a66408d973ee8e1961c8..23c3ded85805703b95bd8e968b8fce5ea49a1671 100644 --- a/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts b/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts index 6399716c57ee6acfdfed0f6c89217dc39f8a86e7..c44cd29df158864c3325f97af5e37ae62c76d80a 100644 --- a/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts index 7eda5cd67f244d332de3c5d613f295cc4011efc4..90ac918a4d2019979226caee5263218e64c53dff 100644 --- a/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts b/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts index a2b8364f18656bb98615bade12791e828e0bfd6b..6a5e9a85fe4d53754685fd096ece5212ae2db0cb 100644 --- a/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts b/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts index 182b0174392ca4d26ac9773cabb8ed853cf7e50f..c3a7c28e1983dfb2537f3bbb7b6aa403f470e508 100644 --- a/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts index 8a784588d776093a711feabeef8c59b0b063a45b..0d46476134f3ff2b4d52cd5dbc1cb2c0c4ee5b84 100644 --- a/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts index d6f381d3eb3242181cd0a717b40970240ea1330a..571ee4b9cb930de93189ee300788d0ba1ebef69a 100644 --- a/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkColumnPeer, ArkColumnAttributes } from "./ArkColumnPeer" import { ColumnAttribute } from "./../ArkColumnInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts index 04ec69e84087530ef1e171a3fe7a104c84a34acd..6d8a6cb95b42156b66530c5377ba2673f73ef990 100644 --- a/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkGridPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridPeer.ts index c37fbfc87f3fe97a8e93c060f3d265ce9cfa28d3..9fee3a3f8e8b559939d412e34b6cf7c2bce33f2b 100644 --- a/arkoala/arkui/src/generated/peers/ArkGridPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts index 190c9cee412640805bf5ffb47757151221f07ec6..30ed73731544e707e9dc1cb5d5970d9fd51522de 100644 --- a/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts b/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts index 6845cf3242938fbf2feeed2998181cb37b3fbd0d..5822bd021902d2314c97c8b4b97f564387243382 100644 --- a/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index ce97dae05081f25b1612e39c131dd6fa2fd6ef3c..8c4f8423f3fd1015cadfdd014534886934553e36 100644 --- a/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkImagePeer.ts b/arkoala/arkui/src/generated/peers/ArkImagePeer.ts index 6c81415f3425bbe02091b0309696878049a2a084..642ab8a7c9775b80b49734fe9f3cc86027799816 100644 --- a/arkoala/arkui/src/generated/peers/ArkImagePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImagePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts index 9b5c17d5d71813eb724e67638fd9a3202d5132ac..3adafbf08ce6610a1adbe004b0916d1c18be5e87 100644 --- a/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 974900809d116cfd2ce4811c55a089823e19f1e3..d61a98ea5ebcb6f81b0c04e0721055d6f91c836d 100644 --- a/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkLinePeer.ts b/arkoala/arkui/src/generated/peers/ArkLinePeer.ts index 05b9aa8742589ae6881bdb9feac743b3dcae6fdc..0f4b4a78765dfcb54bd699144a076c51a5525ab4 100644 --- a/arkoala/arkui/src/generated/peers/ArkLinePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLinePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 85d63ca2d7885b847a4a03fe37755a706b4d1a75..8700ee11d1cb0b0dd075c220308c219852f62875 100644 --- a/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts index ff97756d7b21666aa452cf1d901fc4bfbbd56075..dca918425a4fea2fab2248052ff3eb6d9c19154e 100644 --- a/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts index bf9634c3905b400d411984a8b56f64426ef3b736..de0d7568a67e6ea9b8077d33b0e985e0f787c066 100644 --- a/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkListPeer.ts b/arkoala/arkui/src/generated/peers/ArkListPeer.ts index d346dc120931aeba95786d6a80e5a80db020fd28..9888b911a27fc0b2fafb200ff8759adc34aef3a0 100644 --- a/arkoala/arkui/src/generated/peers/ArkListPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts b/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index a7d8df0211168d0aaebe07f54907df420ae3189a..0835b63c160683c617d45d845a185515a75194ae 100644 --- a/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 91ef013245dea056b728986a54d4b47c5194d202..00ddd9e911cb505cafc15ff0475cd541c01e867c 100644 --- a/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts b/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts index 2a4aa41aa5a5a8d10d1434c5119977232eb8b8b4..79bc774bedba0251993a50e8ad1ef91dc7f3300d 100644 --- a/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts b/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index c666ca59f77c59e287c526b4b5d09974872c4515..07c594b327a6668f6a2dc9604f2c78585881f14b 100644 --- a/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index b03ae3dff4cdff0aed27bb8fb85b49f9a7136f41..f07c703bd478b60e5cecc78a7774a3fc845ed62c 100644 --- a/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts index c522f6848eac62543758b55e131f337a3e2e0882..282d5c37f32819e482947f3896f5f01eac7ed6d4 100644 --- a/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts index 396735831944ba27ab247086f1e89c907693f551..be86d5b7ea84526027a86179c7ae2723b738e706 100644 --- a/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 9c7357a83be7213cc8cc8e706ee3a53cba3af823..1266012b379f3d29cedda21ab304cf95d1623746 100644 --- a/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts index d06f58a1b5edd204e05a216f916e50c815fb0a4e..f0146955b8165ca3d1d29f397f5ade627fd1be00 100644 --- a/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts index 5cb2e8a26e3729f6f3d6738a08907aaf6f00532b..7e089215c4fc2e80969ccff5d5b1f3d093f74685 100644 --- a/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts index 57e0ea41b2b8748c7fcf60c11180e8956bb41a67..25e29780031b684ec2f3c43def1e75db4f876543 100644 --- a/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts b/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts index 72a1d5c4cd88a5d95ebf896562bc7ec73a1aa06c..575f341742cc34469f5137a3216760906ed02559 100644 --- a/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 0fa09d518294949883f57887547aaa76f8aa87cb..da70f20dd63b45c97aa3b285bd413963cac5d6ff 100644 --- a/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPathPeer.ts b/arkoala/arkui/src/generated/peers/ArkPathPeer.ts index 1a05028c4def7fe0c274a78e800af0cdf67fad1c..6526bac46a01238d1a9d3cbc89d5283d30c52f53 100644 --- a/arkoala/arkui/src/generated/peers/ArkPathPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPathPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts b/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts index 15736714b8221a4ebe535d8499f4296b385355e8..9b9e6835a5ab7844bee9c75c471d01d2e01b9c74 100644 --- a/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts index 8ad844262ad47c1e1200777a8b097e35540c43c8..2bcba3e144a01eca2fb16f54ace2a4fd08063559 100644 --- a/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts b/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts index 59c384d7f0eae477d84e7587387734c52785266b..a47f5277290a8e8ddb577e7d1f56df864c509ed3 100644 --- a/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts b/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts index 910d747240b3bbd709bbdaff83ce9f4075eadbb4..5dd7074e800f0cc9e012938cab05eb107826221a 100644 --- a/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts b/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts index 68d24bc1349f9632ea3a7545bd0437e1eacc4429..2da720f26e03fda81f402e84366e7a92dbff5e56 100644 --- a/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts b/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts index aadc26b150b0e64678c2b456e56bee0f7d6038de..ac5f1a67823c9cb94e7613bf1f7d995a6f6fa1a6 100644 --- a/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts b/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts index ca26c9aff1fc79c7d89cb334b75ae8bd61db4c44..441bbdbd347be2178e693c78cab5adbca2668c17 100644 --- a/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts b/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts index 4fcc7ff61130cfdf88aa3975fcaad461d0b78ca2..aae43909bc60efd677e071170645c95045fe5f35 100644 --- a/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRectPeer.ts b/arkoala/arkui/src/generated/peers/ArkRectPeer.ts index cda18c32ee83f070d1b5bae84bfa76950416907b..8b6423ba628007580f05f783b689879420b08f6d 100644 --- a/arkoala/arkui/src/generated/peers/ArkRectPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRectPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts b/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts index 403ad1f11024ed14d88180c420923e6ad852cad6..52600147ad3e3b1c6a44ecdc758de2657522ed58 100644 --- a/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index 1b2e6deaaf1eef182b3b2e69c906c14fa9333921..f1f03fabf08c115ce71dff2c5241a2d74bd704d3 100644 --- a/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts b/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index b8b8a78191d9862b1331ffb50458600793cfc9fb..85702080bb7b9fdd04e306523a9b0571a259b4ff 100644 --- a/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts b/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts index 13fc51d5fd41c16abcd42b00137386c8cc8db6f1..db1e92b98faa707721ec466bf200d02d0df5dbae 100644 --- a/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts b/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts index 6b1fe89426aeda19b5ba07056be3838a2986ab32..e1ac8e66feba020c761940a7f9552b3be4a4c1c2 100644 --- a/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts b/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts index 2a91d92304410d6c173d0d20c2fde92581a2d4f7..ebebe39ff2b024917eae00614554d1a5557c2227 100644 --- a/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRowPeer.ts b/arkoala/arkui/src/generated/peers/ArkRowPeer.ts index b790b139dfc374ae87edd30793659e04a9d66e0e..d540a75abd551e9fcaa050338041d24100c9018b 100644 --- a/arkoala/arkui/src/generated/peers/ArkRowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRowPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts b/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts index 5a531670789348fc3ab5dbac05f42c9ff15e4ef1..7becca059c6bacd6296935ca73813f8a4d18b395 100644 --- a/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts index 7b8509033c4268d3629f35b9c43363cfc258b91d..10c72a5abe5ffcd72ebde80ae86a80ae8e754870 100644 --- a/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts b/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts index 80d77f19fa4e62b1b4b03902a6a4dd5edae8cf52..118e0273eca91a0f17cb20390e13e232825fd9b8 100644 --- a/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts b/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts index eb84fdb0099f86a4ebadb3755d30bb6acbf1703f..c660ff088c7cbb321f4ee27aef6f80c598736880 100644 --- a/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts index a886cbe510c5e6faa31089b7eb467d8917c9430a..4690fb015d77924e1c475956ce2852150c0e26df 100644 --- a/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts b/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts index b81e28294bdfaaaa929db8c3e74fdaf7ba210d30..0401ee0669ed8b276aeecef51323664580866bee 100644 --- a/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index 39ec5cce141970cb1afd39ac5aeb71de04c2484b..ca73ef995031fa12800c35e664d6d15913307081 100644 --- a/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -256,7 +258,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("top")) || (value!.hasOwnProperty("right")) || (value!.hasOwnProperty("bottom")) || (value!.hasOwnProperty("left"))))) { + if (isPadding(value)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) const value_0_top = value_0.top diff --git a/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts b/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts index 5ce0ed6ed94e1a97b23a031a8499e60682040713..7ee78223754febe9772d831fa253b118665b4b71 100644 --- a/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkShapePeer.ts b/arkoala/arkui/src/generated/peers/ArkShapePeer.ts index 678ea88b2559eb0892bd6e2aff1ddbc67ce81df0..7225d072948c3ae20d8915d4de029d57e9dc7822 100644 --- a/arkoala/arkui/src/generated/peers/ArkShapePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkShapePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts b/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts index 4a5257d25b2b73f9f02792c5e4a8cf7c3d49e76d..0b54458756f2151ce4459052856e74f966dc693c 100644 --- a/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts b/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts index 30a6367b893127c4c97efa821e473a1770dbeab7..12625f008932efbb8150dd6cd45bd8b10092fb13 100644 --- a/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts index 6e4cb4c04355390b6c24ec89b462f9e7058026f2..66da5d353f75f5578f2fa9318e1cd7b07f4b8184 100644 --- a/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkStackPeer.ts b/arkoala/arkui/src/generated/peers/ArkStackPeer.ts index 9ab75938f342b3108dd16f0ffa58886f06452575..873c6bdcd3fef8fbd99d731ae4ca65368281e0ed 100644 --- a/arkoala/arkui/src/generated/peers/ArkStackPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStackPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts b/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 162b5d4e7b8fcde349c64e72ed5914323779b6c0..5388e6288b25ee9e4e4dc642644f8788b54441e9 100644 --- a/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" diff --git a/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts index 0e2311ba51b0ce47b3b240b0be991d8b6de2a3e1..56433aa9d43fbebc587de35865cf571d2c64e1ba 100644 --- a/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts b/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts index e8945fcd7c22cf969ad0fafff4c5e7623e1f9285..d8b3341fc02b923449ad6f0eea781081b077395d 100644 --- a/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts b/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts index 7ba1d901c4fcd65cca66d186b4a09ead52f5b986..b772e6b27144642e0535a023c2728f9f6195e8e8 100644 --- a/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index d253a429558524a0d607c890578b6b5d503f88bc..64e85f1431e26560d706609a4a1eae66be9f3550 100644 --- a/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts b/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index 095e8d2f9d15bf407b3101de0fa6505a4c40259a..27e50c0c4bf6462dd70d63978914e2d46620b16a 100644 --- a/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts b/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts index af8cc7c025003dbe35500f69b1624b2ca78a537c..e09f901980bd5f93b91318cf181135ffe9fcf39f 100644 --- a/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts b/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts index 1ba2a2c38c6d3420180189c80adab31088eef47e..714da983cc790339a4f3d864b35035e094f3b62b 100644 --- a/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts index 6d3452ef14dcb6c1df211bf7c042868ace0ea154..c945c053d969fbc0ccfe57585a276432fb5847ba 100644 --- a/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts index 067091f6e29915af900b0662fbea9a63065228c0..ce50c8a4bf36588207d75af91d52966741db5f1a 100644 --- a/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts index ee6867dedc68c08f24de11f7c399a1adc2058847..5cd0478a62960dda5cfe1529acbab00754f1e776 100644 --- a/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTextPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextPeer.ts index 6072a59600d45a724ccbd69c6beafb40eb6c57a0..5505b58b7b228f39e005089b6eaf5822804642f5 100644 --- a/arkoala/arkui/src/generated/peers/ArkTextPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts index 2872dba04a781363a26907e0afc1c71d20ce0d40..51f9c0ad06fd7ed14e8843a3b5a0d539ad162ff2 100644 --- a/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts index efd70888d4336a5054d424c2ca8750c1d5655da5..acb7f7303c232d9f9846b3ce0939d87f6eb4db65 100644 --- a/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts index b53d92ba0ac25cd899c7519da38ac506d621f9d6..a9ea965af426b992871b12b67d1d8faf86b13789 100644 --- a/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts b/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts index 8d7f253eabed460d2751a77904502158905eee5c..10e62fcfbaa688e985219de7fd0a2c078b7228af 100644 --- a/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index 3ac0307b4f54c87b48d8a588e25ab4a84981ac83..bbda93beb155a13ff51f49d928b5498b05f04208 100644 --- a/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts b/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts index d7aad9eef7c54ff43d6a14202337ae2bd3102be8..96fb10bddca14472099fa4c92b962f47798192dd 100644 --- a/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts b/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts index 9b59b4d0add249da3ea9b546f42ab6def1a67bad..2d0008013eef14752be6ec78a706505f41e806a2 100644 --- a/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkWebPeer.ts b/arkoala/arkui/src/generated/peers/ArkWebPeer.ts index e7f23d8a5693cb9d1691c1a237cec66ff2feed0f..c0447a53c6d0c670b96fc7da517deb6a5fc65196 100644 --- a/arkoala/arkui/src/generated/peers/ArkWebPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWebPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts b/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts index 402b38b2cbf7c147dc3e4ba7ea1a9dbeea4aa297..569a291965f721fe5f2f20deb8ba422c8f33c0fe 100644 --- a/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts index f52414473a43dfb87d4c54630b07ef41e3f2b136..67a8b48b131e3406c65574ae08c448ff688d419c 100644 --- a/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -18,10 +18,12 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" +import { runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" import { ComponentBase } from "../../ComponentBase" import { PeerNode } from "../../PeerNode" +import { isInstanceOf } from "@koalaui/interop" +import { isResource, isPadding } from "../../utils" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" diff --git a/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts index 770afc67bb5bb85cb95492fb70b841b96a943e2f..68e3abf28c3a64760bb163ced64f0bd7750a92da 100644 --- a/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -21,7 +21,7 @@ import { CallbackTransformer } from "./CallbackTransformer" import { AccessibilityCallback, EventTarget, SourceType, SourceTool, TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, CustomBuilder, DismissContentCoverAction, DismissReason, DismissPopupAction, DismissSheetAction, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, TouchObject, HistoricalPoint, IntentionCode, SheetDismiss, SpringBackAction, ItemDragInfo, HoverCallback, OnMoveHandler, OnScrollCallback } from "./../ArkCommonInterfaces" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" import { BaseEvent } from "./../ArkBaseEventMaterialized" -import { AccessibilityHoverType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, TextDecorationType, TextDecorationStyle, FoldStatus, AppRotation, Edge, ScrollSource } from "./../ArkEnumsInterfaces" +import { AccessibilityHoverType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, LineBreakStrategy, FoldStatus, AppRotation, Edge, ScrollSource } from "./../ArkEnumsInterfaces" import { Area, Length, Position, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { PixelMap } from "./../ArkPixelMapMaterialized" @@ -33,7 +33,7 @@ import { LocationButtonOnClickResult } from "./../ArkLocationButtonInterfaces" import { PasteButtonOnClickResult } from "./../ArkPasteButtonInterfaces" import { SaveButtonOnClickResult } from "./../ArkSaveButtonInterfaces" import { ComputedBarAttribute } from "./../ArkGridInterfaces" -import { CopyEvent, CutEvent, RichEditorChangeValue, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue, RichEditorRange, RichEditorSelection, PasteEvent, MenuOnAppearCallback, PasteEventCallback, SubmitCallback } from "./../ArkRichEditorInterfaces" +import { CopyEvent, CutEvent, LeadingMarginPlaceholder, RichEditorChangeValue, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue, RichEditorRange, RichEditorSelection, PasteEvent, MenuOnAppearCallback, PasteEventCallback, SubmitCallback } from "./../ArkRichEditorInterfaces" import { DatePickerResult } from "./../ArkDatePickerInterfaces" import { DeleteValue, TextDeleteDirection, InsertValue, TextRange, DecorationStyleResult, StyledStringChangeValue, EditableTextOnChangeCallback, PreviewText, OnDidChangeCallback } from "./../ArkTextCommonInterfaces" import { DismissDialogAction } from "./../ArkActionSheetInterfaces" @@ -102,7 +102,18 @@ import { WebviewController } from "./../ArkWebviewControllerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" -import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue, UserDataSpan, TextStyleInterface, DecorationStyleInterface, GestureStyleInterface, ParagraphStyleInterface } from "./../ArkStyledStringInterfaces" +import { TextStyle_styled_string } from "./../ArkTextStyleStyledStringMaterialized" +import { DecorationStyle } from "./../ArkDecorationStyleMaterialized" +import { BaselineOffsetStyle } from "./../ArkBaselineOffsetStyleMaterialized" +import { LetterSpacingStyle } from "./../ArkLetterSpacingStyleMaterialized" +import { TextShadowStyle } from "./../ArkTextShadowStyleMaterialized" +import { GestureStyle } from "./../ArkGestureStyleMaterialized" +import { ParagraphStyle } from "./../ArkParagraphStyleMaterialized" +import { LineHeightStyle } from "./../ArkLineHeightStyleMaterialized" +import { UrlStyle } from "./../ArkUrlStyleMaterialized" +import { BackgroundColorStyle } from "./../ArkBackgroundColorStyleMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { TabContentAnimatedTransition, OnTabsAnimationEndCallback, TabsAnimationEvent, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback } from "./../ArkTabsInterfaces" import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -176,7 +187,7 @@ export function deserializeAndCallCallback_Array_Number_Void(thisDeserializer: D const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((input: Array) => void)) const input_buf_length: int32 = thisDeserializer.readInt32() - let input_buf: Array = new Array() + let input_buf: Array = new Array(input_buf_length) for (let input_buf_i = 0; input_buf_i < input_buf_length; input_buf_i++) { input_buf[input_buf_i] = (thisDeserializer.readNumber() as number) } @@ -187,7 +198,7 @@ export function deserializeAndCallCallback_Array_String_Void(thisDeserializer: D const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value: Array) => void)) const value_buf_length: int32 = thisDeserializer.readInt32() - let value_buf: Array = new Array() + let value_buf: Array = new Array(value_buf_length) for (let value_buf_i = 0; value_buf_i < value_buf_length; value_buf_i++) { value_buf[value_buf_i] = (thisDeserializer.readString() as string) } @@ -198,7 +209,7 @@ export function deserializeAndCallCallback_Array_TouchTestInfo_TouchResult(thisD const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value: Array) => TouchResult)) const value_buf_length: int32 = thisDeserializer.readInt32() - let value_buf: Array = new Array() + let value_buf: Array = new Array(value_buf_length) for (let value_buf_i = 0; value_buf_i < value_buf_length; value_buf_i++) { value_buf[value_buf_i] = thisDeserializer.readTouchTestInfo() } @@ -967,7 +978,7 @@ export function deserializeAndCallCallback_Opt_Array_String_Void(thisDeserialize if ((RuntimeType.UNDEFINED) != (error_buf_runtimeType)) { const error_buf__length: int32 = thisDeserializer.readInt32() - let error_buf_: Array = new Array() + let error_buf_: Array = new Array(error_buf__length) for (let error_buf__i = 0; error_buf__i < error_buf__length; error_buf__i++) { error_buf_[error_buf__i] = (thisDeserializer.readString() as string) } @@ -1003,7 +1014,7 @@ export function deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Voi if ((RuntimeType.UNDEFINED) != (error_buf_runtimeType)) { const error_buf__length: int32 = thisDeserializer.readInt32() - let error_buf_: Array = new Array() + let error_buf_: Array = new Array(error_buf__length) for (let error_buf__i = 0; error_buf__i < error_buf__length; error_buf__i++) { error_buf_[error_buf__i] = (thisDeserializer.readString() as string) } @@ -1320,7 +1331,7 @@ export function deserializeAndCallCallback_Union_Number_Array_Number_Void(thisDe } else if (selected_buf_selector == 1) { const selected_buf_u_length: int32 = thisDeserializer.readInt32() - let selected_buf_u: Array = new Array() + let selected_buf_u: Array = new Array(selected_buf_u_length) for (let selected_buf_u_i = 0; selected_buf_u_i < selected_buf_u_length; selected_buf_u_i++) { selected_buf_u[selected_buf_u_i] = (thisDeserializer.readNumber() as number) } @@ -1359,7 +1370,7 @@ export function deserializeAndCallCallback_Union_String_Array_String_Void(thisDe } else if (value_buf_selector == 1) { const value_buf_u_length: int32 = thisDeserializer.readInt32() - let value_buf_u: Array = new Array() + let value_buf_u: Array = new Array(value_buf_u_length) for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { value_buf_u[value_buf_u_i] = (thisDeserializer.readString() as string) } @@ -1436,7 +1447,7 @@ export function deserializeAndCallGestureRecognizerJudgeBeginCallback(thisDeseri let event: BaseGestureEvent = (thisDeserializer.readBaseGestureEvent() as BaseGestureEvent) let current: GestureRecognizer = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) const recognizers_buf_length: int32 = thisDeserializer.readInt32() - let recognizers_buf: Array = new Array() + let recognizers_buf: Array = new Array(recognizers_buf_length) for (let recognizers_buf_i = 0; recognizers_buf_i < recognizers_buf_length; recognizers_buf_i++) { recognizers_buf[recognizers_buf_i] = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) } @@ -1863,7 +1874,7 @@ export function deserializeAndCallShouldBuiltInRecognizerParallelWithCallback(th const _call = (ResourceHolder.instance().get(_resourceId) as ShouldBuiltInRecognizerParallelWithCallback) let current: GestureRecognizer = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) const others_buf_length: int32 = thisDeserializer.readInt32() - let others_buf: Array = new Array() + let others_buf: Array = new Array(others_buf_length) for (let others_buf_i = 0; others_buf_i < others_buf_length; others_buf_i++) { others_buf[others_buf_i] = (thisDeserializer.readGestureRecognizer() as GestureRecognizer) } @@ -1941,7 +1952,7 @@ export function deserializeAndCallType_TextPickerAttribute_onChange_callback(thi } else if (value_buf_selector == 1) { const value_buf_u_length: int32 = thisDeserializer.readInt32() - let value_buf_u: Array = new Array() + let value_buf_u: Array = new Array(value_buf_u_length) for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { value_buf_u[value_buf_u_i] = (thisDeserializer.readString() as string) } @@ -1958,7 +1969,7 @@ export function deserializeAndCallType_TextPickerAttribute_onChange_callback(thi } else if (index_buf_selector == 1) { const index_buf_u_length: int32 = thisDeserializer.readInt32() - let index_buf_u: Array = new Array() + let index_buf_u: Array = new Array(index_buf_u_length) for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { index_buf_u[index_buf_u_i] = (thisDeserializer.readNumber() as number) } diff --git a/arkoala/arkui/src/generated/peers/Deserializer.ts b/arkoala/arkui/src/generated/peers/Deserializer.ts index fa880cce6dc027671284b6b14c9fdae581783c53..d9d056ae88a1740182d3c5ebc743bc3963ce3120 100644 --- a/arkoala/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala/arkui/src/generated/peers/Deserializer.ts @@ -22,7 +22,7 @@ import { Serializer } from "./Serializer" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, Context, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, DrawContext, EventTarget, SourceType, SourceTool, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, Context, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -53,20 +53,33 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" +import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Length, Margin, Padding, SizeOptions, Position, Area, ResourceStr, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, LocalizedBorderRadiuses, LengthMetricsUnit, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { Color, ColoringStrategy, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, FontStyle, FontWeight, Curve, PlayMode, TextHeightAdaptivePolicy, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { ImageAttachmentLayoutStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, ImageAttachmentInterface, GestureStyleInterface, DecorationStyleInterface, TextStyleInterface, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" -import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" -import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" +import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" -import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" +import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" @@ -88,8 +101,6 @@ import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMa import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" -import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" -import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" @@ -103,7 +114,6 @@ import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirec import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" @@ -206,16 +216,6 @@ import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParam import { BaseShape, BaseShapeInternal } from "./../ArkBaseShapeMaterialized" import { CommonShape, CommonShapeInternal } from "./../ArkCommonShapeMaterialized" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" -import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" -import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" -import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" -import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" -import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" -import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" -import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" -import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" -import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" -import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" @@ -307,7 +307,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) { const params_buf__length: int32 = valueDeserializer.readInt32() - let params_buf_: Array = new Array() + let params_buf_: Array = new Array(params_buf__length) for (let params_buf__i = 0; params_buf__i < params_buf__length; params_buf__i++) { params_buf_[params_buf__i] = (valueDeserializer.readString() as string) } @@ -324,11 +324,6 @@ export class Deserializer extends DeserializerBase { let value: Resource = ({bundleName: bundleName_result,moduleName: moduleName_result,id: id_result,params: params_result,type: type_result} as Resource) return value } - readICurve(): ICurve { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return ICurveInternal.fromPtr(ptr) - } readPixelMap(): PixelMap { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -339,6 +334,257 @@ export class Deserializer extends DeserializerBase { let ptr: KPointer = valueDeserializer.readPointer() return LengthMetricsInternal.fromPtr(ptr) } + readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { + let valueDeserializer: Deserializer = this + const pixelMap_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_value0: Dimension = (valueDeserializer.readLength() as Dimension) + const size_buf_value1: Dimension = (valueDeserializer.readLength() as Dimension) + const size_result: [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) + let value: LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) + return value + } + readICurve(): ICurve { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ICurveInternal.fromPtr(ptr) + } + readTextBackgroundStyle(): TextBackgroundStyle { + let valueDeserializer: Deserializer = this + const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let color_buf: ResourceColor | undefined|undefined + if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) + { + const color_buf__selector: number = valueDeserializer.readInt8() + let color_buf_: Color | number | string | Resource | undefined|undefined + if (color_buf__selector == 0) { + color_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (color_buf__selector == 1) { + color_buf_ = (valueDeserializer.readNumber() as number) + } + else if (color_buf__selector == 2) { + color_buf_ = (valueDeserializer.readString() as string) + } + else if (color_buf__selector == 3) { + color_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") + } + color_buf = (color_buf_ as Color | number | string | Resource) + } + const color_result: ResourceColor | undefined|undefined = color_buf + const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf: Dimension | BorderRadiuses | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) + { + const radius_buf__selector: number = valueDeserializer.readInt8() + let radius_buf_: Dimension | BorderRadiuses | undefined|undefined + if (radius_buf__selector == 0) { + radius_buf_ = (valueDeserializer.readLength() as Dimension) + } + else if (radius_buf__selector == 1) { + const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf + const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf + const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf + const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf + radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") + } + radius_buf = (radius_buf_ as Dimension | BorderRadiuses) + } + const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf + let value: TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) + return value + } + readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { + let valueDeserializer: Deserializer = this + const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf: LengthMetrics | Margin | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) + { + const margin_buf__selector: number = valueDeserializer.readInt8() + let margin_buf_: LengthMetrics | Margin | undefined|undefined + if (margin_buf__selector == 0) { + margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (margin_buf__selector == 1) { + const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_top_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) + { + margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf + const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_right_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) + { + margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf + const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_bottom_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) + { + margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf + const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_left_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) + { + margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf + margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") + } + margin_buf = (margin_buf_ as LengthMetrics | Margin) + } + const margin_result: LengthMetrics | Margin | undefined|undefined = margin_buf + const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf: LengthMetrics | Padding | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) + { + const padding_buf__selector: number = valueDeserializer.readInt8() + let padding_buf_: LengthMetrics | Padding | undefined|undefined + if (padding_buf__selector == 0) { + padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (padding_buf__selector == 1) { + const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_top_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) + { + padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_top: undefined | Length = padding_buf__u_top_buf + const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_right_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) + { + padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_right: undefined | Length = padding_buf__u_right_buf + const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_bottom_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) + { + padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_bottom: undefined | Length = padding_buf__u_bottom_buf + const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_left_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) + { + padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_left: undefined | Length = padding_buf__u_left_buf + padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") + } + padding_buf = (padding_buf_ as LengthMetrics | Padding) + } + const padding_result: LengthMetrics | Padding | undefined|undefined = padding_buf + const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf: LengthMetrics | BorderRadiuses | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) + { + const borderRadius_buf__selector: number = valueDeserializer.readInt8() + let borderRadius_buf_: LengthMetrics | BorderRadiuses | undefined|undefined + if (borderRadius_buf__selector == 0) { + borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (borderRadius_buf__selector == 1) { + const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) + { + borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf + const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) + { + borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf + const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) + { + borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf + const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) + { + borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf + borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") + } + borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) + } + const borderRadius_result: LengthMetrics | BorderRadiuses | undefined|undefined = borderRadius_buf + let value: ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) + return value + } + readSizeOptions(): SizeOptions { + let valueDeserializer: Deserializer = this + const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let width_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) + { + width_buf = (valueDeserializer.readLength() as Length) + } + const width_result: Length | undefined|undefined = width_buf + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readLength() as Length) + } + const height_result: Length | undefined|undefined = height_buf + let value: SizeOptions = ({width: width_result,height: height_result} as SizeOptions) + return value + } readPosition(): Position { let valueDeserializer: Deserializer = this const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -364,15 +610,6 @@ export class Deserializer extends DeserializerBase { let value: SymbolGlyphModifier = ({_SymbolGlyphModifierStub: _SymbolGlyphModifierStub_result} as SymbolGlyphModifier) return value } - readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { - let valueDeserializer: Deserializer = this - const pixelMap_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_value0: Dimension = (valueDeserializer.readLength() as Dimension) - const size_buf_value1: Dimension = (valueDeserializer.readLength() as Dimension) - const size_result: [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) - let value: LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) - return value - } readShadowOptions(): ShadowOptions { let valueDeserializer: Deserializer = this const radius_buf_selector: number = valueDeserializer.readInt8() @@ -511,6 +748,70 @@ export class Deserializer extends DeserializerBase { let value: GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) return value } + readBackgroundColorStyle(): BackgroundColorStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return BackgroundColorStyleInternal.fromPtr(ptr) + } + readUserDataSpan(): UserDataSpan { + let value: UserDataSpan = ({} as UserDataSpan) + return value + } + readCustomSpan(): CustomSpan { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CustomSpanInternal.fromPtr(ptr) + } + readUrlStyle(): UrlStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return UrlStyleInternal.fromPtr(ptr) + } + readLineHeightStyle(): LineHeightStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LineHeightStyleInternal.fromPtr(ptr) + } + readParagraphStyle(): ParagraphStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ParagraphStyleInternal.fromPtr(ptr) + } + readImageAttachment(): ImageAttachment { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ImageAttachmentInternal.fromPtr(ptr) + } + readGestureStyle(): GestureStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return GestureStyleInternal.fromPtr(ptr) + } + readTextShadowStyle(): TextShadowStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextShadowStyleInternal.fromPtr(ptr) + } + readLetterSpacingStyle(): LetterSpacingStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LetterSpacingStyleInternal.fromPtr(ptr) + } + readBaselineOffsetStyle(): BaselineOffsetStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return BaselineOffsetStyleInternal.fromPtr(ptr) + } + readDecorationStyle(): DecorationStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return DecorationStyleInternal.fromPtr(ptr) + } + readTextStyle_styled_string(): TextStyle_styled_string { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextStyle_styled_stringInternal.fromPtr(ptr) + } readArea(): Area { let valueDeserializer: Deserializer = this const width_result: Length = (valueDeserializer.readLength() as Length) @@ -1146,222 +1447,54 @@ export class Deserializer extends DeserializerBase { } readCanvasGradient(): CanvasGradient { let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return CanvasGradientInternal.fromPtr(ptr) - } - readVoidCallback(isSync: boolean = false): VoidCallback { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (): void => { - const _argsSerializer: Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } - readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy): void => { - const _argsSerializer: Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - _argsSerializer.writeNavigationTransitionProxy(transitionProxy); - (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } - readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (parameter: boolean): void => { - const _argsSerializer: Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - _argsSerializer.writeBoolean(parameter); - (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } - readColorMetrics(): ColorMetrics { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return ColorMetricsInternal.fromPtr(ptr) - } - readStyledStringValue(): StyledStringValue { - let valueDeserializer: Deserializer = this - const stub_result: string = (valueDeserializer.readString() as string) - let value: StyledStringValue = ({stub: stub_result} as StyledStringValue) - return value - } - readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { - let valueDeserializer: Deserializer = this - const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf: LengthMetrics | Margin | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) - { - const margin_buf__selector: number = valueDeserializer.readInt8() - let margin_buf_: LengthMetrics | Margin | undefined|undefined - if (margin_buf__selector == 0) { - margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (margin_buf__selector == 1) { - const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_top_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) - { - margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf - const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_right_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) - { - margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf - const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_bottom_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) - { - margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf - const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_left_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) - { - margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf - margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") - } - margin_buf = (margin_buf_ as LengthMetrics | Margin) - } - const margin_result: LengthMetrics | Margin | undefined|undefined = margin_buf - const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf: LengthMetrics | Padding | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) - { - const padding_buf__selector: number = valueDeserializer.readInt8() - let padding_buf_: LengthMetrics | Padding | undefined|undefined - if (padding_buf__selector == 0) { - padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (padding_buf__selector == 1) { - const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_top_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) - { - padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_top: undefined | Length = padding_buf__u_top_buf - const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_right_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) - { - padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_right: undefined | Length = padding_buf__u_right_buf - const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_bottom_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) - { - padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_bottom: undefined | Length = padding_buf__u_bottom_buf - const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_left_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) - { - padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_left: undefined | Length = padding_buf__u_left_buf - padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") - } - padding_buf = (padding_buf_ as LengthMetrics | Padding) - } - const padding_result: LengthMetrics | Padding | undefined|undefined = padding_buf - const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf: LengthMetrics | BorderRadiuses | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) - { - const borderRadius_buf__selector: number = valueDeserializer.readInt8() - let borderRadius_buf_: LengthMetrics | BorderRadiuses | undefined|undefined - if (borderRadius_buf__selector == 0) { - borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (borderRadius_buf__selector == 1) { - const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) - { - borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf - const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) - { - borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf - const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) - { - borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf - const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) - { - borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf - borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") - } - borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) - } - const borderRadius_result: LengthMetrics | BorderRadiuses | undefined|undefined = borderRadius_buf - let value: ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return CanvasGradientInternal.fromPtr(ptr) } - readSizeOptions(): SizeOptions { + readVoidCallback(isSync: boolean = false): VoidCallback { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (transitionProxy: NavigationTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavigationTransitionProxy(transitionProxy); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (parameter: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readColorMetrics(): ColorMetrics { let valueDeserializer: Deserializer = this - const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let width_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) - { - width_buf = (valueDeserializer.readLength() as Length) - } - const width_result: Length | undefined|undefined = width_buf - const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let height_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) - { - height_buf = (valueDeserializer.readLength() as Length) - } - const height_result: Length | undefined|undefined = height_buf - let value: SizeOptions = ({width: width_result,height: height_result} as SizeOptions) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return ColorMetricsInternal.fromPtr(ptr) } readGetItemMainSizeByIndex(isSync: boolean = false): GetItemMainSizeByIndex { const _resource: CallbackResource = this.readCallbackResource() @@ -2154,7 +2287,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) { const fontColor_buf__length: int32 = valueDeserializer.readInt32() - let fontColor_buf_: Array = new Array() + let fontColor_buf_: Array = new Array(fontColor_buf__length) for (let fontColor_buf__i = 0; fontColor_buf__i < fontColor_buf__length; fontColor_buf__i++) { const fontColor_buf__buf_selector: number = valueDeserializer.readInt8() let fontColor_buf__buf: Color | number | string | Resource | undefined|undefined @@ -2246,7 +2379,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (textShadow_buf_runtimeType)) { const textShadow_buf__length: int32 = valueDeserializer.readInt32() - let textShadow_buf_: Array = new Array() + let textShadow_buf_: Array = new Array(textShadow_buf__length) for (let textShadow_buf__i = 0; textShadow_buf__i < textShadow_buf__length; textShadow_buf__i++) { textShadow_buf_[textShadow_buf__i] = valueDeserializer.readShadowOptions() } @@ -2452,7 +2585,7 @@ export class Deserializer extends DeserializerBase { } else if (textShadow_buf__selector == 1) { const textShadow_buf__u_length: int32 = valueDeserializer.readInt32() - let textShadow_buf__u: Array = new Array() + let textShadow_buf__u: Array = new Array(textShadow_buf__u_length) for (let textShadow_buf__u_i = 0; textShadow_buf__u_i < textShadow_buf__u_length; textShadow_buf__u_i++) { textShadow_buf__u[textShadow_buf__u_i] = valueDeserializer.readShadowOptions() } @@ -3393,7 +3526,7 @@ export class Deserializer extends DeserializerBase { } const direction_result: GradientDirection | undefined|undefined = direction_buf const colors_buf_length: int32 = valueDeserializer.readInt32() - let colors_buf: Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>() + let colors_buf: Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colors_buf_length) for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { const colors_buf_buf_value0_buf_selector: number = valueDeserializer.readInt8() let colors_buf_buf_value0_buf: Color | number | string | Resource | undefined|undefined @@ -3741,7 +3874,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (entities_buf_runtimeType)) { const entities_buf__length: int32 = valueDeserializer.readInt32() - let entities_buf_: Array = new Array() + let entities_buf_: Array = new Array(entities_buf__length) for (let entities_buf__i = 0; entities_buf__i < entities_buf__length; entities_buf__i++) { entities_buf_[entities_buf__i] = (valueDeserializer.readString() as string) } @@ -3903,95 +4036,54 @@ export class Deserializer extends DeserializerBase { const start_result: number = (valueDeserializer.readNumber() as number) const length_result: number = (valueDeserializer.readNumber() as number) const styledKey_result: StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_result: StyledStringValue = valueDeserializer.readStyledStringValue() - let value: SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) - return value - } - readTextBackgroundStyle(): TextBackgroundStyle { - let valueDeserializer: Deserializer = this - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector: number = valueDeserializer.readInt8() - let color_buf_: Color | number | string | Resource | undefined|undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) + const styledValue_buf_selector: number = valueDeserializer.readInt8() + let styledValue_buf: TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined|undefined + if (styledValue_buf_selector == 0) { + styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) } - const color_result: ResourceColor | undefined|undefined = color_buf - const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf: Dimension | BorderRadiuses | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) - { - const radius_buf__selector: number = valueDeserializer.readInt8() - let radius_buf_: Dimension | BorderRadiuses | undefined|undefined - if (radius_buf__selector == 0) { - radius_buf_ = (valueDeserializer.readLength() as Dimension) - } - else if (radius_buf__selector == 1) { - const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf - const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf - const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf - const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf - radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") - } - radius_buf = (radius_buf_ as Dimension | BorderRadiuses) + else if (styledValue_buf_selector == 1) { + styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) } - const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf - let value: TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) + else if (styledValue_buf_selector == 2) { + styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) + } + else if (styledValue_buf_selector == 3) { + styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) + } + else if (styledValue_buf_selector == 4) { + styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) + } + else if (styledValue_buf_selector == 5) { + styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) + } + else if (styledValue_buf_selector == 6) { + styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) + } + else if (styledValue_buf_selector == 7) { + styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) + } + else if (styledValue_buf_selector == 8) { + styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) + } + else if (styledValue_buf_selector == 9) { + styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) + } + else if (styledValue_buf_selector == 10) { + styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) + } + else if (styledValue_buf_selector == 11) { + styledValue_buf = valueDeserializer.readUserDataSpan() + } + else if (styledValue_buf_selector == 12) { + styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) + } + else { + throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + } + const styledValue_result: StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) + let value: SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) return value } - readCustomSpan(): CustomSpan { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return CustomSpanInternal.fromPtr(ptr) - } - readImageAttachment(): ImageAttachment { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return ImageAttachmentInternal.fromPtr(ptr) - } readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -4217,7 +4309,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (types_buf_runtimeType)) { const types_buf__length: int32 = valueDeserializer.readInt32() - let types_buf_: Array = new Array() + let types_buf_: Array = new Array(types_buf__length) for (let types_buf__i = 0; types_buf__i < types_buf__length; types_buf__i++) { types_buf_[types_buf__i] = (valueDeserializer.readInt32() as ImageAnalyzerType) } @@ -4242,7 +4334,7 @@ export class Deserializer extends DeserializerBase { readImageAnalyzerConfig(): ImageAnalyzerConfig { let valueDeserializer: Deserializer = this const types_buf_length: int32 = valueDeserializer.readInt32() - let types_buf: Array = new Array() + let types_buf: Array = new Array(types_buf_length) for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { types_buf[types_buf_i] = (valueDeserializer.readInt32() as ImageAnalyzerType) } @@ -4785,7 +4877,7 @@ export class Deserializer extends DeserializerBase { let range_buf: Array | Array> | Resource | Array | Array | undefined|undefined if (range_buf_selector == 0) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array = new Array() + let range_buf_u: Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) } @@ -4793,10 +4885,10 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 1) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array> = new Array>() + let range_buf_u: Array> = new Array>(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { const range_buf_u_buf_length: int32 = valueDeserializer.readInt32() - let range_buf_u_buf: Array = new Array() + let range_buf_u_buf: Array = new Array(range_buf_u_buf_length) for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) } @@ -4809,7 +4901,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 3) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array = new Array() + let range_buf_u: Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() } @@ -4817,7 +4909,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 4) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array = new Array() + let range_buf_u: Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() } @@ -4838,7 +4930,7 @@ export class Deserializer extends DeserializerBase { } else if (value_buf__selector == 1) { const value_buf__u_length: int32 = valueDeserializer.readInt32() - let value_buf__u: Array = new Array() + let value_buf__u: Array = new Array(value_buf__u_length) for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) } @@ -4861,7 +4953,7 @@ export class Deserializer extends DeserializerBase { } else if (selected_buf__selector == 1) { const selected_buf__u_length: int32 = valueDeserializer.readInt32() - let selected_buf__u: Array = new Array() + let selected_buf__u: Array = new Array(selected_buf__u_length) for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) } @@ -6276,7 +6368,7 @@ export class Deserializer extends DeserializerBase { const selection_buf_value1: number = (valueDeserializer.readNumber() as number) const selection_result: [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) const spans_buf_length: int32 = valueDeserializer.readInt32() - let spans_buf: Array = new Array() + let spans_buf: Array = new Array(spans_buf_length) for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { const spans_buf_buf_selector: number = valueDeserializer.readInt8() let spans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined @@ -6613,7 +6705,7 @@ export class Deserializer extends DeserializerBase { } else if (radius_buf__selector == 2) { const radius_buf__u_length: int32 = valueDeserializer.readInt32() - let radius_buf__u: Array = new Array() + let radius_buf__u: Array = new Array(radius_buf__u_length) for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { const radius_buf__u_buf_selector: number = valueDeserializer.readInt8() let radius_buf__u_buf: number | string | undefined|undefined @@ -7318,7 +7410,7 @@ export class Deserializer extends DeserializerBase { readASTCResource(): ASTCResource { let valueDeserializer: Deserializer = this const sources_buf_length: int32 = valueDeserializer.readInt32() - let sources_buf: Array = new Array() + let sources_buf: Array = new Array(sources_buf_length) for (let sources_buf_i = 0; sources_buf_i < sources_buf_length; sources_buf_i++) { sources_buf[sources_buf_i] = (valueDeserializer.readString() as string) } @@ -7436,7 +7528,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) { const value_buf__length: int32 = valueDeserializer.readInt32() - let value_buf_: Array = new Array() + let value_buf_: Array = new Array(value_buf__length) for (let value_buf__i = 0; value_buf__i < value_buf__length; value_buf__i++) { value_buf_[value_buf__i] = (valueDeserializer.readString() as string) } @@ -7886,7 +7978,7 @@ export class Deserializer extends DeserializerBase { readVisibleAreaEventOptions(): VisibleAreaEventOptions { let valueDeserializer: Deserializer = this const ratios_buf_length: int32 = valueDeserializer.readInt32() - let ratios_buf: Array = new Array() + let ratios_buf: Array = new Array(ratios_buf_length) for (let ratios_buf_i = 0; ratios_buf_i < ratios_buf_length; ratios_buf_i++) { ratios_buf[ratios_buf_i] = (valueDeserializer.readNumber() as number) } @@ -7973,21 +8065,6 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } - readOnMoveHandler(isSync: boolean = false): OnMoveHandler { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (from: number, to: number): void => { - const _argsSerializer: Serializer = Serializer.hold(); - _argsSerializer.writeInt32(_resource.resourceId); - _argsSerializer.writePointer(_call); - _argsSerializer.writePointer(_callSync); - _argsSerializer.writeNumber(from); - _argsSerializer.writeNumber(to); - (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); - _argsSerializer.release(); - return; } - } readFadingEdgeOptions(): FadingEdgeOptions { let valueDeserializer: Deserializer = this const fadingEdgeLength_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9760,7 +9837,7 @@ export class Deserializer extends DeserializerBase { } else if (mode_buf__selector == 1) { const mode_buf__u_length: int32 = valueDeserializer.readInt32() - let mode_buf__u: Array = new Array() + let mode_buf__u: Array = new Array(mode_buf__u_length) for (let mode_buf__u_i = 0; mode_buf__u_i < mode_buf__u_length; mode_buf__u_i++) { mode_buf__u[mode_buf__u_i] = (valueDeserializer.readInt32() as DragPreviewMode) } @@ -9864,7 +9941,7 @@ export class Deserializer extends DeserializerBase { readLinearGradientBlurOptions(): LinearGradientBlurOptions { let valueDeserializer: Deserializer = this const fractionStops_buf_length: int32 = valueDeserializer.readInt32() - let fractionStops_buf: Array = new Array() + let fractionStops_buf: Array = new Array(fractionStops_buf_length) for (let fractionStops_buf_i = 0; fractionStops_buf_i < fractionStops_buf_length; fractionStops_buf_i++) { const fractionStops_buf_buf_value0: number = (valueDeserializer.readNumber() as number) const fractionStops_buf_buf_value1: number = (valueDeserializer.readNumber() as number) @@ -10413,7 +10490,7 @@ export class Deserializer extends DeserializerBase { const year_result: number = (valueDeserializer.readNumber() as number) const month_result: number = (valueDeserializer.readNumber() as number) const data_buf_length: int32 = valueDeserializer.readInt32() - let data_buf: Array = new Array() + let data_buf: Array = new Array(data_buf_length) for (let data_buf_i = 0; data_buf_i < data_buf_length; data_buf_i++) { data_buf[data_buf_i] = valueDeserializer.readCalendarDay() } @@ -11051,7 +11128,7 @@ export class Deserializer extends DeserializerBase { } const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf const buttons_buf_length: int32 = valueDeserializer.readInt32() - let buttons_buf: Array = new Array() + let buttons_buf: Array = new Array(buttons_buf_length) for (let buttons_buf_i = 0; buttons_buf_i < buttons_buf_length; buttons_buf_i++) { buttons_buf[buttons_buf_i] = valueDeserializer.readAlertDialogButtonOptions() } @@ -12108,7 +12185,7 @@ export class Deserializer extends DeserializerBase { } const cancel_result: VoidCallback | undefined|undefined = cancel_buf const sheets_buf_length: int32 = valueDeserializer.readInt32() - let sheets_buf: Array = new Array() + let sheets_buf: Array = new Array(sheets_buf_length) for (let sheets_buf_i = 0; sheets_buf_i < sheets_buf_length; sheets_buf_i++) { sheets_buf[sheets_buf_i] = valueDeserializer.readSheetInfo() } @@ -12704,7 +12781,7 @@ export class Deserializer extends DeserializerBase { } else if (radius_buf__selector == 2) { const radius_buf__u_length: int32 = valueDeserializer.readInt32() - let radius_buf__u: Array = new Array() + let radius_buf__u: Array = new Array(radius_buf__u_length) for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { const radius_buf__u_buf_selector: number = valueDeserializer.readInt8() let radius_buf__u_buf: number | string | undefined|undefined @@ -12928,6 +13005,21 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + readOnMoveHandler(isSync: boolean = false): OnMoveHandler { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (from: number, to: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } readIsolatedOptions(): IsolatedOptions { let valueDeserializer: Deserializer = this const want_result: Want = valueDeserializer.readWant() @@ -13430,16 +13522,6 @@ export class Deserializer extends DeserializerBase { let value: ImageAttachmentInterface = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachmentInterface) return value } - readUrlStyle(): UrlStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return UrlStyleInternal.fromPtr(ptr) - } - readLineHeightStyle(): LineHeightStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return LineHeightStyleInternal.fromPtr(ptr) - } readParagraphStyleInterface(): ParagraphStyleInterface { let valueDeserializer: Deserializer = this const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13498,11 +13580,6 @@ export class Deserializer extends DeserializerBase { let value: ParagraphStyleInterface = ({textAlign: textAlign_result,textIndent: textIndent_result,maxLines: maxLines_result,overflow: overflow_result,wordBreak: wordBreak_result,leadingMargin: leadingMargin_result} as ParagraphStyleInterface) return value } - readParagraphStyle(): ParagraphStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return ParagraphStyleInternal.fromPtr(ptr) - } readGestureStyleInterface(): GestureStyleInterface { let valueDeserializer: Deserializer = this const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13522,36 +13599,6 @@ export class Deserializer extends DeserializerBase { let value: GestureStyleInterface = ({onClick: onClick_result,onLongPress: onLongPress_result} as GestureStyleInterface) return value } - readGestureStyle(): GestureStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return GestureStyleInternal.fromPtr(ptr) - } - readBackgroundColorStyle(): BackgroundColorStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return BackgroundColorStyleInternal.fromPtr(ptr) - } - readTextShadowStyle(): TextShadowStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return TextShadowStyleInternal.fromPtr(ptr) - } - readLetterSpacingStyle(): LetterSpacingStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return LetterSpacingStyleInternal.fromPtr(ptr) - } - readBaselineOffsetStyle(): BaselineOffsetStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return BaselineOffsetStyleInternal.fromPtr(ptr) - } - readDecorationStyle(): DecorationStyle { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return DecorationStyleInternal.fromPtr(ptr) - } readTextStyleInterface(): TextStyleInterface { let valueDeserializer: Deserializer = this const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13634,11 +13681,6 @@ export class Deserializer extends DeserializerBase { let value: TextStyleInterface = ({fontColor: fontColor_result,fontFamily: fontFamily_result,fontSize: fontSize_result,fontWeight: fontWeight_result,fontStyle: fontStyle_result} as TextStyleInterface) return value } - readTextStyle_styled_string(): TextStyle_styled_string { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return TextStyle_styled_stringInternal.fromPtr(ptr) - } readStyleOptions(): StyleOptions { let valueDeserializer: Deserializer = this const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -13656,7 +13698,51 @@ export class Deserializer extends DeserializerBase { } const length_result: number | undefined|undefined = length_buf const styledKey_result: StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_result: StyledStringValue = valueDeserializer.readStyledStringValue() + const styledValue_buf_selector: number = valueDeserializer.readInt8() + let styledValue_buf: TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined|undefined + if (styledValue_buf_selector == 0) { + styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) + } + else if (styledValue_buf_selector == 1) { + styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) + } + else if (styledValue_buf_selector == 2) { + styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) + } + else if (styledValue_buf_selector == 3) { + styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) + } + else if (styledValue_buf_selector == 4) { + styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) + } + else if (styledValue_buf_selector == 5) { + styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) + } + else if (styledValue_buf_selector == 6) { + styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) + } + else if (styledValue_buf_selector == 7) { + styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) + } + else if (styledValue_buf_selector == 8) { + styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) + } + else if (styledValue_buf_selector == 9) { + styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) + } + else if (styledValue_buf_selector == 10) { + styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) + } + else if (styledValue_buf_selector == 11) { + styledValue_buf = valueDeserializer.readUserDataSpan() + } + else if (styledValue_buf_selector == 12) { + styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) + } + else { + throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + } + const styledValue_result: StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) let value: StyleOptions = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as StyleOptions) return value } @@ -13855,7 +13941,7 @@ export class Deserializer extends DeserializerBase { let valueDeserializer: Deserializer = this const url_result: string = (valueDeserializer.readString() as string) const adsBlocked_buf_length: int32 = valueDeserializer.readInt32() - let adsBlocked_buf: Array = new Array() + let adsBlocked_buf: Array = new Array(adsBlocked_buf_length) for (let adsBlocked_buf_i = 0; adsBlocked_buf_i < adsBlocked_buf_length; adsBlocked_buf_i++) { adsBlocked_buf[adsBlocked_buf_i] = (valueDeserializer.readString() as string) } @@ -14150,7 +14236,7 @@ export class Deserializer extends DeserializerBase { let valueDeserializer: Deserializer = this const script_result: string = (valueDeserializer.readString() as string) const scriptRules_buf_length: int32 = valueDeserializer.readInt32() - let scriptRules_buf: Array = new Array() + let scriptRules_buf: Array = new Array(scriptRules_buf_length) for (let scriptRules_buf_i = 0; scriptRules_buf_i < scriptRules_buf_length; scriptRules_buf_i++) { scriptRules_buf[scriptRules_buf_i] = (valueDeserializer.readString() as string) } @@ -14506,13 +14592,13 @@ export class Deserializer extends DeserializerBase { const host_result: string = (valueDeserializer.readString() as string) const port_result: number = (valueDeserializer.readNumber() as number) const keyTypes_buf_length: int32 = valueDeserializer.readInt32() - let keyTypes_buf: Array = new Array() + let keyTypes_buf: Array = new Array(keyTypes_buf_length) for (let keyTypes_buf_i = 0; keyTypes_buf_i < keyTypes_buf_length; keyTypes_buf_i++) { keyTypes_buf[keyTypes_buf_i] = (valueDeserializer.readString() as string) } const keyTypes_result: Array = keyTypes_buf const issuers_buf_length: int32 = valueDeserializer.readInt32() - let issuers_buf: Array = new Array() + let issuers_buf: Array = new Array(issuers_buf_length) for (let issuers_buf_i = 0; issuers_buf_i < issuers_buf_length; issuers_buf_i++) { issuers_buf[issuers_buf_i] = (valueDeserializer.readString() as string) } @@ -14569,7 +14655,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (certChainData_buf_runtimeType)) { const certChainData_buf__length: int32 = valueDeserializer.readInt32() - let certChainData_buf_: Array = new Array() + let certChainData_buf_: Array = new Array(certChainData_buf__length) for (let certChainData_buf__i = 0; certChainData_buf__i < certChainData_buf__length; certChainData_buf__i++) { certChainData_buf_[certChainData_buf__i] = (valueDeserializer.readBuffer() as ArrayBuffer) } @@ -15321,7 +15407,7 @@ export class Deserializer extends DeserializerBase { const object__result: Object = (valueDeserializer.readCustomObject("Object") as Object) const name_result: string = (valueDeserializer.readString() as string) const methodList_buf_length: int32 = valueDeserializer.readInt32() - let methodList_buf: Array = new Array() + let methodList_buf: Array = new Array(methodList_buf_length) for (let methodList_buf_i = 0; methodList_buf_i < methodList_buf_length; methodList_buf_i++) { methodList_buf[methodList_buf_i] = (valueDeserializer.readString() as string) } @@ -15343,7 +15429,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (asyncMethodList_buf_runtimeType)) { const asyncMethodList_buf__length: int32 = valueDeserializer.readInt32() - let asyncMethodList_buf_: Array = new Array() + let asyncMethodList_buf_: Array = new Array(asyncMethodList_buf__length) for (let asyncMethodList_buf__i = 0; asyncMethodList_buf__i < asyncMethodList_buf__length; asyncMethodList_buf__i++) { asyncMethodList_buf_[asyncMethodList_buf__i] = (valueDeserializer.readString() as string) } @@ -15725,7 +15811,7 @@ export class Deserializer extends DeserializerBase { } else if (value_buf_selector == 1) { const value_buf_u_length: int32 = valueDeserializer.readInt32() - let value_buf_u: Array = new Array() + let value_buf_u: Array = new Array(value_buf_u_length) for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { value_buf_u[value_buf_u_i] = (valueDeserializer.readString() as string) } @@ -15742,7 +15828,7 @@ export class Deserializer extends DeserializerBase { } else if (index_buf_selector == 1) { const index_buf_u_length: int32 = valueDeserializer.readInt32() - let index_buf_u: Array = new Array() + let index_buf_u: Array = new Array(index_buf_u_length) for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { index_buf_u[index_buf_u_i] = (valueDeserializer.readNumber() as number) } @@ -15839,7 +15925,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (children_buf_runtimeType)) { const children_buf__length: int32 = valueDeserializer.readInt32() - let children_buf_: Array = new Array() + let children_buf_: Array = new Array(children_buf__length) for (let children_buf__i = 0; children_buf__i < children_buf__length; children_buf__i++) { children_buf_[children_buf__i] = valueDeserializer.readTextCascadePickerRangeContent() } @@ -15890,7 +15976,7 @@ export class Deserializer extends DeserializerBase { let range_buf: Array | Array> | Resource | Array | Array | undefined|undefined if (range_buf_selector == 0) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array = new Array() + let range_buf_u: Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) } @@ -15898,10 +15984,10 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 1) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array> = new Array>() + let range_buf_u: Array> = new Array>(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { const range_buf_u_buf_length: int32 = valueDeserializer.readInt32() - let range_buf_u_buf: Array = new Array() + let range_buf_u_buf: Array = new Array(range_buf_u_buf_length) for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) } @@ -15914,7 +16000,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 3) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array = new Array() + let range_buf_u: Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() } @@ -15922,7 +16008,7 @@ export class Deserializer extends DeserializerBase { } else if (range_buf_selector == 4) { const range_buf_u_length: int32 = valueDeserializer.readInt32() - let range_buf_u: Array = new Array() + let range_buf_u: Array = new Array(range_buf_u_length) for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() } @@ -15943,7 +16029,7 @@ export class Deserializer extends DeserializerBase { } else if (value_buf__selector == 1) { const value_buf__u_length: int32 = valueDeserializer.readInt32() - let value_buf__u: Array = new Array() + let value_buf__u: Array = new Array(value_buf__u_length) for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) } @@ -15966,7 +16052,7 @@ export class Deserializer extends DeserializerBase { } else if (selected_buf__selector == 1) { const selected_buf__u_length: int32 = valueDeserializer.readInt32() - let selected_buf__u: Array = new Array() + let selected_buf__u: Array = new Array(selected_buf__u_length) for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) } @@ -17114,7 +17200,7 @@ export class Deserializer extends DeserializerBase { } else if (snapPagination_buf__selector == 1) { const snapPagination_buf__u_length: int32 = valueDeserializer.readInt32() - let snapPagination_buf__u: Array = new Array() + let snapPagination_buf__u: Array = new Array(snapPagination_buf__u_length) for (let snapPagination_buf__u_i = 0; snapPagination_buf__u_i < snapPagination_buf__u_length; snapPagination_buf__u_i++) { snapPagination_buf__u[snapPagination_buf__u_i] = (valueDeserializer.readLength() as Dimension) } @@ -17322,19 +17408,19 @@ export class Deserializer extends DeserializerBase { let valueDeserializer: Deserializer = this const rangeBefore_result: TextRange = valueDeserializer.readTextRange() const replacedSpans_buf_length: int32 = valueDeserializer.readInt32() - let replacedSpans_buf: Array = new Array() + let replacedSpans_buf: Array = new Array(replacedSpans_buf_length) for (let replacedSpans_buf_i = 0; replacedSpans_buf_i < replacedSpans_buf_length; replacedSpans_buf_i++) { replacedSpans_buf[replacedSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() } const replacedSpans_result: Array = replacedSpans_buf const replacedImageSpans_buf_length: int32 = valueDeserializer.readInt32() - let replacedImageSpans_buf: Array = new Array() + let replacedImageSpans_buf: Array = new Array(replacedImageSpans_buf_length) for (let replacedImageSpans_buf_i = 0; replacedImageSpans_buf_i < replacedImageSpans_buf_length; replacedImageSpans_buf_i++) { replacedImageSpans_buf[replacedImageSpans_buf_i] = valueDeserializer.readRichEditorImageSpanResult() } const replacedImageSpans_result: Array = replacedImageSpans_buf const replacedSymbolSpans_buf_length: int32 = valueDeserializer.readInt32() - let replacedSymbolSpans_buf: Array = new Array() + let replacedSymbolSpans_buf: Array = new Array(replacedSymbolSpans_buf_length) for (let replacedSymbolSpans_buf_i = 0; replacedSymbolSpans_buf_i < replacedSymbolSpans_buf_length; replacedSymbolSpans_buf_i++) { replacedSymbolSpans_buf[replacedSymbolSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() } @@ -17382,7 +17468,7 @@ export class Deserializer extends DeserializerBase { readTextDataDetectorConfig(): TextDataDetectorConfig { let valueDeserializer: Deserializer = this const types_buf_length: int32 = valueDeserializer.readInt32() - let types_buf: Array = new Array() + let types_buf: Array = new Array(types_buf_length) for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { types_buf[types_buf_i] = (valueDeserializer.readInt32() as TextDataDetectorType) } @@ -17466,7 +17552,7 @@ export class Deserializer extends DeserializerBase { const direction_result: RichEditorDeleteDirection = (valueDeserializer.readInt32() as RichEditorDeleteDirection) const length_result: number = (valueDeserializer.readNumber() as number) const richEditorDeleteSpans_buf_length: int32 = valueDeserializer.readInt32() - let richEditorDeleteSpans_buf: Array = new Array() + let richEditorDeleteSpans_buf: Array = new Array(richEditorDeleteSpans_buf_length) for (let richEditorDeleteSpans_buf_i = 0; richEditorDeleteSpans_buf_i < richEditorDeleteSpans_buf_length; richEditorDeleteSpans_buf_i++) { const richEditorDeleteSpans_buf_buf_selector: number = valueDeserializer.readInt8() let richEditorDeleteSpans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined @@ -17622,7 +17708,7 @@ export class Deserializer extends DeserializerBase { const id_result: string = (valueDeserializer.readString() as string) const localizedDirection_result: LocalizedBarrierDirection = (valueDeserializer.readInt32() as LocalizedBarrierDirection) const referencedId_buf_length: int32 = valueDeserializer.readInt32() - let referencedId_buf: Array = new Array() + let referencedId_buf: Array = new Array(referencedId_buf_length) for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) } @@ -17635,7 +17721,7 @@ export class Deserializer extends DeserializerBase { const id_result: string = (valueDeserializer.readString() as string) const direction_result: BarrierDirection = (valueDeserializer.readInt32() as BarrierDirection) const referencedId_buf_length: int32 = valueDeserializer.readInt32() - let referencedId_buf: Array = new Array() + let referencedId_buf: Array = new Array(referencedId_buf_length) for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) } @@ -19311,7 +19397,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (irregularIndexes_buf_runtimeType)) { const irregularIndexes_buf__length: int32 = valueDeserializer.readInt32() - let irregularIndexes_buf_: Array = new Array() + let irregularIndexes_buf_: Array = new Array(irregularIndexes_buf__length) for (let irregularIndexes_buf__i = 0; irregularIndexes_buf__i < irregularIndexes_buf__length; irregularIndexes_buf__i++) { irregularIndexes_buf_[irregularIndexes_buf__i] = (valueDeserializer.readNumber() as number) } @@ -19688,7 +19774,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (upperItems_buf_runtimeType)) { const upperItems_buf__length: int32 = valueDeserializer.readInt32() - let upperItems_buf_: Array = new Array() + let upperItems_buf_: Array = new Array(upperItems_buf__length) for (let upperItems_buf__i = 0; upperItems_buf__i < upperItems_buf__length; upperItems_buf__i++) { upperItems_buf_[upperItems_buf__i] = (valueDeserializer.readString() as string) } @@ -19951,7 +20037,7 @@ export class Deserializer extends DeserializerBase { if ((RuntimeType.UNDEFINED) != (colors_buf_runtimeType)) { const colors_buf__length: int32 = valueDeserializer.readInt32() - let colors_buf_: Array = new Array() + let colors_buf_: Array = new Array(colors_buf__length) for (let colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { const colors_buf__buf_selector: number = valueDeserializer.readInt8() let colors_buf__buf: ResourceColor | LinearGradient | undefined|undefined @@ -19992,7 +20078,7 @@ export class Deserializer extends DeserializerBase { readDataPanelOptions(): DataPanelOptions { let valueDeserializer: Deserializer = this const values_buf_length: int32 = valueDeserializer.readInt32() - let values_buf: Array = new Array() + let values_buf: Array = new Array(values_buf_length) for (let values_buf_i = 0; values_buf_i < values_buf_length; values_buf_i++) { values_buf[values_buf_i] = (valueDeserializer.readNumber() as number) } @@ -22397,7 +22483,7 @@ export class Deserializer extends DeserializerBase { readCheckboxGroupResult(): CheckboxGroupResult { let valueDeserializer: Deserializer = this const name_buf_length: int32 = valueDeserializer.readInt32() - let name_buf: Array = new Array() + let name_buf: Array = new Array(name_buf_length) for (let name_buf_i = 0; name_buf_i < name_buf_length; name_buf_i++) { name_buf[name_buf_i] = (valueDeserializer.readString() as string) } @@ -23393,7 +23479,7 @@ export class Deserializer extends DeserializerBase { readAlphabetIndexerOptions(): AlphabetIndexerOptions { let valueDeserializer: Deserializer = this const arrayValue_buf_length: int32 = valueDeserializer.readInt32() - let arrayValue_buf: Array = new Array() + let arrayValue_buf: Array = new Array(arrayValue_buf_length) for (let arrayValue_buf_i = 0; arrayValue_buf_i < arrayValue_buf_length; arrayValue_buf_i++) { arrayValue_buf[arrayValue_buf_i] = (valueDeserializer.readString() as string) } diff --git a/arkoala/arkui/src/generated/peers/GlobalScope.ts b/arkoala/arkui/src/generated/peers/GlobalScope.ts index 8f5a7755613c8ad6d3d8c4862ab2465f4d6ab672..10420c72a259d831a5b6692bcb24a0c511aa10b5 100644 --- a/arkoala/arkui/src/generated/peers/GlobalScope.ts +++ b/arkoala/arkui/src/generated/peers/GlobalScope.ts @@ -21,10 +21,11 @@ import { Resource } from "./../ArkResourceInterfaces" import { Curve, PlayMode } from "./../ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PointerStyle } from "./../ArkArkuiCustomInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, toPeerPtr, MaterializedBase, isInstanceOf } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./Serializer" import { CallbackKind } from "./CallbackKind" +import { isResource, isPadding } from "./../../utils" import { Deserializer, createDeserializer } from "./Deserializer" import { CallbackTransformer } from "./CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./../ArkUIGeneratedNativeModule" @@ -44,7 +45,9 @@ export class GlobalScope { } const retval = ArkUIGeneratedNativeModule._GlobalScope_getContext(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval.buffer, retval.byteLength).readContext() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: Context = retvalDeserializer.readContext() + return returnResult } public static postCardAction(component: Object, action: Object): void { const component_casted = component as (Object) @@ -73,7 +76,9 @@ export class GlobalScope { } const retval = ArkUIGeneratedNativeModule._GlobalScope_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval.buffer, retval.byteLength).readResource() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: Resource = retvalDeserializer.readResource() + return returnResult } public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) @@ -81,7 +86,9 @@ export class GlobalScope { } static dollar_rawfile_serialize(value: string): Resource { const retval = ArkUIGeneratedNativeModule._GlobalScope_dollar_rawfile(value) - return new Deserializer(retval.buffer, retval.byteLength).readResource() + let retvalDeserializer: Deserializer = new Deserializer(retval.buffer, retval.byteLength) + const returnResult: Resource = retvalDeserializer.readResource() + return returnResult } public static animateTo(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) diff --git a/arkoala/arkui/src/generated/peers/Serializer.ts b/arkoala/arkui/src/generated/peers/Serializer.ts index c59896dc55f9a88a7578feecbcc1e950d44ac164..c949726f314cae62cdeba345e40ebcd8962aa870 100644 --- a/arkoala/arkui/src/generated/peers/Serializer.ts +++ b/arkoala/arkui/src/generated/peers/Serializer.ts @@ -13,12 +13,13 @@ * limitations under the License. */ -import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, toPeerPtr, MaterializedBase, InteropNativeModule, ResourceHolder, nullptr, KPointer } from "@koalaui/interop" +import { SerializerBase, Tags, RuntimeType, runtimeType, toPeerPtr, MaterializedBase, InteropNativeModule, ResourceHolder, nullptr, KPointer, isInstanceOf } from "@koalaui/interop" import { int32, float32, unsafeCast } from "@koalaui/common" +import { isResource, isPadding } from "./../../utils" import { CallbackKind } from "./CallbackKind" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, Context, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, DrawContext, EventTarget, SourceType, SourceTool, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, Context, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -49,20 +50,33 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" +import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Length, Margin, Padding, SizeOptions, Position, Area, ResourceStr, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, LocalizedBorderRadiuses, LengthMetricsUnit, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { Color, ColoringStrategy, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, FontStyle, FontWeight, Curve, PlayMode, TextHeightAdaptivePolicy, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { ImageAttachmentLayoutStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, ImageAttachmentInterface, GestureStyleInterface, DecorationStyleInterface, TextStyleInterface, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" -import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" -import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" +import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" -import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" +import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" @@ -84,8 +98,6 @@ import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMa import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" -import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" -import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" @@ -99,7 +111,6 @@ import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirec import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" @@ -202,16 +213,6 @@ import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParam import { BaseShape, BaseShapeInternal } from "./../ArkBaseShapeMaterialized" import { CommonShape, CommonShapeInternal } from "./../ArkCommonShapeMaterialized" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" -import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" -import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" -import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" -import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" -import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" -import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" -import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" -import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" -import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" -import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" @@ -358,17 +359,281 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_type_value) } } - writeICurve(value: ICurve): void { + writePixelMap(value: PixelMap): void { let valueSerializer: Serializer = this valueSerializer.writePointer(toPeerPtr(value)) } - writePixelMap(value: PixelMap): void { + writeLengthMetrics(value: LengthMetrics): void { let valueSerializer: Serializer = this valueSerializer.writePointer(toPeerPtr(value)) } - writeLengthMetrics(value: LengthMetrics): void { + writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { + let valueSerializer: Serializer = this + const value_pixelMap = value.pixelMap + valueSerializer.writePixelMap(value_pixelMap) + const value_size = value.size + const value_size_0 = value_size[0] + valueSerializer.writeLength(value_size_0) + const value_size_1 = value_size[1] + valueSerializer.writeLength(value_size_1) + } + writeICurve(value: ICurve): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeTextBackgroundStyle(value: TextBackgroundStyle): void { + let valueSerializer: Serializer = this + const value_color = value.color + let value_color_type: int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + valueSerializer.writeInt8(value_color_type) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type: int32 = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { + valueSerializer.writeInt8(0) + const value_color_value_0 = unsafeCast(value_color_value) + valueSerializer.writeInt32(value_color_value_0) + } + else if (RuntimeType.NUMBER == value_color_value_type) { + valueSerializer.writeInt8(1) + const value_color_value_1 = unsafeCast(value_color_value) + valueSerializer.writeNumber(value_color_value_1) + } + else if (RuntimeType.STRING == value_color_value_type) { + valueSerializer.writeInt8(2) + const value_color_value_2 = unsafeCast(value_color_value) + valueSerializer.writeString(value_color_value_2) + } + else if (RuntimeType.OBJECT == value_color_value_type) { + valueSerializer.writeInt8(3) + const value_color_value_3 = unsafeCast(value_color_value) + valueSerializer.writeResource(value_color_value_3) + } + } + const value_radius = value.radius + let value_radius_type: int32 = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + valueSerializer.writeInt8(value_radius_type) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type: int32 = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(0) + const value_radius_value_0 = unsafeCast(value_radius_value) + valueSerializer.writeLength(value_radius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (((value_radius_value!.hasOwnProperty("topLeft")) || (value_radius_value!.hasOwnProperty("topRight")) || (value_radius_value!.hasOwnProperty("bottomLeft")) || (value_radius_value!.hasOwnProperty("bottomRight"))))) { + valueSerializer.writeInt8(1) + const value_radius_value_1 = unsafeCast(value_radius_value) + const value_radius_value_1_topLeft = value_radius_value_1.topLeft + let value_radius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) + valueSerializer.writeInt8(value_radius_value_1_topLeft_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! + valueSerializer.writeLength(value_radius_value_1_topLeft_value) + } + const value_radius_value_1_topRight = value_radius_value_1.topRight + let value_radius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) + valueSerializer.writeInt8(value_radius_value_1_topRight_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { + const value_radius_value_1_topRight_value = value_radius_value_1_topRight! + valueSerializer.writeLength(value_radius_value_1_topRight_value) + } + const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft + let value_radius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) + } + const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight + let value_radius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! + valueSerializer.writeLength(value_radius_value_1_bottomRight_value) + } + } + } + } + writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { + let valueSerializer: Serializer = this + const value_margin = value.margin + let value_margin_type: int32 = RuntimeType.UNDEFINED + value_margin_type = runtimeType(value_margin) + valueSerializer.writeInt8(value_margin_type) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type: int32 = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (value_margin_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + const value_margin_value_0 = unsafeCast(value_margin_value) + valueSerializer.writeLengthMetrics(value_margin_value_0) + } + else if (isPadding(value_margin_value)) { + valueSerializer.writeInt8(1) + const value_margin_value_1 = unsafeCast(value_margin_value) + const value_margin_value_1_top = value_margin_value_1.top + let value_margin_value_1_top_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) + valueSerializer.writeInt8(value_margin_value_1_top_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { + const value_margin_value_1_top_value = value_margin_value_1_top! + valueSerializer.writeLength(value_margin_value_1_top_value) + } + const value_margin_value_1_right = value_margin_value_1.right + let value_margin_value_1_right_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) + valueSerializer.writeInt8(value_margin_value_1_right_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { + const value_margin_value_1_right_value = value_margin_value_1_right! + valueSerializer.writeLength(value_margin_value_1_right_value) + } + const value_margin_value_1_bottom = value_margin_value_1.bottom + let value_margin_value_1_bottom_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) + valueSerializer.writeInt8(value_margin_value_1_bottom_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { + const value_margin_value_1_bottom_value = value_margin_value_1_bottom! + valueSerializer.writeLength(value_margin_value_1_bottom_value) + } + const value_margin_value_1_left = value_margin_value_1.left + let value_margin_value_1_left_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) + valueSerializer.writeInt8(value_margin_value_1_left_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { + const value_margin_value_1_left_value = value_margin_value_1_left! + valueSerializer.writeLength(value_margin_value_1_left_value) + } + } + } + const value_padding = value.padding + let value_padding_type: int32 = RuntimeType.UNDEFINED + value_padding_type = runtimeType(value_padding) + valueSerializer.writeInt8(value_padding_type) + if ((RuntimeType.UNDEFINED) != (value_padding_type)) { + const value_padding_value = value_padding! + let value_padding_value_type: int32 = RuntimeType.UNDEFINED + value_padding_value_type = runtimeType(value_padding_value) + if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (value_padding_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + const value_padding_value_0 = unsafeCast(value_padding_value) + valueSerializer.writeLengthMetrics(value_padding_value_0) + } + else if (isPadding(value_padding_value)) { + valueSerializer.writeInt8(1) + const value_padding_value_1 = unsafeCast(value_padding_value) + const value_padding_value_1_top = value_padding_value_1.top + let value_padding_value_1_top_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) + valueSerializer.writeInt8(value_padding_value_1_top_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { + const value_padding_value_1_top_value = value_padding_value_1_top! + valueSerializer.writeLength(value_padding_value_1_top_value) + } + const value_padding_value_1_right = value_padding_value_1.right + let value_padding_value_1_right_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) + valueSerializer.writeInt8(value_padding_value_1_right_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { + const value_padding_value_1_right_value = value_padding_value_1_right! + valueSerializer.writeLength(value_padding_value_1_right_value) + } + const value_padding_value_1_bottom = value_padding_value_1.bottom + let value_padding_value_1_bottom_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) + valueSerializer.writeInt8(value_padding_value_1_bottom_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { + const value_padding_value_1_bottom_value = value_padding_value_1_bottom! + valueSerializer.writeLength(value_padding_value_1_bottom_value) + } + const value_padding_value_1_left = value_padding_value_1.left + let value_padding_value_1_left_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) + valueSerializer.writeInt8(value_padding_value_1_left_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { + const value_padding_value_1_left_value = value_padding_value_1_left! + valueSerializer.writeLength(value_padding_value_1_left_value) + } + } + } + const value_borderRadius = value.borderRadius + let value_borderRadius_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_type = runtimeType(value_borderRadius) + valueSerializer.writeInt8(value_borderRadius_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (value_borderRadius_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + const value_borderRadius_value_0 = unsafeCast(value_borderRadius_value) + valueSerializer.writeLengthMetrics(value_borderRadius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (((value_borderRadius_value!.hasOwnProperty("topLeft")) || (value_borderRadius_value!.hasOwnProperty("topRight")) || (value_borderRadius_value!.hasOwnProperty("bottomLeft")) || (value_borderRadius_value!.hasOwnProperty("bottomRight"))))) { + valueSerializer.writeInt8(1) + const value_borderRadius_value_1 = unsafeCast(value_borderRadius_value) + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) + } + } + } + } + writeSizeOptions(value: SizeOptions): void { let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) + const value_width = value.width + let value_width_type: int32 = RuntimeType.UNDEFINED + value_width_type = runtimeType(value_width) + valueSerializer.writeInt8(value_width_type) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value) + } + const value_height = value.height + let value_height_type: int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeLength(value_height_value) + } } writePosition(value: Position): void { let valueSerializer: Serializer = this @@ -394,16 +659,6 @@ export class Serializer extends SerializerBase { const value__SymbolGlyphModifierStub = value._SymbolGlyphModifierStub valueSerializer.writeString(value__SymbolGlyphModifierStub) } - writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { - let valueSerializer: Serializer = this - const value_pixelMap = value.pixelMap - valueSerializer.writePixelMap(value_pixelMap) - const value_size = value.size - const value_size_0 = value_size[0] - valueSerializer.writeLength(value_size_0) - const value_size_1 = value_size[1] - valueSerializer.writeLength(value_size_1) - } writeShadowOptions(value: ShadowOptions): void { let valueSerializer: Serializer = this const value_radius = value.radius @@ -554,6 +809,56 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_xxl_value) } } + writeBackgroundColorStyle(value: BackgroundColorStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeUserDataSpan(value: UserDataSpan): void { + } + writeCustomSpan(value: CustomSpan): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeUrlStyle(value: UrlStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLineHeightStyle(value: LineHeightStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeParagraphStyle(value: ParagraphStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeImageAttachment(value: ImageAttachment): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeGestureStyle(value: GestureStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeTextShadowStyle(value: TextShadowStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLetterSpacingStyle(value: LetterSpacingStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeDecorationStyle(value: DecorationStyle): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeTextStyle_styled_string(value: TextStyle_styled_string): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } writeArea(value: Area): void { let valueSerializer: Serializer = this const value_width = value.width @@ -733,7 +1038,7 @@ export class Serializer extends SerializerBase { const value_margin_value_0 = unsafeCast(value_margin_value) valueSerializer.writeLength(value_margin_value_0) } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (((value_margin_value!.hasOwnProperty("top")) || (value_margin_value!.hasOwnProperty("right")) || (value_margin_value!.hasOwnProperty("bottom")) || (value_margin_value!.hasOwnProperty("left"))))) { + else if (isPadding(value_margin_value)) { valueSerializer.writeInt8(1) const value_margin_value_1 = unsafeCast(value_margin_value) const value_margin_value_1_top = value_margin_value_1.top @@ -1070,252 +1375,75 @@ export class Serializer extends SerializerBase { } const value_subtitle = value.subtitle let value_subtitle_type: int32 = RuntimeType.UNDEFINED - value_subtitle_type = runtimeType(value_subtitle) - valueSerializer.writeInt8(value_subtitle_type) - if ((RuntimeType.UNDEFINED) != (value_subtitle_type)) { - const value_subtitle_value = value_subtitle! - let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED - value_subtitle_value_type = runtimeType(value_subtitle_value) - if (RuntimeType.STRING == value_subtitle_value_type) { - valueSerializer.writeInt8(0) - const value_subtitle_value_0 = unsafeCast(value_subtitle_value) - valueSerializer.writeString(value_subtitle_value_0) - } - else if (RuntimeType.OBJECT == value_subtitle_value_type) { - valueSerializer.writeInt8(1) - const value_subtitle_value_1 = unsafeCast(value_subtitle_value) - valueSerializer.writeResource(value_subtitle_value_1) - } - } - } - writeTransitionEffect(value: TransitionEffect): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLocalizedBorderRadiuses(value: LocalizedBorderRadiuses): void { - let valueSerializer: Serializer = this - const value_topStart = value.topStart - let value_topStart_type: int32 = RuntimeType.UNDEFINED - value_topStart_type = runtimeType(value_topStart) - valueSerializer.writeInt8(value_topStart_type) - if ((RuntimeType.UNDEFINED) != (value_topStart_type)) { - const value_topStart_value = value_topStart! - valueSerializer.writeLengthMetrics(value_topStart_value) - } - const value_topEnd = value.topEnd - let value_topEnd_type: int32 = RuntimeType.UNDEFINED - value_topEnd_type = runtimeType(value_topEnd) - valueSerializer.writeInt8(value_topEnd_type) - if ((RuntimeType.UNDEFINED) != (value_topEnd_type)) { - const value_topEnd_value = value_topEnd! - valueSerializer.writeLengthMetrics(value_topEnd_value) - } - const value_bottomStart = value.bottomStart - let value_bottomStart_type: int32 = RuntimeType.UNDEFINED - value_bottomStart_type = runtimeType(value_bottomStart) - valueSerializer.writeInt8(value_bottomStart_type) - if ((RuntimeType.UNDEFINED) != (value_bottomStart_type)) { - const value_bottomStart_value = value_bottomStart! - valueSerializer.writeLengthMetrics(value_bottomStart_value) - } - const value_bottomEnd = value.bottomEnd - let value_bottomEnd_type: int32 = RuntimeType.UNDEFINED - value_bottomEnd_type = runtimeType(value_bottomEnd) - valueSerializer.writeInt8(value_bottomEnd_type) - if ((RuntimeType.UNDEFINED) != (value_bottomEnd_type)) { - const value_bottomEnd_value = value_bottomEnd! - valueSerializer.writeLengthMetrics(value_bottomEnd_value) - } - } - writeCanvasPattern(value: CanvasPattern): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeCanvasGradient(value: CanvasGradient): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeColorMetrics(value: ColorMetrics): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeStyledStringValue(value: StyledStringValue): void { - let valueSerializer: Serializer = this - const value_stub = value.stub - valueSerializer.writeString(value_stub) - } - writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { - let valueSerializer: Serializer = this - const value_margin = value.margin - let value_margin_type: int32 = RuntimeType.UNDEFINED - value_margin_type = runtimeType(value_margin) - valueSerializer.writeInt8(value_margin_type) - if ((RuntimeType.UNDEFINED) != (value_margin_type)) { - const value_margin_value = value_margin! - let value_margin_value_type: int32 = RuntimeType.UNDEFINED - value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (value_margin_value instanceof LengthMetrics)) { - valueSerializer.writeInt8(0) - const value_margin_value_0 = unsafeCast(value_margin_value) - valueSerializer.writeLengthMetrics(value_margin_value_0) - } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (((value_margin_value!.hasOwnProperty("top")) || (value_margin_value!.hasOwnProperty("right")) || (value_margin_value!.hasOwnProperty("bottom")) || (value_margin_value!.hasOwnProperty("left"))))) { - valueSerializer.writeInt8(1) - const value_margin_value_1 = unsafeCast(value_margin_value) - const value_margin_value_1_top = value_margin_value_1.top - let value_margin_value_1_top_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) - valueSerializer.writeInt8(value_margin_value_1_top_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { - const value_margin_value_1_top_value = value_margin_value_1_top! - valueSerializer.writeLength(value_margin_value_1_top_value) - } - const value_margin_value_1_right = value_margin_value_1.right - let value_margin_value_1_right_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) - valueSerializer.writeInt8(value_margin_value_1_right_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { - const value_margin_value_1_right_value = value_margin_value_1_right! - valueSerializer.writeLength(value_margin_value_1_right_value) - } - const value_margin_value_1_bottom = value_margin_value_1.bottom - let value_margin_value_1_bottom_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) - valueSerializer.writeInt8(value_margin_value_1_bottom_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { - const value_margin_value_1_bottom_value = value_margin_value_1_bottom! - valueSerializer.writeLength(value_margin_value_1_bottom_value) - } - const value_margin_value_1_left = value_margin_value_1.left - let value_margin_value_1_left_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) - valueSerializer.writeInt8(value_margin_value_1_left_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { - const value_margin_value_1_left_value = value_margin_value_1_left! - valueSerializer.writeLength(value_margin_value_1_left_value) - } - } - } - const value_padding = value.padding - let value_padding_type: int32 = RuntimeType.UNDEFINED - value_padding_type = runtimeType(value_padding) - valueSerializer.writeInt8(value_padding_type) - if ((RuntimeType.UNDEFINED) != (value_padding_type)) { - const value_padding_value = value_padding! - let value_padding_value_type: int32 = RuntimeType.UNDEFINED - value_padding_value_type = runtimeType(value_padding_value) - if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (value_padding_value instanceof LengthMetrics)) { - valueSerializer.writeInt8(0) - const value_padding_value_0 = unsafeCast(value_padding_value) - valueSerializer.writeLengthMetrics(value_padding_value_0) - } - else if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (((value_padding_value!.hasOwnProperty("top")) || (value_padding_value!.hasOwnProperty("right")) || (value_padding_value!.hasOwnProperty("bottom")) || (value_padding_value!.hasOwnProperty("left"))))) { - valueSerializer.writeInt8(1) - const value_padding_value_1 = unsafeCast(value_padding_value) - const value_padding_value_1_top = value_padding_value_1.top - let value_padding_value_1_top_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) - valueSerializer.writeInt8(value_padding_value_1_top_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { - const value_padding_value_1_top_value = value_padding_value_1_top! - valueSerializer.writeLength(value_padding_value_1_top_value) - } - const value_padding_value_1_right = value_padding_value_1.right - let value_padding_value_1_right_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) - valueSerializer.writeInt8(value_padding_value_1_right_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { - const value_padding_value_1_right_value = value_padding_value_1_right! - valueSerializer.writeLength(value_padding_value_1_right_value) - } - const value_padding_value_1_bottom = value_padding_value_1.bottom - let value_padding_value_1_bottom_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) - valueSerializer.writeInt8(value_padding_value_1_bottom_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { - const value_padding_value_1_bottom_value = value_padding_value_1_bottom! - valueSerializer.writeLength(value_padding_value_1_bottom_value) - } - const value_padding_value_1_left = value_padding_value_1.left - let value_padding_value_1_left_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) - valueSerializer.writeInt8(value_padding_value_1_left_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { - const value_padding_value_1_left_value = value_padding_value_1_left! - valueSerializer.writeLength(value_padding_value_1_left_value) - } - } - } - const value_borderRadius = value.borderRadius - let value_borderRadius_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_type = runtimeType(value_borderRadius) - valueSerializer.writeInt8(value_borderRadius_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { - const value_borderRadius_value = value_borderRadius! - let value_borderRadius_value_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (value_borderRadius_value instanceof LengthMetrics)) { + value_subtitle_type = runtimeType(value_subtitle) + valueSerializer.writeInt8(value_subtitle_type) + if ((RuntimeType.UNDEFINED) != (value_subtitle_type)) { + const value_subtitle_value = value_subtitle! + let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED + value_subtitle_value_type = runtimeType(value_subtitle_value) + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) - const value_borderRadius_value_0 = unsafeCast(value_borderRadius_value) - valueSerializer.writeLengthMetrics(value_borderRadius_value_0) + const value_subtitle_value_0 = unsafeCast(value_subtitle_value) + valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (((value_borderRadius_value!.hasOwnProperty("topLeft")) || (value_borderRadius_value!.hasOwnProperty("topRight")) || (value_borderRadius_value!.hasOwnProperty("bottomLeft")) || (value_borderRadius_value!.hasOwnProperty("bottomRight"))))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) - const value_borderRadius_value_1 = unsafeCast(value_borderRadius_value) - const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft - let value_borderRadius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { - const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! - valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) - } - const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight - let value_borderRadius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) - valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { - const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! - valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) - } - const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft - let value_borderRadius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { - const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! - valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) - } - const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight - let value_borderRadius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { - const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! - valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) - } + const value_subtitle_value_1 = unsafeCast(value_subtitle_value) + valueSerializer.writeResource(value_subtitle_value_1) } } } - writeSizeOptions(value: SizeOptions): void { + writeTransitionEffect(value: TransitionEffect): void { let valueSerializer: Serializer = this - const value_width = value.width - let value_width_type: int32 = RuntimeType.UNDEFINED - value_width_type = runtimeType(value_width) - valueSerializer.writeInt8(value_width_type) - if ((RuntimeType.UNDEFINED) != (value_width_type)) { - const value_width_value = value_width! - valueSerializer.writeLength(value_width_value) + valueSerializer.writePointer(toPeerPtr(value)) + } + writeLocalizedBorderRadiuses(value: LocalizedBorderRadiuses): void { + let valueSerializer: Serializer = this + const value_topStart = value.topStart + let value_topStart_type: int32 = RuntimeType.UNDEFINED + value_topStart_type = runtimeType(value_topStart) + valueSerializer.writeInt8(value_topStart_type) + if ((RuntimeType.UNDEFINED) != (value_topStart_type)) { + const value_topStart_value = value_topStart! + valueSerializer.writeLengthMetrics(value_topStart_value) } - const value_height = value.height - let value_height_type: int32 = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - valueSerializer.writeInt8(value_height_type) - if ((RuntimeType.UNDEFINED) != (value_height_type)) { - const value_height_value = value_height! - valueSerializer.writeLength(value_height_value) + const value_topEnd = value.topEnd + let value_topEnd_type: int32 = RuntimeType.UNDEFINED + value_topEnd_type = runtimeType(value_topEnd) + valueSerializer.writeInt8(value_topEnd_type) + if ((RuntimeType.UNDEFINED) != (value_topEnd_type)) { + const value_topEnd_value = value_topEnd! + valueSerializer.writeLengthMetrics(value_topEnd_value) + } + const value_bottomStart = value.bottomStart + let value_bottomStart_type: int32 = RuntimeType.UNDEFINED + value_bottomStart_type = runtimeType(value_bottomStart) + valueSerializer.writeInt8(value_bottomStart_type) + if ((RuntimeType.UNDEFINED) != (value_bottomStart_type)) { + const value_bottomStart_value = value_bottomStart! + valueSerializer.writeLengthMetrics(value_bottomStart_value) + } + const value_bottomEnd = value.bottomEnd + let value_bottomEnd_type: int32 = RuntimeType.UNDEFINED + value_bottomEnd_type = runtimeType(value_bottomEnd) + valueSerializer.writeInt8(value_bottomEnd_type) + if ((RuntimeType.UNDEFINED) != (value_bottomEnd_type)) { + const value_bottomEnd_value = value_bottomEnd! + valueSerializer.writeLengthMetrics(value_bottomEnd_value) } } + writeCanvasPattern(value: CanvasPattern): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeCanvasGradient(value: CanvasGradient): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } + writeColorMetrics(value: ColorMetrics): void { + let valueSerializer: Serializer = this + valueSerializer.writePointer(toPeerPtr(value)) + } writeImageAnalyzerController(value: ImageAnalyzerController): void { let valueSerializer: Serializer = this valueSerializer.writePointer(toPeerPtr(value)) @@ -3650,97 +3778,73 @@ export class Serializer extends SerializerBase { const value_styledKey = value.styledKey valueSerializer.writeInt32(value_styledKey) const value_styledValue = value.styledValue - valueSerializer.writeStyledStringValue(value_styledValue) - } - writeTextBackgroundStyle(value: TextBackgroundStyle): void { - let valueSerializer: Serializer = this - const value_color = value.color - let value_color_type: int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - const value_color_value = value_color! - let value_color_value_type: int32 = RuntimeType.UNDEFINED - value_color_value_type = runtimeType(value_color_value) - if (((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_color_value_0 = unsafeCast(value_color_value) - valueSerializer.writeInt32(value_color_value_0) - } - else if (RuntimeType.NUMBER == value_color_value_type) { - valueSerializer.writeInt8(1) - const value_color_value_1 = unsafeCast(value_color_value) - valueSerializer.writeNumber(value_color_value_1) - } - else if (RuntimeType.STRING == value_color_value_type) { - valueSerializer.writeInt8(2) - const value_color_value_2 = unsafeCast(value_color_value) - valueSerializer.writeString(value_color_value_2) - } - else if (RuntimeType.OBJECT == value_color_value_type) { - valueSerializer.writeInt8(3) - const value_color_value_3 = unsafeCast(value_color_value) - valueSerializer.writeResource(value_color_value_3) - } + let value_styledValue_type: int32 = RuntimeType.UNDEFINED + value_styledValue_type = runtimeType(value_styledValue) + if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextStyle_styled_string)) { + valueSerializer.writeInt8(0) + const value_styledValue_0 = unsafeCast(value_styledValue) + valueSerializer.writeTextStyle_styled_string(value_styledValue_0) } - const value_radius = value.radius - let value_radius_type: int32 = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - valueSerializer.writeInt8(value_radius_type) - if ((RuntimeType.UNDEFINED) != (value_radius_type)) { - const value_radius_value = value_radius! - let value_radius_value_type: int32 = RuntimeType.UNDEFINED - value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { - valueSerializer.writeInt8(0) - const value_radius_value_0 = unsafeCast(value_radius_value) - valueSerializer.writeLength(value_radius_value_0) - } - else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (((value_radius_value!.hasOwnProperty("topLeft")) || (value_radius_value!.hasOwnProperty("topRight")) || (value_radius_value!.hasOwnProperty("bottomLeft")) || (value_radius_value!.hasOwnProperty("bottomRight"))))) { - valueSerializer.writeInt8(1) - const value_radius_value_1 = unsafeCast(value_radius_value) - const value_radius_value_1_topLeft = value_radius_value_1.topLeft - let value_radius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) - valueSerializer.writeInt8(value_radius_value_1_topLeft_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! - valueSerializer.writeLength(value_radius_value_1_topLeft_value) - } - const value_radius_value_1_topRight = value_radius_value_1.topRight - let value_radius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) - valueSerializer.writeInt8(value_radius_value_1_topRight_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { - const value_radius_value_1_topRight_value = value_radius_value_1_topRight! - valueSerializer.writeLength(value_radius_value_1_topRight_value) - } - const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft - let value_radius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) - } - const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight - let value_radius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! - valueSerializer.writeLength(value_radius_value_1_bottomRight_value) - } - } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof DecorationStyle)) { + valueSerializer.writeInt8(1) + const value_styledValue_1 = unsafeCast(value_styledValue) + valueSerializer.writeDecorationStyle(value_styledValue_1) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BaselineOffsetStyle)) { + valueSerializer.writeInt8(2) + const value_styledValue_2 = unsafeCast(value_styledValue) + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LetterSpacingStyle)) { + valueSerializer.writeInt8(3) + const value_styledValue_3 = unsafeCast(value_styledValue) + valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextShadowStyle)) { + valueSerializer.writeInt8(4) + const value_styledValue_4 = unsafeCast(value_styledValue) + valueSerializer.writeTextShadowStyle(value_styledValue_4) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof GestureStyle)) { + valueSerializer.writeInt8(5) + const value_styledValue_5 = unsafeCast(value_styledValue) + valueSerializer.writeGestureStyle(value_styledValue_5) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ImageAttachment)) { + valueSerializer.writeInt8(6) + const value_styledValue_6 = unsafeCast(value_styledValue) + valueSerializer.writeImageAttachment(value_styledValue_6) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ParagraphStyle)) { + valueSerializer.writeInt8(7) + const value_styledValue_7 = unsafeCast(value_styledValue) + valueSerializer.writeParagraphStyle(value_styledValue_7) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LineHeightStyle)) { + valueSerializer.writeInt8(8) + const value_styledValue_8 = unsafeCast(value_styledValue) + valueSerializer.writeLineHeightStyle(value_styledValue_8) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UrlStyle)) { + valueSerializer.writeInt8(9) + const value_styledValue_9 = unsafeCast(value_styledValue) + valueSerializer.writeUrlStyle(value_styledValue_9) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof CustomSpan)) { + valueSerializer.writeInt8(10) + const value_styledValue_10 = unsafeCast(value_styledValue) + valueSerializer.writeCustomSpan(value_styledValue_10) + } + else if (RuntimeType.OBJECT == value_styledValue_type) { + valueSerializer.writeInt8(11) + const value_styledValue_11 = unsafeCast(value_styledValue) + valueSerializer.writeUserDataSpan(value_styledValue_11) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BackgroundColorStyle)) { + valueSerializer.writeInt8(12) + const value_styledValue_12 = unsafeCast(value_styledValue) + valueSerializer.writeBackgroundColorStyle(value_styledValue_12) } - } - writeCustomSpan(value: CustomSpan): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeImageAttachment(value: ImageAttachment): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) } writeWaterFlowAttribute(value: WaterFlowAttribute): void { } @@ -3796,7 +3900,7 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type: int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (((value_margin_value!.hasOwnProperty("top")) || (value_margin_value!.hasOwnProperty("right")) || (value_margin_value!.hasOwnProperty("bottom")) || (value_margin_value!.hasOwnProperty("left"))))) { + if (isPadding(value_margin_value)) { valueSerializer.writeInt8(0) const value_margin_value_0 = unsafeCast(value_margin_value) const value_margin_value_0_top = value_margin_value_0.top @@ -5267,7 +5371,7 @@ export class Serializer extends SerializerBase { const value__padding_value = value__padding! let value__padding_value_type: int32 = RuntimeType.UNDEFINED value__padding_value_type = runtimeType(value__padding_value) - if (((RuntimeType.OBJECT) == (value__padding_value_type)) && (((value__padding_value!.hasOwnProperty("right")) || (value__padding_value!.hasOwnProperty("left"))))) { + if (isPadding(value__padding_value)) { valueSerializer.writeInt8(0) const value__padding_value_0 = unsafeCast(value__padding_value) const value__padding_value_0_top = value__padding_value_0.top @@ -5421,12 +5525,12 @@ export class Serializer extends SerializerBase { const value__padding_value = value__padding! let value__padding_value_type: int32 = RuntimeType.UNDEFINED value__padding_value_type = runtimeType(value__padding_value) - if ((((RuntimeType.OBJECT) == (value__padding_value_type)) && (((value__padding_value!.hasOwnProperty("top")) || (value__padding_value!.hasOwnProperty("right")) || (value__padding_value!.hasOwnProperty("bottom")) || (value__padding_value!.hasOwnProperty("left"))))) || (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value))))) { + if ((isPadding(value__padding_value)) || (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value))))) { valueSerializer.writeInt8(0) const value__padding_value_0 = unsafeCast(value__padding_value) let value__padding_value_0_type: int32 = RuntimeType.UNDEFINED value__padding_value_0_type = runtimeType(value__padding_value_0) - if (((RuntimeType.OBJECT) == (value__padding_value_0_type)) && (((value__padding_value_0!.hasOwnProperty("top")) || (value__padding_value_0!.hasOwnProperty("right")) || (value__padding_value_0!.hasOwnProperty("bottom")) || (value__padding_value_0!.hasOwnProperty("left"))))) { + if (isPadding(value__padding_value_0)) { valueSerializer.writeInt8(0) const value__padding_value_0_0 = unsafeCast(value__padding_value_0) const value__padding_value_0_0_top = value__padding_value_0_0.top @@ -13505,14 +13609,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } - writeUrlStyle(value: UrlStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLineHeightStyle(value: LineHeightStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeParagraphStyleInterface(value: ParagraphStyleInterface): void { let valueSerializer: Serializer = this const value_textAlign = value.textAlign @@ -13575,10 +13671,6 @@ export class Serializer extends SerializerBase { } } } - writeParagraphStyle(value: ParagraphStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeGestureStyleInterface(value: GestureStyleInterface): void { let valueSerializer: Serializer = this const value_onClick = value.onClick @@ -13598,30 +13690,6 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(value_onLongPress_value) } } - writeGestureStyle(value: GestureStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeBackgroundColorStyle(value: BackgroundColorStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeTextShadowStyle(value: TextShadowStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeLetterSpacingStyle(value: LetterSpacingStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } - writeDecorationStyle(value: DecorationStyle): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeTextStyleInterface(value: TextStyleInterface): void { let valueSerializer: Serializer = this const value_fontColor = value.fontColor @@ -13713,10 +13781,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_fontStyle_value) } } - writeTextStyle_styled_string(value: TextStyle_styled_string): void { - let valueSerializer: Serializer = this - valueSerializer.writePointer(toPeerPtr(value)) - } writeStyleOptions(value: StyleOptions): void { let valueSerializer: Serializer = this const value_start = value.start @@ -13738,7 +13802,73 @@ export class Serializer extends SerializerBase { const value_styledKey = value.styledKey valueSerializer.writeInt32(value_styledKey) const value_styledValue = value.styledValue - valueSerializer.writeStyledStringValue(value_styledValue) + let value_styledValue_type: int32 = RuntimeType.UNDEFINED + value_styledValue_type = runtimeType(value_styledValue) + if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextStyle_styled_string)) { + valueSerializer.writeInt8(0) + const value_styledValue_0 = unsafeCast(value_styledValue) + valueSerializer.writeTextStyle_styled_string(value_styledValue_0) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof DecorationStyle)) { + valueSerializer.writeInt8(1) + const value_styledValue_1 = unsafeCast(value_styledValue) + valueSerializer.writeDecorationStyle(value_styledValue_1) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BaselineOffsetStyle)) { + valueSerializer.writeInt8(2) + const value_styledValue_2 = unsafeCast(value_styledValue) + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LetterSpacingStyle)) { + valueSerializer.writeInt8(3) + const value_styledValue_3 = unsafeCast(value_styledValue) + valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextShadowStyle)) { + valueSerializer.writeInt8(4) + const value_styledValue_4 = unsafeCast(value_styledValue) + valueSerializer.writeTextShadowStyle(value_styledValue_4) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof GestureStyle)) { + valueSerializer.writeInt8(5) + const value_styledValue_5 = unsafeCast(value_styledValue) + valueSerializer.writeGestureStyle(value_styledValue_5) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ImageAttachment)) { + valueSerializer.writeInt8(6) + const value_styledValue_6 = unsafeCast(value_styledValue) + valueSerializer.writeImageAttachment(value_styledValue_6) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ParagraphStyle)) { + valueSerializer.writeInt8(7) + const value_styledValue_7 = unsafeCast(value_styledValue) + valueSerializer.writeParagraphStyle(value_styledValue_7) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LineHeightStyle)) { + valueSerializer.writeInt8(8) + const value_styledValue_8 = unsafeCast(value_styledValue) + valueSerializer.writeLineHeightStyle(value_styledValue_8) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UrlStyle)) { + valueSerializer.writeInt8(9) + const value_styledValue_9 = unsafeCast(value_styledValue) + valueSerializer.writeUrlStyle(value_styledValue_9) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof CustomSpan)) { + valueSerializer.writeInt8(10) + const value_styledValue_10 = unsafeCast(value_styledValue) + valueSerializer.writeCustomSpan(value_styledValue_10) + } + else if (RuntimeType.OBJECT == value_styledValue_type) { + valueSerializer.writeInt8(11) + const value_styledValue_11 = unsafeCast(value_styledValue) + valueSerializer.writeUserDataSpan(value_styledValue_11) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BackgroundColorStyle)) { + valueSerializer.writeInt8(12) + const value_styledValue_12 = unsafeCast(value_styledValue) + valueSerializer.writeBackgroundColorStyle(value_styledValue_12) + } } writeReceiveCallback(value: ReceiveCallback): void { let valueSerializer: Serializer = this diff --git a/arkoala/arkui/src/generated/use_properties.ts b/arkoala/arkui/src/generated/use_properties.ts deleted file mode 100644 index 2aa4d4cf228257e65596842ffab9c3edc0d3f3fa..0000000000000000000000000000000000000000 --- a/arkoala/arkui/src/generated/use_properties.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { GeneratedPartialPropertiesType, PeerNode, PeerNodeType } from "@koalaui/arkoala" -import { PeerEventsProperties } from "./peer_events" -import { DataNode, contextNode } from "@koalaui/runtime" - -/** @memo */ -export function UseEventsProperties(properties: Partial) { - const parent = contextNode(PeerNodeType) - DataNode.attach(GeneratedPartialPropertiesType, properties, () => { - parent.invalidateProperties() - }) -} \ No newline at end of file diff --git a/arkoala/arkui/src/utils.ts b/arkoala/arkui/src/utils.ts new file mode 100644 index 0000000000000000000000000000000000000000..7393e2f94a6404eb4732ac9596fc6afa575c6c2c --- /dev/null +++ b/arkoala/arkui/src/utils.ts @@ -0,0 +1,38 @@ +/* + * 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. + */ + +export function isResource(value: unknown): boolean { + return typeof value === 'object' + && value !== null + && value.hasOwnProperty("bundleName") + && value.hasOwnProperty("moduleName") +} + +export function isPadding(value: unknown): boolean { + function isLength(value: unknown): boolean { + return typeof value === 'number' + || typeof value === 'string' + || isResource(value) + } + function hasLengthProperty(value: object, prop: string): boolean { + return value.hasOwnProperty(prop) && isLength(value[prop as keyof object]) + } + return typeof value === 'object' + && value !== null + && (hasLengthProperty(value, "top") + || hasLengthProperty(value, "left") + || hasLengthProperty(value, "bottom") + || hasLengthProperty(value, "right")) +} diff --git a/arkoala/framework/native/meson.build b/arkoala/framework/native/meson.build index 9023f1c540c9cfd90860078e8f74b10e08966989..7451946b008c3080d89d65bf72d6a502d82a83a9 100644 --- a/arkoala/framework/native/meson.build +++ b/arkoala/framework/native/meson.build @@ -25,7 +25,6 @@ libace_sources = [ arkoala_sources = [ './src/events.cc', './src/vsync.cc', - './src/generated/all_events.cc', './src/generated/bridge_generated.cc', './src/generated/callback_deserialize_call.cc', './src/generated/callback_managed_caller.cc', diff --git a/arkoala/framework/native/src/generated/Serializers.h b/arkoala/framework/native/src/generated/Serializers.h index d7f9cf3c7f4ab4644df8abc8a5e35efa5d1e9cff..f9809c1c0dd7bbc4624ef6db8d1209876ce7e259 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -30,6 +30,29 @@ inline Ark_RuntimeType runtimeType(const Opt_Int32& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Length& value) +{ + return static_cast(value.type); +} +template <> +inline void WriteToString(std::string* result, const Opt_Length* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Length& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Number& value) { return INTEROP_RUNTIME_NUMBER; @@ -115,17 +138,17 @@ inline Ark_RuntimeType runtimeType(const Opt_String& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Length& value) +inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) { - return static_cast(value.type); + return INTEROP_RUNTIME_BOOLEAN; } template <> -inline void WriteToString(std::string* result, const Opt_Length* value) { +inline void WriteToString(std::string* result, const Opt_Boolean* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -133,17 +156,23 @@ inline void WriteToString(std::string* result, const Opt_Length* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Length& value) +inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) +inline Ark_RuntimeType runtimeType(const Ark_LengthUnit& value) { - return INTEROP_RUNTIME_BOOLEAN; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Opt_Boolean* value) { +inline void WriteToString(std::string* result, const Ark_LengthUnit value) { + result->append("Ark_LengthUnit("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LengthUnit* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -156,7 +185,50 @@ inline void WriteToString(std::string* result, const Opt_Boolean* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) +inline Ark_RuntimeType runtimeType(const Opt_LengthUnit& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_BorderRadiuses& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_BorderRadiuses* value) { + result->append("{"); + // Ark_Length topLeft + result->append(".topLeft="); + WriteToString(result, &value->topLeft); + // Ark_Length topRight + result->append(", "); + result->append(".topRight="); + WriteToString(result, &value->topRight); + // Ark_Length bottomLeft + result->append(", "); + result->append(".bottomLeft="); + WriteToString(result, &value->bottomLeft); + // Ark_Length bottomRight + result->append(", "); + result->append(".bottomRight="); + WriteToString(result, &value->bottomRight); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_BorderRadiuses* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -208,18 +280,18 @@ inline Ark_RuntimeType runtimeType(const Opt_Resource& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Ark_Color& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ColoringStrategy value) { - result->append("Ark_ColoringStrategy("); +inline void WriteToString(std::string* result, const Ark_Color value) { + result->append("Ark_Color("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ColoringStrategy* value) { +inline void WriteToString(std::string* result, const Opt_Color* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -232,28 +304,34 @@ inline void WriteToString(std::string* result, const Opt_ColoringStrategy* value result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_Color& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Color& value) +inline Ark_RuntimeType runtimeType(const Ark_Tuple_Dimension_Dimension& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Color value) { - result->append("Ark_Color("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Tuple_Dimension_Dimension* value) { + result->append("{"); + // Ark_Length value0 + result->append(".value0="); + WriteToString(result, &value->value0); + // Ark_Length value1 + result->append(", "); + result->append(".value1="); + WriteToString(result, &value->value1); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Color* value) { +inline void WriteToString(std::string* result, const Opt_Tuple_Dimension_Dimension* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -261,23 +339,21 @@ inline void WriteToString(std::string* result, const Opt_Color* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Color& value) +inline Ark_RuntimeType runtimeType(const Opt_Tuple_Dimension_Dimension& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LengthUnit& value) +inline Ark_RuntimeType runtimeType(const Ark_PixelMap& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LengthUnit value) { - result->append("Ark_LengthUnit("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_PixelMap value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_LengthUnit* value) { +inline void WriteToString(std::string* result, const Opt_PixelMap* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -290,23 +366,21 @@ inline void WriteToString(std::string* result, const Opt_LengthUnit* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LengthUnit& value) +inline Ark_RuntimeType runtimeType(const Opt_PixelMap& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FontWeight& value) +inline Ark_RuntimeType runtimeType(const Ark_LengthMetrics& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_FontWeight value) { - result->append("Ark_FontWeight("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_LengthMetrics value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_FontWeight* value) { +inline void WriteToString(std::string* result, const Opt_LengthMetrics* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -319,26 +393,42 @@ inline void WriteToString(std::string* result, const Opt_FontWeight* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_FontWeight& value) +inline Ark_RuntimeType runtimeType(const Opt_LengthMetrics& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ICurve& value) +inline Ark_RuntimeType runtimeType(const Ark_Padding& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ICurve value) { - WriteToString(result, static_cast(value)); +inline void WriteToString(std::string* result, const Ark_Padding* value) { + result->append("{"); + // Ark_Length top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_Length right + result->append(", "); + result->append(".right="); + WriteToString(result, &value->right); + // Ark_Length bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_Length left + result->append(", "); + result->append(".left="); + WriteToString(result, &value->left); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ICurve* value) { +inline void WriteToString(std::string* result, const Opt_Padding* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -346,23 +436,23 @@ inline void WriteToString(std::string* result, const Opt_ICurve* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ICurve& value) +inline Ark_RuntimeType runtimeType(const Opt_Padding& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Curve& value) +inline Ark_RuntimeType runtimeType(const Ark_ColoringStrategy& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Curve value) { - result->append("Ark_Curve("); +inline void WriteToString(std::string* result, const Ark_ColoringStrategy value) { + result->append("Ark_ColoringStrategy("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Curve* value) { +inline void WriteToString(std::string* result, const Opt_ColoringStrategy* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -375,37 +465,39 @@ inline void WriteToString(std::string* result, const Opt_Curve* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Curve& value) +inline Ark_RuntimeType runtimeType(const Opt_ColoringStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_BorderRadiuses& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_BorderRadiuses: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Ark_Union_Dimension_BorderRadiuses* value) { result->append("{"); - // Ark_Length topLeft - result->append(".topLeft="); - WriteToString(result, &value->topLeft); - // Ark_Length topRight - result->append(", "); - result->append(".topRight="); - WriteToString(result, &value->topRight); - // Ark_Length bottomLeft - result->append(", "); - result->append(".bottomLeft="); - WriteToString(result, &value->bottomLeft); - // Ark_Length bottomRight + result->append(".selector="); + result->append(std::to_string(value->selector)); result->append(", "); - result->append(".bottomRight="); - WriteToString(result, &value->bottomRight); + // Ark_Length + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_BorderRadiuses + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_Union_Dimension_BorderRadiuses* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -418,37 +510,51 @@ inline void WriteToString(std::string* result, const Opt_BorderRadiuses* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Padding& value) +inline Ark_RuntimeType runtimeType(const Ark_ResourceColor& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + case 3: return runtimeType(value.value3); + default: INTEROP_FATAL("Bad selector in Ark_ResourceColor: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_Padding* value) { +inline void WriteToString(std::string* result, const Ark_ResourceColor* value) { result->append("{"); - // Ark_Length top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_Length right - result->append(", "); - result->append(".right="); - WriteToString(result, &value->right); - // Ark_Length bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_Length left + result->append(".selector="); + result->append(std::to_string(value->selector)); result->append(", "); - result->append(".left="); - WriteToString(result, &value->left); + // Ark_Color + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, value->value0); + } + // Ark_Number + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + // Ark_String + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, &value->value2); + } + // Ark_Resource + if (value->selector == 3) { + result->append(".value3="); + WriteToString(result, &value->value3); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Padding* value) { +inline void WriteToString(std::string* result, const Opt_ResourceColor* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -461,29 +567,29 @@ inline void WriteToString(std::string* result, const Opt_Padding* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Padding& value) +inline Ark_RuntimeType runtimeType(const Opt_ResourceColor& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Tuple_Dimension_Dimension& value) +inline Ark_RuntimeType runtimeType(const Ark_LeadingMarginPlaceholder& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Tuple_Dimension_Dimension* value) { +inline void WriteToString(std::string* result, const Ark_LeadingMarginPlaceholder* value) { result->append("{"); - // Ark_Length value0 - result->append(".value0="); - WriteToString(result, &value->value0); - // Ark_Length value1 + // Ark_PixelMap pixelMap + result->append(".pixelMap="); + WriteToString(result, value->pixelMap); + // Ark_Tuple_Dimension_Dimension size result->append(", "); - result->append(".value1="); - WriteToString(result, &value->value1); + result->append(".size="); + WriteToString(result, &value->size); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Tuple_Dimension_Dimension* value) { +inline void WriteToString(std::string* result, const Opt_LeadingMarginPlaceholder* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -496,26 +602,44 @@ inline void WriteToString(std::string* result, const Opt_Tuple_Dimension_Dimensi result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Tuple_Dimension_Dimension& value) +inline Ark_RuntimeType runtimeType(const Opt_LeadingMarginPlaceholder& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PixelMap& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_BorderRadiuses& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_BorderRadiuses: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_PixelMap value) { - WriteToString(result, static_cast(value)); +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_BorderRadiuses* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_LengthMetrics + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, value->value0); + } + // Ark_BorderRadiuses + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_PixelMap* value) { +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_BorderRadiuses* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -523,31 +647,31 @@ inline void WriteToString(std::string* result, const Opt_PixelMap* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_PixelMap& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Resource& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Padding& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_Number_Resource: %d", value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_Padding: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_Resource* value) { +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Padding* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Number + // Ark_LengthMetrics if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } - // Ark_Resource + // Ark_Padding if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -555,7 +679,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Number_Resource* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_Resource* value) { +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Padding* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -568,51 +692,39 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_Resource* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_Resource& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Padding& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Color_String_Resource_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Margin& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - case 3: return runtimeType(value.value3); - default: INTEROP_FATAL("Bad selector in Ark_Union_Color_String_Resource_ColoringStrategy: %d", value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_Margin: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Color_String_Resource_ColoringStrategy* value) { +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Margin* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Color + // Ark_LengthMetrics if (value->selector == 0) { result->append(".value0="); WriteToString(result, value->value0); } - // Ark_String + // Ark_Padding if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); } - // Ark_Resource - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_ColoringStrategy - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, value->value3); - } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Color_String_Resource_ColoringStrategy* value) { +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Margin* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -625,23 +737,23 @@ inline void WriteToString(std::string* result, const Opt_Union_Color_String_Reso result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Color_String_Resource_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Margin& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ShadowType& value) +inline Ark_RuntimeType runtimeType(const Ark_FontWeight& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ShadowType value) { - result->append("Ark_ShadowType("); +inline void WriteToString(std::string* result, const Ark_FontWeight value) { + result->append("Ark_FontWeight("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ShadowType* value) { +inline void WriteToString(std::string* result, const Opt_FontWeight* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -654,21 +766,21 @@ inline void WriteToString(std::string* result, const Opt_ShadowType* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ShadowType& value) +inline Ark_RuntimeType runtimeType(const Opt_FontWeight& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LengthMetrics& value) +inline Ark_RuntimeType runtimeType(const Ark_ICurve& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LengthMetrics value) { +inline void WriteToString(std::string* result, const Ark_ICurve value) { WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_LengthMetrics* value) { +inline void WriteToString(std::string* result, const Opt_ICurve* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -681,58 +793,23 @@ inline void WriteToString(std::string* result, const Opt_LengthMetrics* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LengthMetrics& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Position& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_Position* value) { - result->append("{"); - // Ark_Length x - result->append(".x="); - WriteToString(result, &value->x); - // Ark_Length y - result->append(", "); - result->append(".y="); - WriteToString(result, &value->y); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Position* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Position& value) +inline Ark_RuntimeType runtimeType(const Opt_ICurve& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FontStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_Curve& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_FontStyle value) { - result->append("Ark_FontStyle("); +inline void WriteToString(std::string* result, const Ark_Curve value) { + result->append("Ark_Curve("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_FontStyle* value) { +inline void WriteToString(std::string* result, const Opt_Curve* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -745,26 +822,26 @@ inline void WriteToString(std::string* result, const Opt_FontStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_FontStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Curve& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Resource& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource: %d", value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_Resource: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_String_Resource* value) { +inline void WriteToString(std::string* result, const Ark_Union_Number_Resource* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_String + // Ark_Number if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); @@ -777,7 +854,7 @@ inline void WriteToString(std::string* result, const Ark_Union_String_Resource* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_String_Resource* value) { +inline void WriteToString(std::string* result, const Opt_Union_Number_Resource* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -790,45 +867,51 @@ inline void WriteToString(std::string* result, const Opt_Union_String_Resource* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_String_Resource& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_FontWeight_Number_String& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Color_String_Resource_ColoringStrategy& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: INTEROP_FATAL("Bad selector in Ark_Union_FontWeight_Number_String: %d", value.selector); + case 3: return runtimeType(value.value3); + default: INTEROP_FATAL("Bad selector in Ark_Union_Color_String_Resource_ColoringStrategy: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_FontWeight_Number_String* value) { +inline void WriteToString(std::string* result, const Ark_Union_Color_String_Resource_ColoringStrategy* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_FontWeight + // Ark_Color if (value->selector == 0) { result->append(".value0="); WriteToString(result, value->value0); } - // Ark_Number + // Ark_String if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); } - // Ark_String + // Ark_Resource if (value->selector == 2) { result->append(".value2="); WriteToString(result, &value->value2); } + // Ark_ColoringStrategy + if (value->selector == 3) { + result->append(".value3="); + WriteToString(result, value->value3); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_FontWeight_Number_String* value) { +inline void WriteToString(std::string* result, const Opt_Union_Color_String_Resource_ColoringStrategy* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -841,44 +924,28 @@ inline void WriteToString(std::string* result, const Opt_Union_FontWeight_Number result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_FontWeight_Number_String& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Color_String_Resource_ColoringStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ResourceStr& value) +inline Ark_RuntimeType runtimeType(const Ark_ShadowType& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_ResourceStr: %d", value.selector); - } + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ResourceStr* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_String - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_Resource - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ShadowType value) { + result->append("Ark_ShadowType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ResourceStr* value) { +inline void WriteToString(std::string* result, const Opt_ShadowType* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -886,25 +953,29 @@ inline void WriteToString(std::string* result, const Opt_ResourceStr* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ResourceStr& value) +inline Ark_RuntimeType runtimeType(const Opt_ShadowType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SymbolGlyphModifier& value) +inline Ark_RuntimeType runtimeType(const Ark_TextBackgroundStyle& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SymbolGlyphModifier* value) { +inline void WriteToString(std::string* result, const Ark_TextBackgroundStyle* value) { result->append("{"); - // Ark_String _SymbolGlyphModifierStub - result->append("._SymbolGlyphModifierStub="); - WriteToString(result, &value->_SymbolGlyphModifierStub); + // Ark_ResourceColor color + result->append(".color="); + WriteToString(result, &value->color); + // Ark_Union_Dimension_BorderRadiuses radius + result->append(", "); + result->append(".radius="); + WriteToString(result, &value->radius); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_SymbolGlyphModifier* value) { +inline void WriteToString(std::string* result, const Opt_TextBackgroundStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -917,39 +988,515 @@ inline void WriteToString(std::string* result, const Opt_SymbolGlyphModifier* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SymbolGlyphModifier& value) +inline Ark_RuntimeType runtimeType(const Opt_TextBackgroundStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Curve_ICurve& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_LeadingMarginPlaceholder& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_Curve_ICurve: %d", value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_LeadingMarginPlaceholder: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Curve_ICurve* value) { +inline void WriteToString(std::string* result, const Ark_Union_Number_LeadingMarginPlaceholder* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Curve + // Ark_Number + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_LeadingMarginPlaceholder + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Union_Number_LeadingMarginPlaceholder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_LeadingMarginPlaceholder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_WordBreak& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_WordBreak value) { + result->append("Ark_WordBreak("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WordBreak* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WordBreak& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextOverflow& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextOverflow value) { + result->append("Ark_TextOverflow("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextOverflow* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextOverflow& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextAlign& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextAlign value) { + result->append("Ark_TextAlign("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextAlign* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextAlign& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ImageAttachmentLayoutStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ImageAttachmentLayoutStyle* value) { + result->append("{"); + // Ark_Union_LengthMetrics_Margin margin + result->append(".margin="); + WriteToString(result, &value->margin); + // Ark_Union_LengthMetrics_Padding padding + result->append(", "); + result->append(".padding="); + WriteToString(result, &value->padding); + // Ark_Union_LengthMetrics_BorderRadiuses borderRadius + result->append(", "); + result->append(".borderRadius="); + WriteToString(result, &value->borderRadius); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ImageAttachmentLayoutStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentLayoutStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ImageFit& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ImageFit value) { + result->append("Ark_ImageFit("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ImageFit* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ImageFit& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ImageSpanAlignment& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ImageSpanAlignment value) { + result->append("Ark_ImageSpanAlignment("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ImageSpanAlignment* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ImageSpanAlignment& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_SizeOptions& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SizeOptions* value) { + result->append("{"); + // Ark_Length width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Length height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SizeOptions* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SizeOptions& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_ShadowOptions& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_ShadowOptions* value); + +inline void WriteToString(std::string* result, const Array_ShadowOptions* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_ShadowOptions*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_ShadowOptions* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_ShadowOptions& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextDecorationStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextDecorationStyle value) { + result->append("Ark_TextDecorationStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextDecorationStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextDecorationStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextDecorationType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextDecorationType value) { + result->append("Ark_TextDecorationType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextDecorationType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextDecorationType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_FontStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_FontStyle value) { + result->append("Ark_FontStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_FontStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_FontStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Position& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Position* value) { + result->append("{"); + // Ark_Length x + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Length y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Position* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Position& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_String_Resource* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_String + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_Resource + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Union_String_Resource* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Union_String_Resource& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_FontWeight_Number_String& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + default: INTEROP_FATAL("Bad selector in Ark_Union_FontWeight_Number_String: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_FontWeight_Number_String* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_FontWeight if (value->selector == 0) { result->append(".value0="); WriteToString(result, value->value0); } - // Ark_ICurve + // Ark_Number if (value->selector == 1) { result->append(".value1="); - WriteToString(result, value->value1); + WriteToString(result, &value->value1); + } + // Ark_String + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, &value->value2); } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Curve_ICurve* value) { +inline void WriteToString(std::string* result, const Opt_Union_FontWeight_Number_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -962,31 +1509,31 @@ inline void WriteToString(std::string* result, const Opt_Union_Curve_ICurve* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Curve_ICurve& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_FontWeight_Number_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_ResourceStr& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_BorderRadiuses: %d", value.selector); + default: INTEROP_FATAL("Bad selector in Ark_ResourceStr: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Dimension_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Ark_ResourceStr* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Length + // Ark_String if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_BorderRadiuses + // Ark_Resource if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -994,7 +1541,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Dimension_BorderR result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Dimension_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_ResourceStr* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1007,7 +1554,83 @@ inline void WriteToString(std::string* result, const Opt_Union_Dimension_BorderR result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_ResourceStr& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_SymbolGlyphModifier& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SymbolGlyphModifier* value) { + result->append("{"); + // Ark_String _SymbolGlyphModifierStub + result->append("._SymbolGlyphModifierStub="); + WriteToString(result, &value->_SymbolGlyphModifierStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SymbolGlyphModifier* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SymbolGlyphModifier& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_Curve_ICurve& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Curve_ICurve: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_Curve_ICurve* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Curve + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, value->value0); + } + // Ark_ICurve + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Union_Curve_ICurve* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Union_Curve_ICurve& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -1039,12 +1662,199 @@ inline void WriteToString(std::string* result, const Ark_Union_Dimension_Margin* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Dimension_Margin* value) { +inline void WriteToString(std::string* result, const Opt_Union_Dimension_Margin* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_Margin& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ShadowOptions& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ShadowOptions* value) { + result->append("{"); + // Ark_Union_Number_Resource radius + result->append(".radius="); + WriteToString(result, &value->radius); + // Ark_ShadowType type + result->append(", "); + result->append(".type="); + WriteToString(result, &value->type); + // Ark_Union_Color_String_Resource_ColoringStrategy color + result->append(", "); + result->append(".color="); + WriteToString(result, &value->color); + // Ark_Union_Number_Resource offsetX + result->append(", "); + result->append(".offsetX="); + WriteToString(result, &value->offsetX); + // Ark_Union_Number_Resource offsetY + result->append(", "); + result->append(".offsetY="); + WriteToString(result, &value->offsetY); + // Ark_Boolean fill + result->append(", "); + result->append(".fill="); + WriteToString(result, &value->fill); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ShadowOptions* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ShadowOptions& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GridRowSizeOption& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GridRowSizeOption* value) { + result->append("{"); + // Ark_Length xs + result->append(".xs="); + WriteToString(result, &value->xs); + // Ark_Length sm + result->append(", "); + result->append(".sm="); + WriteToString(result, &value->sm); + // Ark_Length md + result->append(", "); + result->append(".md="); + WriteToString(result, &value->md); + // Ark_Length lg + result->append(", "); + result->append(".lg="); + WriteToString(result, &value->lg); + // Ark_Length xl + result->append(", "); + result->append(".xl="); + WriteToString(result, &value->xl); + // Ark_Length xxl + result->append(", "); + result->append(".xxl="); + WriteToString(result, &value->xxl); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GridRowSizeOption* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GridRowSizeOption& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_BorderStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_BorderStyle value) { + result->append("Ark_BorderStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_BorderStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_BorderStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_SheetSize& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_SheetSize value) { + result->append("Ark_SheetSize("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SheetSize* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SheetSize& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_BackgroundColorStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_BackgroundColorStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_BackgroundColorStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1052,29 +1862,22 @@ inline void WriteToString(std::string* result, const Opt_Union_Dimension_Margin* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_Margin& value) +inline Ark_RuntimeType runtimeType(const Opt_BackgroundColorStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Ark_UserDataSpan& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Ark_UserDataSpan* value) { result->append("{"); - // Ark_PixelMap pixelMap - result->append(".pixelMap="); - WriteToString(result, value->pixelMap); - // Ark_Tuple_Dimension_Dimension size - result->append(", "); - result->append(".size="); - WriteToString(result, &value->size); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Opt_UserDataSpan* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1087,23 +1890,21 @@ inline void WriteToString(std::string* result, const Opt_LeadingMarginPlaceholde result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Opt_UserDataSpan& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextDecorationStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_CustomSpan& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextDecorationStyle value) { - result->append("Ark_TextDecorationStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_CustomSpan value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_TextDecorationStyle* value) { +inline void WriteToString(std::string* result, const Opt_CustomSpan* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1116,56 +1917,26 @@ inline void WriteToString(std::string* result, const Opt_TextDecorationStyle* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextDecorationStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_CustomSpan& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ResourceColor& value) +inline Ark_RuntimeType runtimeType(const Ark_UrlStyle& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - case 3: return runtimeType(value.value3); - default: INTEROP_FATAL("Bad selector in Ark_ResourceColor: %d", value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ResourceColor* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Color - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_Number - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_String - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_Resource - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, &value->value3); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_UrlStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_ResourceColor* value) { +inline void WriteToString(std::string* result, const Opt_UrlStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1173,23 +1944,21 @@ inline void WriteToString(std::string* result, const Opt_ResourceColor* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ResourceColor& value) +inline Ark_RuntimeType runtimeType(const Opt_UrlStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextDecorationType& value) +inline Ark_RuntimeType runtimeType(const Ark_LineHeightStyle& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextDecorationType value) { - result->append("Ark_TextDecorationType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_LineHeightStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_TextDecorationType* value) { +inline void WriteToString(std::string* result, const Opt_LineHeightStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1202,38 +1971,26 @@ inline void WriteToString(std::string* result, const Opt_TextDecorationType* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextDecorationType& value) +inline Ark_RuntimeType runtimeType(const Opt_LineHeightStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Ark_ParagraphStyle& value) { return INTEROP_RUNTIME_OBJECT; } - template <> -inline void WriteToString(std::string* result, const Ark_ShadowOptions* value); - -inline void WriteToString(std::string* result, const Array_ShadowOptions* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_ShadowOptions*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ParagraphStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Array_ShadowOptions* value) { +inline void WriteToString(std::string* result, const Opt_ParagraphStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1241,50 +1998,26 @@ inline void WriteToString(std::string* result, const Opt_Array_ShadowOptions* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_ParagraphStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Ark_ImageAttachment& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ShadowOptions* value) { - result->append("{"); - // Ark_Union_Number_Resource radius - result->append(".radius="); - WriteToString(result, &value->radius); - // Ark_ShadowType type - result->append(", "); - result->append(".type="); - WriteToString(result, &value->type); - // Ark_Union_Color_String_Resource_ColoringStrategy color - result->append(", "); - result->append(".color="); - WriteToString(result, &value->color); - // Ark_Union_Number_Resource offsetX - result->append(", "); - result->append(".offsetX="); - WriteToString(result, &value->offsetX); - // Ark_Union_Number_Resource offsetY - result->append(", "); - result->append(".offsetY="); - WriteToString(result, &value->offsetY); - // Ark_Boolean fill - result->append(", "); - result->append(".fill="); - WriteToString(result, &value->fill); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ImageAttachment value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_ShadowOptions* value) { +inline void WriteToString(std::string* result, const Opt_ImageAttachment* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1292,50 +2025,26 @@ inline void WriteToString(std::string* result, const Opt_ShadowOptions* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_ImageAttachment& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GridRowSizeOption& value) +inline Ark_RuntimeType runtimeType(const Ark_GestureStyle& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GridRowSizeOption* value) { - result->append("{"); - // Ark_Length xs - result->append(".xs="); - WriteToString(result, &value->xs); - // Ark_Length sm - result->append(", "); - result->append(".sm="); - WriteToString(result, &value->sm); - // Ark_Length md - result->append(", "); - result->append(".md="); - WriteToString(result, &value->md); - // Ark_Length lg - result->append(", "); - result->append(".lg="); - WriteToString(result, &value->lg); - // Ark_Length xl - result->append(", "); - result->append(".xl="); - WriteToString(result, &value->xl); - // Ark_Length xxl - result->append(", "); - result->append(".xxl="); - WriteToString(result, &value->xxl); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_GestureStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GridRowSizeOption* value) { +inline void WriteToString(std::string* result, const Opt_GestureStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1343,23 +2052,21 @@ inline void WriteToString(std::string* result, const Opt_GridRowSizeOption* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GridRowSizeOption& value) +inline Ark_RuntimeType runtimeType(const Opt_GestureStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_BorderStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_TextShadowStyle& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_BorderStyle value) { - result->append("Ark_BorderStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_TextShadowStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_BorderStyle* value) { +inline void WriteToString(std::string* result, const Opt_TextShadowStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1372,23 +2079,21 @@ inline void WriteToString(std::string* result, const Opt_BorderStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_BorderStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_TextShadowStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SheetSize& value) +inline Ark_RuntimeType runtimeType(const Ark_LetterSpacingStyle& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SheetSize value) { - result->append("Ark_SheetSize("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_LetterSpacingStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_SheetSize* value) { +inline void WriteToString(std::string* result, const Opt_LetterSpacingStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1401,44 +2106,26 @@ inline void WriteToString(std::string* result, const Opt_SheetSize* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SheetSize& value) +inline Ark_RuntimeType runtimeType(const Opt_LetterSpacingStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_BaselineOffsetStyle& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_BorderRadiuses: %d", value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_BorderRadiuses* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_LengthMetrics - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_BorderRadiuses - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_BaselineOffsetStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_BaselineOffsetStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1446,44 +2133,26 @@ inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Bor result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_BaselineOffsetStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Padding& value) +inline Ark_RuntimeType runtimeType(const Ark_DecorationStyle& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_Padding: %d", value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Padding* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_LengthMetrics - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_Padding - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_DecorationStyle value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Padding* value) { +inline void WriteToString(std::string* result, const Opt_DecorationStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1491,44 +2160,26 @@ inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Pad result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Padding& value) +inline Ark_RuntimeType runtimeType(const Opt_DecorationStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Margin& value) +inline Ark_RuntimeType runtimeType(const Ark_TextStyle_styled_string& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_Margin: %d", value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Margin* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_LengthMetrics - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_Padding - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_TextStyle_styled_string value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Margin* value) { +inline void WriteToString(std::string* result, const Opt_TextStyle_styled_string* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -1536,7 +2187,7 @@ inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Mar result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Margin& value) +inline Ark_RuntimeType runtimeType(const Opt_TextStyle_styled_string& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -2106,35 +2757,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_Number_ResourceStr& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextOverflow& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextOverflow value) { - result->append("Ark_TextOverflow("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextOverflow* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TextOverflow& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_TabBarSymbol& value) { return INTEROP_RUNTIME_OBJECT; @@ -2355,64 +2977,6 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorLayoutStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageFit& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ImageFit value) { - result->append("Ark_ImageFit("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ImageFit* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageFit& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageSpanAlignment& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ImageSpanAlignment value) { - result->append("Ark_ImageSpanAlignment("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ImageSpanAlignment* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageSpanAlignment& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_LineBreakStrategy& value) { return INTEROP_RUNTIME_NUMBER; @@ -2442,35 +3006,6 @@ inline Ark_RuntimeType runtimeType(const Opt_LineBreakStrategy& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_WordBreak& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_WordBreak value) { - result->append("Ark_WordBreak("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_WordBreak* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_WordBreak& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_LeadingMarginPlaceholder& value) { switch (value.selector) { @@ -2516,35 +3051,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_LeadingMarginPlaceh return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextAlign& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextAlign value) { - result->append("Ark_TextAlign("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextAlign* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TextAlign& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_SymbolRenderingStrategy& value) { return INTEROP_RUNTIME_NUMBER; @@ -4174,14 +4680,94 @@ inline Ark_RuntimeType runtimeType(const Opt_ColorMetrics& value) template <> inline Ark_RuntimeType runtimeType(const Ark_StyledStringValue& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + case 3: return runtimeType(value.value3); + case 4: return runtimeType(value.value4); + case 5: return runtimeType(value.value5); + case 6: return runtimeType(value.value6); + case 7: return runtimeType(value.value7); + case 8: return runtimeType(value.value8); + case 9: return runtimeType(value.value9); + case 10: return runtimeType(value.value10); + case 11: return runtimeType(value.value11); + case 12: return runtimeType(value.value12); + default: INTEROP_FATAL("Bad selector in Ark_StyledStringValue: %d", value.selector); + } } template <> inline void WriteToString(std::string* result, const Ark_StyledStringValue* value) { result->append("{"); - // Ark_String stub - result->append(".stub="); - WriteToString(result, &value->stub); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_TextStyle_styled_string + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, value->value0); + } + // Ark_DecorationStyle + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, value->value1); + } + // Ark_BaselineOffsetStyle + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, value->value2); + } + // Ark_LetterSpacingStyle + if (value->selector == 3) { + result->append(".value3="); + WriteToString(result, value->value3); + } + // Ark_TextShadowStyle + if (value->selector == 4) { + result->append(".value4="); + WriteToString(result, value->value4); + } + // Ark_GestureStyle + if (value->selector == 5) { + result->append(".value5="); + WriteToString(result, value->value5); + } + // Ark_ImageAttachment + if (value->selector == 6) { + result->append(".value6="); + WriteToString(result, value->value6); + } + // Ark_ParagraphStyle + if (value->selector == 7) { + result->append(".value7="); + WriteToString(result, value->value7); + } + // Ark_LineHeightStyle + if (value->selector == 8) { + result->append(".value8="); + WriteToString(result, value->value8); + } + // Ark_UrlStyle + if (value->selector == 9) { + result->append(".value9="); + WriteToString(result, value->value9); + } + // Ark_CustomSpan + if (value->selector == 10) { + result->append(".value10="); + WriteToString(result, value->value10); + } + // Ark_UserDataSpan + if (value->selector == 11) { + result->append(".value11="); + WriteToString(result, &value->value11); + } + // Ark_BackgroundColorStyle + if (value->selector == 12) { + result->append(".value12="); + WriteToString(result, value->value12); + } result->append("}"); } template <> @@ -4232,80 +4818,6 @@ inline Ark_RuntimeType runtimeType(const Opt_StyledStringKey& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageAttachmentLayoutStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_ImageAttachmentLayoutStyle* value) { - result->append("{"); - // Ark_Union_LengthMetrics_Margin margin - result->append(".margin="); - WriteToString(result, &value->margin); - // Ark_Union_LengthMetrics_Padding padding - result->append(", "); - result->append(".padding="); - WriteToString(result, &value->padding); - // Ark_Union_LengthMetrics_BorderRadiuses borderRadius - result->append(", "); - result->append(".borderRadius="); - WriteToString(result, &value->borderRadius); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ImageAttachmentLayoutStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentLayoutStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_SizeOptions& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_SizeOptions* value) { - result->append("{"); - // Ark_Length width - result->append(".width="); - WriteToString(result, &value->width); - // Ark_Length height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_SizeOptions* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_SizeOptions& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_Margin_Dimension& value) { switch (value.selector) { @@ -11247,140 +11759,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_LeadingMarginPl return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_LeadingMarginPlaceholder& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: INTEROP_FATAL("Bad selector in Ark_Union_Number_LeadingMarginPlaceholder: %d", value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_LeadingMarginPlaceholder* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Number - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_LeadingMarginPlaceholder - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_LeadingMarginPlaceholder* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_LeadingMarginPlaceholder& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_TextBackgroundStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextBackgroundStyle* value) { - result->append("{"); - // Ark_ResourceColor color - result->append(".color="); - WriteToString(result, &value->color); - // Ark_Union_Dimension_BorderRadiuses radius - result->append(", "); - result->append(".radius="); - WriteToString(result, &value->radius); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextBackgroundStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TextBackgroundStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_CustomSpan& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_CustomSpan value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_CustomSpan* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_CustomSpan& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageAttachment& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_ImageAttachment value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_ImageAttachment* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageAttachment& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_DpiFollowStrategy& value) { return INTEROP_RUNTIME_NUMBER; @@ -21555,37 +21933,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_TouchEvent_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const OnMoveHandler& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const OnMoveHandler* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_OnMoveHandler* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_OnMoveHandler& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_FadingEdgeOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -27096,6 +27443,37 @@ inline Ark_RuntimeType runtimeType(const Opt_OnScrollCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const OnMoveHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const OnMoveHandler* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_OnMoveHandler* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OnMoveHandler& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_IsolatedOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -28098,60 +28476,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentInterface& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_UrlStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_UrlStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_UrlStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_UrlStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_LineHeightStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_LineHeightStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_LineHeightStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_LineHeightStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ParagraphStyleInterface& value) { return INTEROP_RUNTIME_OBJECT; @@ -28203,33 +28527,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ParagraphStyleInterface& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ParagraphStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_ParagraphStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_ParagraphStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ParagraphStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_GestureStyleInterface& value) { return INTEROP_RUNTIME_OBJECT; @@ -28265,168 +28562,6 @@ inline Ark_RuntimeType runtimeType(const Opt_GestureStyleInterface& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GestureStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_GestureStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_GestureStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_BackgroundColorStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_BackgroundColorStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_BackgroundColorStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_BackgroundColorStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_TextShadowStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextShadowStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextShadowStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TextShadowStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_LetterSpacingStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_LetterSpacingStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_LetterSpacingStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_LetterSpacingStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_BaselineOffsetStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_BaselineOffsetStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_BaselineOffsetStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_BaselineOffsetStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_DecorationStyle& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_DecorationStyle value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_DecorationStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_DecorationStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_TextStyleInterface& value) { return INTEROP_RUNTIME_OBJECT; @@ -28474,33 +28609,6 @@ inline Ark_RuntimeType runtimeType(const Opt_TextStyleInterface& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextStyle_styled_string& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextStyle_styled_string value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextStyle_styled_string* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TextStyle_styled_string& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_StyleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -45839,33 +45947,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ChildrenMainSize& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DynamicNode& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_DynamicNode value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_DynamicNode* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_DynamicNode& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_ContentClipMode_RectShape& value) { switch (value.selector) { @@ -52471,21 +52552,289 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_type_value); } } - void writeICurve(Ark_ICurve value) + void writePixelMap(Ark_PixelMap value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writePixelMap(Ark_PixelMap value) + void writeLengthMetrics(Ark_LengthMetrics value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeLengthMetrics(Ark_LengthMetrics value) + void writeLeadingMarginPlaceholder(Ark_LeadingMarginPlaceholder value) + { + Serializer& valueSerializer = *this; + const auto value_pixelMap = value.pixelMap; + valueSerializer.writePixelMap(value_pixelMap); + const auto value_size = value.size; + const auto value_size_0 = value_size.value0; + valueSerializer.writeLength(value_size_0); + const auto value_size_1 = value_size.value1; + valueSerializer.writeLength(value_size_1); + } + void writeICurve(Ark_ICurve value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextBackgroundStyle(Ark_TextBackgroundStyle value) + { + Serializer& valueSerializer = *this; + const auto value_color = value.color; + Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; + value_color_type = runtimeType(value_color); + valueSerializer.writeInt8(value_color_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_color_type)) { + const auto value_color_value = value_color.value; + Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; + value_color_value_type = value_color_value.selector; + if (value_color_value_type == 0) { + valueSerializer.writeInt8(0); + const auto value_color_value_0 = value_color_value.value0; + valueSerializer.writeInt32(static_cast(value_color_value_0)); + } + else if (value_color_value_type == 1) { + valueSerializer.writeInt8(1); + const auto value_color_value_1 = value_color_value.value1; + valueSerializer.writeNumber(value_color_value_1); + } + else if (value_color_value_type == 2) { + valueSerializer.writeInt8(2); + const auto value_color_value_2 = value_color_value.value2; + valueSerializer.writeString(value_color_value_2); + } + else if (value_color_value_type == 3) { + valueSerializer.writeInt8(3); + const auto value_color_value_3 = value_color_value.value3; + valueSerializer.writeResource(value_color_value_3); + } + } + const auto value_radius = value.radius; + Ark_Int32 value_radius_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_type = runtimeType(value_radius); + valueSerializer.writeInt8(value_radius_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_type)) { + const auto value_radius_value = value_radius.value; + Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_type = value_radius_value.selector; + if ((value_radius_value_type == 0) || (value_radius_value_type == 0) || (value_radius_value_type == 0)) { + valueSerializer.writeInt8(0); + const auto value_radius_value_0 = value_radius_value.value0; + valueSerializer.writeLength(value_radius_value_0); + } + else if (value_radius_value_type == 1) { + valueSerializer.writeInt8(1); + const auto value_radius_value_1 = value_radius_value.value1; + const auto value_radius_value_1_topLeft = value_radius_value_1.topLeft; + Ark_Int32 value_radius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft); + valueSerializer.writeInt8(value_radius_value_1_topLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const auto value_radius_value_1_topLeft_value = value_radius_value_1_topLeft.value; + valueSerializer.writeLength(value_radius_value_1_topLeft_value); + } + const auto value_radius_value_1_topRight = value_radius_value_1.topRight; + Ark_Int32 value_radius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight); + valueSerializer.writeInt8(value_radius_value_1_topRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topRight_type)) { + const auto value_radius_value_1_topRight_value = value_radius_value_1_topRight.value; + valueSerializer.writeLength(value_radius_value_1_topRight_value); + } + const auto value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft; + Ark_Int32 value_radius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft); + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const auto value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft.value; + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value); + } + const auto value_radius_value_1_bottomRight = value_radius_value_1.bottomRight; + Ark_Int32 value_radius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight); + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const auto value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight.value; + valueSerializer.writeLength(value_radius_value_1_bottomRight_value); + } + } + } + } + void writeImageAttachmentLayoutStyle(Ark_ImageAttachmentLayoutStyle value) + { + Serializer& valueSerializer = *this; + const auto value_margin = value.margin; + Ark_Int32 value_margin_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_type = runtimeType(value_margin); + valueSerializer.writeInt8(value_margin_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_type)) { + const auto value_margin_value = value_margin.value; + Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_type = value_margin_value.selector; + if (value_margin_value_type == 0) { + valueSerializer.writeInt8(0); + const auto value_margin_value_0 = value_margin_value.value0; + valueSerializer.writeLengthMetrics(value_margin_value_0); + } + else if (value_margin_value_type == 1) { + valueSerializer.writeInt8(1); + const auto value_margin_value_1 = value_margin_value.value1; + const auto value_margin_value_1_top = value_margin_value_1.top; + Ark_Int32 value_margin_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_top_type = runtimeType(value_margin_value_1_top); + valueSerializer.writeInt8(value_margin_value_1_top_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_top_type)) { + const auto value_margin_value_1_top_value = value_margin_value_1_top.value; + valueSerializer.writeLength(value_margin_value_1_top_value); + } + const auto value_margin_value_1_right = value_margin_value_1.right; + Ark_Int32 value_margin_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_right_type = runtimeType(value_margin_value_1_right); + valueSerializer.writeInt8(value_margin_value_1_right_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_right_type)) { + const auto value_margin_value_1_right_value = value_margin_value_1_right.value; + valueSerializer.writeLength(value_margin_value_1_right_value); + } + const auto value_margin_value_1_bottom = value_margin_value_1.bottom; + Ark_Int32 value_margin_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom); + valueSerializer.writeInt8(value_margin_value_1_bottom_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_bottom_type)) { + const auto value_margin_value_1_bottom_value = value_margin_value_1_bottom.value; + valueSerializer.writeLength(value_margin_value_1_bottom_value); + } + const auto value_margin_value_1_left = value_margin_value_1.left; + Ark_Int32 value_margin_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_left_type = runtimeType(value_margin_value_1_left); + valueSerializer.writeInt8(value_margin_value_1_left_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_left_type)) { + const auto value_margin_value_1_left_value = value_margin_value_1_left.value; + valueSerializer.writeLength(value_margin_value_1_left_value); + } + } + } + const auto value_padding = value.padding; + Ark_Int32 value_padding_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_type = runtimeType(value_padding); + valueSerializer.writeInt8(value_padding_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_type)) { + const auto value_padding_value = value_padding.value; + Ark_Int32 value_padding_value_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_type = value_padding_value.selector; + if (value_padding_value_type == 0) { + valueSerializer.writeInt8(0); + const auto value_padding_value_0 = value_padding_value.value0; + valueSerializer.writeLengthMetrics(value_padding_value_0); + } + else if (value_padding_value_type == 1) { + valueSerializer.writeInt8(1); + const auto value_padding_value_1 = value_padding_value.value1; + const auto value_padding_value_1_top = value_padding_value_1.top; + Ark_Int32 value_padding_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_top_type = runtimeType(value_padding_value_1_top); + valueSerializer.writeInt8(value_padding_value_1_top_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_top_type)) { + const auto value_padding_value_1_top_value = value_padding_value_1_top.value; + valueSerializer.writeLength(value_padding_value_1_top_value); + } + const auto value_padding_value_1_right = value_padding_value_1.right; + Ark_Int32 value_padding_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_right_type = runtimeType(value_padding_value_1_right); + valueSerializer.writeInt8(value_padding_value_1_right_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_right_type)) { + const auto value_padding_value_1_right_value = value_padding_value_1_right.value; + valueSerializer.writeLength(value_padding_value_1_right_value); + } + const auto value_padding_value_1_bottom = value_padding_value_1.bottom; + Ark_Int32 value_padding_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom); + valueSerializer.writeInt8(value_padding_value_1_bottom_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_bottom_type)) { + const auto value_padding_value_1_bottom_value = value_padding_value_1_bottom.value; + valueSerializer.writeLength(value_padding_value_1_bottom_value); + } + const auto value_padding_value_1_left = value_padding_value_1.left; + Ark_Int32 value_padding_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_left_type = runtimeType(value_padding_value_1_left); + valueSerializer.writeInt8(value_padding_value_1_left_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_left_type)) { + const auto value_padding_value_1_left_value = value_padding_value_1_left.value; + valueSerializer.writeLength(value_padding_value_1_left_value); + } + } + } + const auto value_borderRadius = value.borderRadius; + Ark_Int32 value_borderRadius_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_type = runtimeType(value_borderRadius); + valueSerializer.writeInt8(value_borderRadius_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_type)) { + const auto value_borderRadius_value = value_borderRadius.value; + Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_type = value_borderRadius_value.selector; + if (value_borderRadius_value_type == 0) { + valueSerializer.writeInt8(0); + const auto value_borderRadius_value_0 = value_borderRadius_value.value0; + valueSerializer.writeLengthMetrics(value_borderRadius_value_0); + } + else if (value_borderRadius_value_type == 1) { + valueSerializer.writeInt8(1); + const auto value_borderRadius_value_1 = value_borderRadius_value.value1; + const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; + Ark_Int32 value_borderRadius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft); + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const auto value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft.value; + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); + } + const auto value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight; + Ark_Int32 value_borderRadius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight); + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const auto value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight.value; + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); + } + const auto value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft; + Ark_Int32 value_borderRadius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft); + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const auto value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft.value; + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); + } + const auto value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight; + Ark_Int32 value_borderRadius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight); + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const auto value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight.value; + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); + } + } + } + } + void writeSizeOptions(Ark_SizeOptions value) + { + Serializer& valueSerializer = *this; + const auto value_width = value.width; + Ark_Int32 value_width_type = INTEROP_RUNTIME_UNDEFINED; + value_width_type = runtimeType(value_width); + valueSerializer.writeInt8(value_width_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_width_type)) { + const auto value_width_value = value_width.value; + valueSerializer.writeLength(value_width_value); + } + const auto value_height = value.height; + Ark_Int32 value_height_type = INTEROP_RUNTIME_UNDEFINED; + value_height_type = runtimeType(value_height); + valueSerializer.writeInt8(value_height_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_height_type)) { + const auto value_height_value = value_height.value; + valueSerializer.writeLength(value_height_value); + } + } void writePosition(Ark_Position value) { Serializer& valueSerializer = *this; @@ -52512,17 +52861,6 @@ class Serializer : public SerializerBase { const auto value__SymbolGlyphModifierStub = value._SymbolGlyphModifierStub; valueSerializer.writeString(value__SymbolGlyphModifierStub); } - void writeLeadingMarginPlaceholder(Ark_LeadingMarginPlaceholder value) - { - Serializer& valueSerializer = *this; - const auto value_pixelMap = value.pixelMap; - valueSerializer.writePixelMap(value_pixelMap); - const auto value_size = value.size; - const auto value_size_0 = value_size.value0; - valueSerializer.writeLength(value_size_0); - const auto value_size_1 = value_size.value1; - valueSerializer.writeLength(value_size_1); - } void writeShadowOptions(Ark_ShadowOptions value) { Serializer& valueSerializer = *this; @@ -52675,6 +53013,69 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_xxl_value); } } + void writeBackgroundColorStyle(Ark_BackgroundColorStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeUserDataSpan(Ark_UserDataSpan value) + { + } + void writeCustomSpan(Ark_CustomSpan value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeUrlStyle(Ark_UrlStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeLineHeightStyle(Ark_LineHeightStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeParagraphStyle(Ark_ParagraphStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeImageAttachment(Ark_ImageAttachment value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeGestureStyle(Ark_GestureStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTextShadowStyle(Ark_TextShadowStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeLetterSpacingStyle(Ark_LetterSpacingStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeBaselineOffsetStyle(Ark_BaselineOffsetStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeDecorationStyle(Ark_DecorationStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTextStyle_styled_string(Ark_TextStyle_styled_string value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeArea(Ark_Area value) { Serializer& valueSerializer = *this; @@ -53277,186 +53678,6 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeStyledStringValue(Ark_StyledStringValue value) - { - Serializer& valueSerializer = *this; - const auto value_stub = value.stub; - valueSerializer.writeString(value_stub); - } - void writeImageAttachmentLayoutStyle(Ark_ImageAttachmentLayoutStyle value) - { - Serializer& valueSerializer = *this; - const auto value_margin = value.margin; - Ark_Int32 value_margin_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_type = runtimeType(value_margin); - valueSerializer.writeInt8(value_margin_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_type)) { - const auto value_margin_value = value_margin.value; - Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_type = value_margin_value.selector; - if (value_margin_value_type == 0) { - valueSerializer.writeInt8(0); - const auto value_margin_value_0 = value_margin_value.value0; - valueSerializer.writeLengthMetrics(value_margin_value_0); - } - else if (value_margin_value_type == 1) { - valueSerializer.writeInt8(1); - const auto value_margin_value_1 = value_margin_value.value1; - const auto value_margin_value_1_top = value_margin_value_1.top; - Ark_Int32 value_margin_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_top_type = runtimeType(value_margin_value_1_top); - valueSerializer.writeInt8(value_margin_value_1_top_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_top_type)) { - const auto value_margin_value_1_top_value = value_margin_value_1_top.value; - valueSerializer.writeLength(value_margin_value_1_top_value); - } - const auto value_margin_value_1_right = value_margin_value_1.right; - Ark_Int32 value_margin_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_right_type = runtimeType(value_margin_value_1_right); - valueSerializer.writeInt8(value_margin_value_1_right_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_right_type)) { - const auto value_margin_value_1_right_value = value_margin_value_1_right.value; - valueSerializer.writeLength(value_margin_value_1_right_value); - } - const auto value_margin_value_1_bottom = value_margin_value_1.bottom; - Ark_Int32 value_margin_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom); - valueSerializer.writeInt8(value_margin_value_1_bottom_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_bottom_type)) { - const auto value_margin_value_1_bottom_value = value_margin_value_1_bottom.value; - valueSerializer.writeLength(value_margin_value_1_bottom_value); - } - const auto value_margin_value_1_left = value_margin_value_1.left; - Ark_Int32 value_margin_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_left_type = runtimeType(value_margin_value_1_left); - valueSerializer.writeInt8(value_margin_value_1_left_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_left_type)) { - const auto value_margin_value_1_left_value = value_margin_value_1_left.value; - valueSerializer.writeLength(value_margin_value_1_left_value); - } - } - } - const auto value_padding = value.padding; - Ark_Int32 value_padding_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_type = runtimeType(value_padding); - valueSerializer.writeInt8(value_padding_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_type)) { - const auto value_padding_value = value_padding.value; - Ark_Int32 value_padding_value_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_type = value_padding_value.selector; - if (value_padding_value_type == 0) { - valueSerializer.writeInt8(0); - const auto value_padding_value_0 = value_padding_value.value0; - valueSerializer.writeLengthMetrics(value_padding_value_0); - } - else if (value_padding_value_type == 1) { - valueSerializer.writeInt8(1); - const auto value_padding_value_1 = value_padding_value.value1; - const auto value_padding_value_1_top = value_padding_value_1.top; - Ark_Int32 value_padding_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_top_type = runtimeType(value_padding_value_1_top); - valueSerializer.writeInt8(value_padding_value_1_top_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_top_type)) { - const auto value_padding_value_1_top_value = value_padding_value_1_top.value; - valueSerializer.writeLength(value_padding_value_1_top_value); - } - const auto value_padding_value_1_right = value_padding_value_1.right; - Ark_Int32 value_padding_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_right_type = runtimeType(value_padding_value_1_right); - valueSerializer.writeInt8(value_padding_value_1_right_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_right_type)) { - const auto value_padding_value_1_right_value = value_padding_value_1_right.value; - valueSerializer.writeLength(value_padding_value_1_right_value); - } - const auto value_padding_value_1_bottom = value_padding_value_1.bottom; - Ark_Int32 value_padding_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom); - valueSerializer.writeInt8(value_padding_value_1_bottom_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_bottom_type)) { - const auto value_padding_value_1_bottom_value = value_padding_value_1_bottom.value; - valueSerializer.writeLength(value_padding_value_1_bottom_value); - } - const auto value_padding_value_1_left = value_padding_value_1.left; - Ark_Int32 value_padding_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_left_type = runtimeType(value_padding_value_1_left); - valueSerializer.writeInt8(value_padding_value_1_left_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_left_type)) { - const auto value_padding_value_1_left_value = value_padding_value_1_left.value; - valueSerializer.writeLength(value_padding_value_1_left_value); - } - } - } - const auto value_borderRadius = value.borderRadius; - Ark_Int32 value_borderRadius_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_type = runtimeType(value_borderRadius); - valueSerializer.writeInt8(value_borderRadius_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_type)) { - const auto value_borderRadius_value = value_borderRadius.value; - Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_type = value_borderRadius_value.selector; - if (value_borderRadius_value_type == 0) { - valueSerializer.writeInt8(0); - const auto value_borderRadius_value_0 = value_borderRadius_value.value0; - valueSerializer.writeLengthMetrics(value_borderRadius_value_0); - } - else if (value_borderRadius_value_type == 1) { - valueSerializer.writeInt8(1); - const auto value_borderRadius_value_1 = value_borderRadius_value.value1; - const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; - Ark_Int32 value_borderRadius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft); - valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { - const auto value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft.value; - valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); - } - const auto value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight; - Ark_Int32 value_borderRadius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight); - valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { - const auto value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight.value; - valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); - } - const auto value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft; - Ark_Int32 value_borderRadius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft); - valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { - const auto value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft.value; - valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); - } - const auto value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight; - Ark_Int32 value_borderRadius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight); - valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { - const auto value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight.value; - valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); - } - } - } - } - void writeSizeOptions(Ark_SizeOptions value) - { - Serializer& valueSerializer = *this; - const auto value_width = value.width; - Ark_Int32 value_width_type = INTEROP_RUNTIME_UNDEFINED; - value_width_type = runtimeType(value_width); - valueSerializer.writeInt8(value_width_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_width_type)) { - const auto value_width_value = value_width.value; - valueSerializer.writeLength(value_width_value); - } - const auto value_height = value.height; - Ark_Int32 value_height_type = INTEROP_RUNTIME_UNDEFINED; - value_height_type = runtimeType(value_height); - valueSerializer.writeInt8(value_height_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_height_type)) { - const auto value_height_value = value_height.value; - valueSerializer.writeLength(value_height_value); - } - } void writeImageAnalyzerController(Ark_ImageAnalyzerController value) { Serializer& valueSerializer = *this; @@ -55887,100 +56108,73 @@ class Serializer : public SerializerBase { const auto value_styledKey = value.styledKey; valueSerializer.writeInt32(static_cast(value_styledKey)); const auto value_styledValue = value.styledValue; - valueSerializer.writeStyledStringValue(value_styledValue); - } - void writeTextBackgroundStyle(Ark_TextBackgroundStyle value) - { - Serializer& valueSerializer = *this; - const auto value_color = value.color; - Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; - value_color_type = runtimeType(value_color); - valueSerializer.writeInt8(value_color_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_color_type)) { - const auto value_color_value = value_color.value; - Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; - value_color_value_type = value_color_value.selector; - if (value_color_value_type == 0) { - valueSerializer.writeInt8(0); - const auto value_color_value_0 = value_color_value.value0; - valueSerializer.writeInt32(static_cast(value_color_value_0)); - } - else if (value_color_value_type == 1) { - valueSerializer.writeInt8(1); - const auto value_color_value_1 = value_color_value.value1; - valueSerializer.writeNumber(value_color_value_1); - } - else if (value_color_value_type == 2) { - valueSerializer.writeInt8(2); - const auto value_color_value_2 = value_color_value.value2; - valueSerializer.writeString(value_color_value_2); - } - else if (value_color_value_type == 3) { - valueSerializer.writeInt8(3); - const auto value_color_value_3 = value_color_value.value3; - valueSerializer.writeResource(value_color_value_3); - } + Ark_Int32 value_styledValue_type = INTEROP_RUNTIME_UNDEFINED; + value_styledValue_type = value_styledValue.selector; + if (value_styledValue_type == 0) { + valueSerializer.writeInt8(0); + const auto value_styledValue_0 = value_styledValue.value0; + valueSerializer.writeTextStyle_styled_string(value_styledValue_0); } - const auto value_radius = value.radius; - Ark_Int32 value_radius_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_type = runtimeType(value_radius); - valueSerializer.writeInt8(value_radius_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_type)) { - const auto value_radius_value = value_radius.value; - Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_type = value_radius_value.selector; - if ((value_radius_value_type == 0) || (value_radius_value_type == 0) || (value_radius_value_type == 0)) { - valueSerializer.writeInt8(0); - const auto value_radius_value_0 = value_radius_value.value0; - valueSerializer.writeLength(value_radius_value_0); - } - else if (value_radius_value_type == 1) { - valueSerializer.writeInt8(1); - const auto value_radius_value_1 = value_radius_value.value1; - const auto value_radius_value_1_topLeft = value_radius_value_1.topLeft; - Ark_Int32 value_radius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft); - valueSerializer.writeInt8(value_radius_value_1_topLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const auto value_radius_value_1_topLeft_value = value_radius_value_1_topLeft.value; - valueSerializer.writeLength(value_radius_value_1_topLeft_value); - } - const auto value_radius_value_1_topRight = value_radius_value_1.topRight; - Ark_Int32 value_radius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight); - valueSerializer.writeInt8(value_radius_value_1_topRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topRight_type)) { - const auto value_radius_value_1_topRight_value = value_radius_value_1_topRight.value; - valueSerializer.writeLength(value_radius_value_1_topRight_value); - } - const auto value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft; - Ark_Int32 value_radius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft); - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const auto value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft.value; - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value); - } - const auto value_radius_value_1_bottomRight = value_radius_value_1.bottomRight; - Ark_Int32 value_radius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight); - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const auto value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight.value; - valueSerializer.writeLength(value_radius_value_1_bottomRight_value); - } - } + else if (value_styledValue_type == 1) { + valueSerializer.writeInt8(1); + const auto value_styledValue_1 = value_styledValue.value1; + valueSerializer.writeDecorationStyle(value_styledValue_1); + } + else if (value_styledValue_type == 2) { + valueSerializer.writeInt8(2); + const auto value_styledValue_2 = value_styledValue.value2; + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2); + } + else if (value_styledValue_type == 3) { + valueSerializer.writeInt8(3); + const auto value_styledValue_3 = value_styledValue.value3; + valueSerializer.writeLetterSpacingStyle(value_styledValue_3); + } + else if (value_styledValue_type == 4) { + valueSerializer.writeInt8(4); + const auto value_styledValue_4 = value_styledValue.value4; + valueSerializer.writeTextShadowStyle(value_styledValue_4); + } + else if (value_styledValue_type == 5) { + valueSerializer.writeInt8(5); + const auto value_styledValue_5 = value_styledValue.value5; + valueSerializer.writeGestureStyle(value_styledValue_5); + } + else if (value_styledValue_type == 6) { + valueSerializer.writeInt8(6); + const auto value_styledValue_6 = value_styledValue.value6; + valueSerializer.writeImageAttachment(value_styledValue_6); + } + else if (value_styledValue_type == 7) { + valueSerializer.writeInt8(7); + const auto value_styledValue_7 = value_styledValue.value7; + valueSerializer.writeParagraphStyle(value_styledValue_7); + } + else if (value_styledValue_type == 8) { + valueSerializer.writeInt8(8); + const auto value_styledValue_8 = value_styledValue.value8; + valueSerializer.writeLineHeightStyle(value_styledValue_8); + } + else if (value_styledValue_type == 9) { + valueSerializer.writeInt8(9); + const auto value_styledValue_9 = value_styledValue.value9; + valueSerializer.writeUrlStyle(value_styledValue_9); + } + else if (value_styledValue_type == 10) { + valueSerializer.writeInt8(10); + const auto value_styledValue_10 = value_styledValue.value10; + valueSerializer.writeCustomSpan(value_styledValue_10); + } + else if (value_styledValue_type == 11) { + valueSerializer.writeInt8(11); + const auto value_styledValue_11 = value_styledValue.value11; + valueSerializer.writeUserDataSpan(value_styledValue_11); + } + else if (value_styledValue_type == 12) { + valueSerializer.writeInt8(12); + const auto value_styledValue_12 = value_styledValue.value12; + valueSerializer.writeBackgroundColorStyle(value_styledValue_12); } - } - void writeCustomSpan(Ark_CustomSpan value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeImageAttachment(Ark_ImageAttachment value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); } void writeWaterFlowAttribute(Ark_WaterFlowAttribute value) { @@ -66161,16 +66355,6 @@ class Serializer : public SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value); } } - void writeUrlStyle(Ark_UrlStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeLineHeightStyle(Ark_LineHeightStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeParagraphStyleInterface(Ark_ParagraphStyleInterface value) { Serializer& valueSerializer = *this; @@ -66234,11 +66418,6 @@ class Serializer : public SerializerBase { } } } - void writeParagraphStyle(Ark_ParagraphStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeGestureStyleInterface(Ark_GestureStyleInterface value) { Serializer& valueSerializer = *this; @@ -66263,36 +66442,6 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_onLongPress_value.callSync)); } } - void writeGestureStyle(Ark_GestureStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeBackgroundColorStyle(Ark_BackgroundColorStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeTextShadowStyle(Ark_TextShadowStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeLetterSpacingStyle(Ark_LetterSpacingStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeBaselineOffsetStyle(Ark_BaselineOffsetStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } - void writeDecorationStyle(Ark_DecorationStyle value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeTextStyleInterface(Ark_TextStyleInterface value) { Serializer& valueSerializer = *this; @@ -66385,11 +66534,6 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_fontStyle_value)); } } - void writeTextStyle_styled_string(Ark_TextStyle_styled_string value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeStyleOptions(Ark_StyleOptions value) { Serializer& valueSerializer = *this; @@ -66412,7 +66556,73 @@ class Serializer : public SerializerBase { const auto value_styledKey = value.styledKey; valueSerializer.writeInt32(static_cast(value_styledKey)); const auto value_styledValue = value.styledValue; - valueSerializer.writeStyledStringValue(value_styledValue); + Ark_Int32 value_styledValue_type = INTEROP_RUNTIME_UNDEFINED; + value_styledValue_type = value_styledValue.selector; + if (value_styledValue_type == 0) { + valueSerializer.writeInt8(0); + const auto value_styledValue_0 = value_styledValue.value0; + valueSerializer.writeTextStyle_styled_string(value_styledValue_0); + } + else if (value_styledValue_type == 1) { + valueSerializer.writeInt8(1); + const auto value_styledValue_1 = value_styledValue.value1; + valueSerializer.writeDecorationStyle(value_styledValue_1); + } + else if (value_styledValue_type == 2) { + valueSerializer.writeInt8(2); + const auto value_styledValue_2 = value_styledValue.value2; + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2); + } + else if (value_styledValue_type == 3) { + valueSerializer.writeInt8(3); + const auto value_styledValue_3 = value_styledValue.value3; + valueSerializer.writeLetterSpacingStyle(value_styledValue_3); + } + else if (value_styledValue_type == 4) { + valueSerializer.writeInt8(4); + const auto value_styledValue_4 = value_styledValue.value4; + valueSerializer.writeTextShadowStyle(value_styledValue_4); + } + else if (value_styledValue_type == 5) { + valueSerializer.writeInt8(5); + const auto value_styledValue_5 = value_styledValue.value5; + valueSerializer.writeGestureStyle(value_styledValue_5); + } + else if (value_styledValue_type == 6) { + valueSerializer.writeInt8(6); + const auto value_styledValue_6 = value_styledValue.value6; + valueSerializer.writeImageAttachment(value_styledValue_6); + } + else if (value_styledValue_type == 7) { + valueSerializer.writeInt8(7); + const auto value_styledValue_7 = value_styledValue.value7; + valueSerializer.writeParagraphStyle(value_styledValue_7); + } + else if (value_styledValue_type == 8) { + valueSerializer.writeInt8(8); + const auto value_styledValue_8 = value_styledValue.value8; + valueSerializer.writeLineHeightStyle(value_styledValue_8); + } + else if (value_styledValue_type == 9) { + valueSerializer.writeInt8(9); + const auto value_styledValue_9 = value_styledValue.value9; + valueSerializer.writeUrlStyle(value_styledValue_9); + } + else if (value_styledValue_type == 10) { + valueSerializer.writeInt8(10); + const auto value_styledValue_10 = value_styledValue.value10; + valueSerializer.writeCustomSpan(value_styledValue_10); + } + else if (value_styledValue_type == 11) { + valueSerializer.writeInt8(11); + const auto value_styledValue_11 = value_styledValue.value11; + valueSerializer.writeUserDataSpan(value_styledValue_11); + } + else if (value_styledValue_type == 12) { + valueSerializer.writeInt8(12); + const auto value_styledValue_12 = value_styledValue.value12; + valueSerializer.writeBackgroundColorStyle(value_styledValue_12); + } } void writeReceiveCallback(Ark_ReceiveCallback value) { @@ -74835,12 +75045,6 @@ class Deserializer : public DeserializerBase { value.type = type_buf; return value; } - Ark_ICurve readICurve() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_PixelMap readPixelMap() { Deserializer& valueDeserializer = *this; @@ -74853,6 +75057,307 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_LeadingMarginPlaceholder readLeadingMarginPlaceholder() + { + Ark_LeadingMarginPlaceholder value = {}; + Deserializer& valueDeserializer = *this; + value.pixelMap = static_cast(valueDeserializer.readPixelMap()); + Ark_Tuple_Dimension_Dimension size_buf = {}; + size_buf.value0 = valueDeserializer.readLength(); + size_buf.value1 = valueDeserializer.readLength(); + value.size = size_buf; + return value; + } + Ark_ICurve readICurve() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextBackgroundStyle readTextBackgroundStyle() + { + Ark_TextBackgroundStyle value = {}; + Deserializer& valueDeserializer = *this; + const auto color_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ResourceColor color_buf = {}; + color_buf.tag = color_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (color_buf_runtimeType)) + { + const Ark_Int8 color_buf__selector = valueDeserializer.readInt8(); + Ark_ResourceColor color_buf_ = {}; + color_buf_.selector = color_buf__selector; + if (color_buf__selector == 0) { + color_buf_.selector = 0; + color_buf_.value0 = static_cast(valueDeserializer.readInt32()); + } + else if (color_buf__selector == 1) { + color_buf_.selector = 1; + color_buf_.value1 = static_cast(valueDeserializer.readNumber()); + } + else if (color_buf__selector == 2) { + color_buf_.selector = 2; + color_buf_.value2 = static_cast(valueDeserializer.readString()); + } + else if (color_buf__selector == 3) { + color_buf_.selector = 3; + color_buf_.value3 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); + } + color_buf.value = static_cast(color_buf_); + } + value.color = color_buf; + const auto radius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_Dimension_BorderRadiuses radius_buf = {}; + radius_buf.tag = radius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf_runtimeType)) + { + const Ark_Int8 radius_buf__selector = valueDeserializer.readInt8(); + Ark_Union_Dimension_BorderRadiuses radius_buf_ = {}; + radius_buf_.selector = radius_buf__selector; + if (radius_buf__selector == 0) { + radius_buf_.selector = 0; + radius_buf_.value0 = valueDeserializer.readLength(); + } + else if (radius_buf__selector == 1) { + radius_buf_.selector = 1; + Ark_BorderRadiuses radius_buf__u = {}; + const auto radius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_topLeft_buf = {}; + radius_buf__u_topLeft_buf.tag = radius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.topLeft = radius_buf__u_topLeft_buf; + const auto radius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_topRight_buf = {}; + radius_buf__u_topRight_buf.tag = radius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.topRight = radius_buf__u_topRight_buf; + const auto radius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_bottomLeft_buf = {}; + radius_buf__u_bottomLeft_buf.tag = radius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.bottomLeft = radius_buf__u_bottomLeft_buf; + const auto radius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_bottomRight_buf = {}; + radius_buf__u_bottomRight_buf.tag = radius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.bottomRight = radius_buf__u_bottomRight_buf; + radius_buf_.value1 = radius_buf__u; + } + else { + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); + } + radius_buf.value = static_cast(radius_buf_); + } + value.radius = radius_buf; + return value; + } + Ark_ImageAttachmentLayoutStyle readImageAttachmentLayoutStyle() + { + Ark_ImageAttachmentLayoutStyle value = {}; + Deserializer& valueDeserializer = *this; + const auto margin_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_Margin margin_buf = {}; + margin_buf.tag = margin_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf_runtimeType)) + { + const Ark_Int8 margin_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_Margin margin_buf_ = {}; + margin_buf_.selector = margin_buf__selector; + if (margin_buf__selector == 0) { + margin_buf_.selector = 0; + margin_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (margin_buf__selector == 1) { + margin_buf_.selector = 1; + Ark_Padding margin_buf__u = {}; + const auto margin_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_top_buf = {}; + margin_buf__u_top_buf.tag = margin_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) + { + margin_buf__u_top_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.top = margin_buf__u_top_buf; + const auto margin_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_right_buf = {}; + margin_buf__u_right_buf.tag = margin_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) + { + margin_buf__u_right_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.right = margin_buf__u_right_buf; + const auto margin_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_bottom_buf = {}; + margin_buf__u_bottom_buf.tag = margin_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) + { + margin_buf__u_bottom_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.bottom = margin_buf__u_bottom_buf; + const auto margin_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_left_buf = {}; + margin_buf__u_left_buf.tag = margin_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) + { + margin_buf__u_left_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.left = margin_buf__u_left_buf; + margin_buf_.value1 = margin_buf__u; + } + else { + INTEROP_FATAL("One of the branches for margin_buf_ has to be chosen through deserialisation."); + } + margin_buf.value = static_cast(margin_buf_); + } + value.margin = margin_buf; + const auto padding_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_Padding padding_buf = {}; + padding_buf.tag = padding_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf_runtimeType)) + { + const Ark_Int8 padding_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_Padding padding_buf_ = {}; + padding_buf_.selector = padding_buf__selector; + if (padding_buf__selector == 0) { + padding_buf_.selector = 0; + padding_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (padding_buf__selector == 1) { + padding_buf_.selector = 1; + Ark_Padding padding_buf__u = {}; + const auto padding_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_top_buf = {}; + padding_buf__u_top_buf.tag = padding_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) + { + padding_buf__u_top_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.top = padding_buf__u_top_buf; + const auto padding_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_right_buf = {}; + padding_buf__u_right_buf.tag = padding_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) + { + padding_buf__u_right_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.right = padding_buf__u_right_buf; + const auto padding_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_bottom_buf = {}; + padding_buf__u_bottom_buf.tag = padding_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) + { + padding_buf__u_bottom_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.bottom = padding_buf__u_bottom_buf; + const auto padding_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_left_buf = {}; + padding_buf__u_left_buf.tag = padding_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) + { + padding_buf__u_left_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.left = padding_buf__u_left_buf; + padding_buf_.value1 = padding_buf__u; + } + else { + INTEROP_FATAL("One of the branches for padding_buf_ has to be chosen through deserialisation."); + } + padding_buf.value = static_cast(padding_buf_); + } + value.padding = padding_buf; + const auto borderRadius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_BorderRadiuses borderRadius_buf = {}; + borderRadius_buf.tag = borderRadius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf_runtimeType)) + { + const Ark_Int8 borderRadius_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_BorderRadiuses borderRadius_buf_ = {}; + borderRadius_buf_.selector = borderRadius_buf__selector; + if (borderRadius_buf__selector == 0) { + borderRadius_buf_.selector = 0; + borderRadius_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (borderRadius_buf__selector == 1) { + borderRadius_buf_.selector = 1; + Ark_BorderRadiuses borderRadius_buf__u = {}; + const auto borderRadius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_topLeft_buf = {}; + borderRadius_buf__u_topLeft_buf.tag = borderRadius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) + { + borderRadius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.topLeft = borderRadius_buf__u_topLeft_buf; + const auto borderRadius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_topRight_buf = {}; + borderRadius_buf__u_topRight_buf.tag = borderRadius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) + { + borderRadius_buf__u_topRight_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.topRight = borderRadius_buf__u_topRight_buf; + const auto borderRadius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_bottomLeft_buf = {}; + borderRadius_buf__u_bottomLeft_buf.tag = borderRadius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) + { + borderRadius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.bottomLeft = borderRadius_buf__u_bottomLeft_buf; + const auto borderRadius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_bottomRight_buf = {}; + borderRadius_buf__u_bottomRight_buf.tag = borderRadius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) + { + borderRadius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.bottomRight = borderRadius_buf__u_bottomRight_buf; + borderRadius_buf_.value1 = borderRadius_buf__u; + } + else { + INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); + } + borderRadius_buf.value = static_cast(borderRadius_buf_); + } + value.borderRadius = borderRadius_buf; + return value; + } + Ark_SizeOptions readSizeOptions() + { + Ark_SizeOptions value = {}; + Deserializer& valueDeserializer = *this; + const auto width_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length width_buf = {}; + width_buf.tag = width_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (width_buf_runtimeType)) + { + width_buf.value = valueDeserializer.readLength(); + } + value.width = width_buf; + const auto height_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length height_buf = {}; + height_buf.tag = height_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (height_buf_runtimeType)) + { + height_buf.value = valueDeserializer.readLength(); + } + value.height = height_buf; + return value; + } Ark_Position readPosition() { Ark_Position value = {}; @@ -74882,17 +75387,6 @@ class Deserializer : public DeserializerBase { value._SymbolGlyphModifierStub = static_cast(valueDeserializer.readString()); return value; } - Ark_LeadingMarginPlaceholder readLeadingMarginPlaceholder() - { - Ark_LeadingMarginPlaceholder value = {}; - Deserializer& valueDeserializer = *this; - value.pixelMap = static_cast(valueDeserializer.readPixelMap()); - Ark_Tuple_Dimension_Dimension size_buf = {}; - size_buf.value0 = valueDeserializer.readLength(); - size_buf.value1 = valueDeserializer.readLength(); - value.size = size_buf; - return value; - } Ark_ShadowOptions readShadowOptions() { Ark_ShadowOptions value = {}; @@ -75058,6 +75552,83 @@ class Deserializer : public DeserializerBase { value.xxl = xxl_buf; return value; } + Ark_BackgroundColorStyle readBackgroundColorStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_UserDataSpan readUserDataSpan() + { + Ark_UserDataSpan value = {}; + return value; + } + Ark_CustomSpan readCustomSpan() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_UrlStyle readUrlStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_LineHeightStyle readLineHeightStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ParagraphStyle readParagraphStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ImageAttachment readImageAttachment() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_GestureStyle readGestureStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextShadowStyle readTextShadowStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_LetterSpacingStyle readLetterSpacingStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_BaselineOffsetStyle readBaselineOffsetStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_DecorationStyle readDecorationStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextStyle_styled_string readTextStyle_styled_string() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_Area readArea() { Ark_Area value = {}; @@ -75710,206 +76281,6 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_StyledStringValue readStyledStringValue() - { - Ark_StyledStringValue value = {}; - Deserializer& valueDeserializer = *this; - value.stub = static_cast(valueDeserializer.readString()); - return value; - } - Ark_ImageAttachmentLayoutStyle readImageAttachmentLayoutStyle() - { - Ark_ImageAttachmentLayoutStyle value = {}; - Deserializer& valueDeserializer = *this; - const auto margin_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_LengthMetrics_Margin margin_buf = {}; - margin_buf.tag = margin_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf_runtimeType)) - { - const Ark_Int8 margin_buf__selector = valueDeserializer.readInt8(); - Ark_Union_LengthMetrics_Margin margin_buf_ = {}; - margin_buf_.selector = margin_buf__selector; - if (margin_buf__selector == 0) { - margin_buf_.selector = 0; - margin_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); - } - else if (margin_buf__selector == 1) { - margin_buf_.selector = 1; - Ark_Padding margin_buf__u = {}; - const auto margin_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_top_buf = {}; - margin_buf__u_top_buf.tag = margin_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) - { - margin_buf__u_top_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.top = margin_buf__u_top_buf; - const auto margin_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_right_buf = {}; - margin_buf__u_right_buf.tag = margin_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) - { - margin_buf__u_right_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.right = margin_buf__u_right_buf; - const auto margin_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_bottom_buf = {}; - margin_buf__u_bottom_buf.tag = margin_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) - { - margin_buf__u_bottom_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.bottom = margin_buf__u_bottom_buf; - const auto margin_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_left_buf = {}; - margin_buf__u_left_buf.tag = margin_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) - { - margin_buf__u_left_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.left = margin_buf__u_left_buf; - margin_buf_.value1 = margin_buf__u; - } - else { - INTEROP_FATAL("One of the branches for margin_buf_ has to be chosen through deserialisation."); - } - margin_buf.value = static_cast(margin_buf_); - } - value.margin = margin_buf; - const auto padding_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_LengthMetrics_Padding padding_buf = {}; - padding_buf.tag = padding_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf_runtimeType)) - { - const Ark_Int8 padding_buf__selector = valueDeserializer.readInt8(); - Ark_Union_LengthMetrics_Padding padding_buf_ = {}; - padding_buf_.selector = padding_buf__selector; - if (padding_buf__selector == 0) { - padding_buf_.selector = 0; - padding_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); - } - else if (padding_buf__selector == 1) { - padding_buf_.selector = 1; - Ark_Padding padding_buf__u = {}; - const auto padding_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_top_buf = {}; - padding_buf__u_top_buf.tag = padding_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) - { - padding_buf__u_top_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.top = padding_buf__u_top_buf; - const auto padding_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_right_buf = {}; - padding_buf__u_right_buf.tag = padding_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) - { - padding_buf__u_right_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.right = padding_buf__u_right_buf; - const auto padding_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_bottom_buf = {}; - padding_buf__u_bottom_buf.tag = padding_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) - { - padding_buf__u_bottom_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.bottom = padding_buf__u_bottom_buf; - const auto padding_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_left_buf = {}; - padding_buf__u_left_buf.tag = padding_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) - { - padding_buf__u_left_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.left = padding_buf__u_left_buf; - padding_buf_.value1 = padding_buf__u; - } - else { - INTEROP_FATAL("One of the branches for padding_buf_ has to be chosen through deserialisation."); - } - padding_buf.value = static_cast(padding_buf_); - } - value.padding = padding_buf; - const auto borderRadius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_LengthMetrics_BorderRadiuses borderRadius_buf = {}; - borderRadius_buf.tag = borderRadius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf_runtimeType)) - { - const Ark_Int8 borderRadius_buf__selector = valueDeserializer.readInt8(); - Ark_Union_LengthMetrics_BorderRadiuses borderRadius_buf_ = {}; - borderRadius_buf_.selector = borderRadius_buf__selector; - if (borderRadius_buf__selector == 0) { - borderRadius_buf_.selector = 0; - borderRadius_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); - } - else if (borderRadius_buf__selector == 1) { - borderRadius_buf_.selector = 1; - Ark_BorderRadiuses borderRadius_buf__u = {}; - const auto borderRadius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_topLeft_buf = {}; - borderRadius_buf__u_topLeft_buf.tag = borderRadius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) - { - borderRadius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.topLeft = borderRadius_buf__u_topLeft_buf; - const auto borderRadius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_topRight_buf = {}; - borderRadius_buf__u_topRight_buf.tag = borderRadius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) - { - borderRadius_buf__u_topRight_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.topRight = borderRadius_buf__u_topRight_buf; - const auto borderRadius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_bottomLeft_buf = {}; - borderRadius_buf__u_bottomLeft_buf.tag = borderRadius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) - { - borderRadius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.bottomLeft = borderRadius_buf__u_bottomLeft_buf; - const auto borderRadius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_bottomRight_buf = {}; - borderRadius_buf__u_bottomRight_buf.tag = borderRadius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) - { - borderRadius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.bottomRight = borderRadius_buf__u_bottomRight_buf; - borderRadius_buf_.value1 = borderRadius_buf__u; - } - else { - INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); - } - borderRadius_buf.value = static_cast(borderRadius_buf_); - } - value.borderRadius = borderRadius_buf; - return value; - } - Ark_SizeOptions readSizeOptions() - { - Ark_SizeOptions value = {}; - Deserializer& valueDeserializer = *this; - const auto width_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length width_buf = {}; - width_buf.tag = width_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (width_buf_runtimeType)) - { - width_buf.value = valueDeserializer.readLength(); - } - value.width = width_buf; - const auto height_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length height_buf = {}; - height_buf.tag = height_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (height_buf_runtimeType)) - { - height_buf.value = valueDeserializer.readLength(); - } - value.height = height_buf; - return value; - } Ark_ImageAnalyzerController readImageAnalyzerController() { Deserializer& valueDeserializer = *this; @@ -78531,112 +78902,67 @@ class Deserializer : public DeserializerBase { value.start = static_cast(valueDeserializer.readNumber()); value.length = static_cast(valueDeserializer.readNumber()); value.styledKey = static_cast(valueDeserializer.readInt32()); - value.styledValue = valueDeserializer.readStyledStringValue(); - return value; - } - Ark_TextBackgroundStyle readTextBackgroundStyle() - { - Ark_TextBackgroundStyle value = {}; - Deserializer& valueDeserializer = *this; - const auto color_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceColor color_buf = {}; - color_buf.tag = color_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (color_buf_runtimeType)) - { - const Ark_Int8 color_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceColor color_buf_ = {}; - color_buf_.selector = color_buf__selector; - if (color_buf__selector == 0) { - color_buf_.selector = 0; - color_buf_.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (color_buf__selector == 1) { - color_buf_.selector = 1; - color_buf_.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (color_buf__selector == 2) { - color_buf_.selector = 2; - color_buf_.value2 = static_cast(valueDeserializer.readString()); - } - else if (color_buf__selector == 3) { - color_buf_.selector = 3; - color_buf_.value3 = valueDeserializer.readResource(); - } - else { - INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); - } - color_buf.value = static_cast(color_buf_); + const Ark_Int8 styledValue_buf_selector = valueDeserializer.readInt8(); + Ark_StyledStringValue styledValue_buf = {}; + styledValue_buf.selector = styledValue_buf_selector; + if (styledValue_buf_selector == 0) { + styledValue_buf.selector = 0; + styledValue_buf.value0 = static_cast(valueDeserializer.readTextStyle_styled_string()); } - value.color = color_buf; - const auto radius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_Dimension_BorderRadiuses radius_buf = {}; - radius_buf.tag = radius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf_runtimeType)) - { - const Ark_Int8 radius_buf__selector = valueDeserializer.readInt8(); - Ark_Union_Dimension_BorderRadiuses radius_buf_ = {}; - radius_buf_.selector = radius_buf__selector; - if (radius_buf__selector == 0) { - radius_buf_.selector = 0; - radius_buf_.value0 = valueDeserializer.readLength(); - } - else if (radius_buf__selector == 1) { - radius_buf_.selector = 1; - Ark_BorderRadiuses radius_buf__u = {}; - const auto radius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_topLeft_buf = {}; - radius_buf__u_topLeft_buf.tag = radius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.topLeft = radius_buf__u_topLeft_buf; - const auto radius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_topRight_buf = {}; - radius_buf__u_topRight_buf.tag = radius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.topRight = radius_buf__u_topRight_buf; - const auto radius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_bottomLeft_buf = {}; - radius_buf__u_bottomLeft_buf.tag = radius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.bottomLeft = radius_buf__u_bottomLeft_buf; - const auto radius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_bottomRight_buf = {}; - radius_buf__u_bottomRight_buf.tag = radius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.bottomRight = radius_buf__u_bottomRight_buf; - radius_buf_.value1 = radius_buf__u; - } - else { - INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); - } - radius_buf.value = static_cast(radius_buf_); + else if (styledValue_buf_selector == 1) { + styledValue_buf.selector = 1; + styledValue_buf.value1 = static_cast(valueDeserializer.readDecorationStyle()); } - value.radius = radius_buf; + else if (styledValue_buf_selector == 2) { + styledValue_buf.selector = 2; + styledValue_buf.value2 = static_cast(valueDeserializer.readBaselineOffsetStyle()); + } + else if (styledValue_buf_selector == 3) { + styledValue_buf.selector = 3; + styledValue_buf.value3 = static_cast(valueDeserializer.readLetterSpacingStyle()); + } + else if (styledValue_buf_selector == 4) { + styledValue_buf.selector = 4; + styledValue_buf.value4 = static_cast(valueDeserializer.readTextShadowStyle()); + } + else if (styledValue_buf_selector == 5) { + styledValue_buf.selector = 5; + styledValue_buf.value5 = static_cast(valueDeserializer.readGestureStyle()); + } + else if (styledValue_buf_selector == 6) { + styledValue_buf.selector = 6; + styledValue_buf.value6 = static_cast(valueDeserializer.readImageAttachment()); + } + else if (styledValue_buf_selector == 7) { + styledValue_buf.selector = 7; + styledValue_buf.value7 = static_cast(valueDeserializer.readParagraphStyle()); + } + else if (styledValue_buf_selector == 8) { + styledValue_buf.selector = 8; + styledValue_buf.value8 = static_cast(valueDeserializer.readLineHeightStyle()); + } + else if (styledValue_buf_selector == 9) { + styledValue_buf.selector = 9; + styledValue_buf.value9 = static_cast(valueDeserializer.readUrlStyle()); + } + else if (styledValue_buf_selector == 10) { + styledValue_buf.selector = 10; + styledValue_buf.value10 = static_cast(valueDeserializer.readCustomSpan()); + } + else if (styledValue_buf_selector == 11) { + styledValue_buf.selector = 11; + styledValue_buf.value11 = valueDeserializer.readUserDataSpan(); + } + else if (styledValue_buf_selector == 12) { + styledValue_buf.selector = 12; + styledValue_buf.value12 = static_cast(valueDeserializer.readBackgroundColorStyle()); + } + else { + INTEROP_FATAL("One of the branches for styledValue_buf has to be chosen through deserialisation."); + } + value.styledValue = static_cast(styledValue_buf); return value; } - Ark_CustomSpan readCustomSpan() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_ImageAttachment readImageAttachment() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_WaterFlowAttribute readWaterFlowAttribute() { Ark_WaterFlowAttribute value = {}; @@ -89399,18 +89725,6 @@ class Deserializer : public DeserializerBase { value.layoutStyle = layoutStyle_buf; return value; } - Ark_UrlStyle readUrlStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_LineHeightStyle readLineHeightStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_ParagraphStyleInterface readParagraphStyleInterface() { Ark_ParagraphStyleInterface value = {}; @@ -89479,12 +89793,6 @@ class Deserializer : public DeserializerBase { value.leadingMargin = leadingMargin_buf; return value; } - Ark_ParagraphStyle readParagraphStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_GestureStyleInterface readGestureStyleInterface() { Ark_GestureStyleInterface value = {}; @@ -89507,42 +89815,6 @@ class Deserializer : public DeserializerBase { value.onLongPress = onLongPress_buf; return value; } - Ark_GestureStyle readGestureStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_BackgroundColorStyle readBackgroundColorStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_TextShadowStyle readTextShadowStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_LetterSpacingStyle readLetterSpacingStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_BaselineOffsetStyle readBaselineOffsetStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } - Ark_DecorationStyle readDecorationStyle() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_TextStyleInterface readTextStyleInterface() { Ark_TextStyleInterface value = {}; @@ -89643,12 +89915,6 @@ class Deserializer : public DeserializerBase { value.fontStyle = fontStyle_buf; return value; } - Ark_TextStyle_styled_string readTextStyle_styled_string() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_StyleOptions readStyleOptions() { Ark_StyleOptions value = {}; @@ -89670,7 +89936,65 @@ class Deserializer : public DeserializerBase { } value.length = length_buf; value.styledKey = static_cast(valueDeserializer.readInt32()); - value.styledValue = valueDeserializer.readStyledStringValue(); + const Ark_Int8 styledValue_buf_selector = valueDeserializer.readInt8(); + Ark_StyledStringValue styledValue_buf = {}; + styledValue_buf.selector = styledValue_buf_selector; + if (styledValue_buf_selector == 0) { + styledValue_buf.selector = 0; + styledValue_buf.value0 = static_cast(valueDeserializer.readTextStyle_styled_string()); + } + else if (styledValue_buf_selector == 1) { + styledValue_buf.selector = 1; + styledValue_buf.value1 = static_cast(valueDeserializer.readDecorationStyle()); + } + else if (styledValue_buf_selector == 2) { + styledValue_buf.selector = 2; + styledValue_buf.value2 = static_cast(valueDeserializer.readBaselineOffsetStyle()); + } + else if (styledValue_buf_selector == 3) { + styledValue_buf.selector = 3; + styledValue_buf.value3 = static_cast(valueDeserializer.readLetterSpacingStyle()); + } + else if (styledValue_buf_selector == 4) { + styledValue_buf.selector = 4; + styledValue_buf.value4 = static_cast(valueDeserializer.readTextShadowStyle()); + } + else if (styledValue_buf_selector == 5) { + styledValue_buf.selector = 5; + styledValue_buf.value5 = static_cast(valueDeserializer.readGestureStyle()); + } + else if (styledValue_buf_selector == 6) { + styledValue_buf.selector = 6; + styledValue_buf.value6 = static_cast(valueDeserializer.readImageAttachment()); + } + else if (styledValue_buf_selector == 7) { + styledValue_buf.selector = 7; + styledValue_buf.value7 = static_cast(valueDeserializer.readParagraphStyle()); + } + else if (styledValue_buf_selector == 8) { + styledValue_buf.selector = 8; + styledValue_buf.value8 = static_cast(valueDeserializer.readLineHeightStyle()); + } + else if (styledValue_buf_selector == 9) { + styledValue_buf.selector = 9; + styledValue_buf.value9 = static_cast(valueDeserializer.readUrlStyle()); + } + else if (styledValue_buf_selector == 10) { + styledValue_buf.selector = 10; + styledValue_buf.value10 = static_cast(valueDeserializer.readCustomSpan()); + } + else if (styledValue_buf_selector == 11) { + styledValue_buf.selector = 11; + styledValue_buf.value11 = valueDeserializer.readUserDataSpan(); + } + else if (styledValue_buf_selector == 12) { + styledValue_buf.selector = 12; + styledValue_buf.value12 = static_cast(valueDeserializer.readBackgroundColorStyle()); + } + else { + INTEROP_FATAL("One of the branches for styledValue_buf has to be chosen through deserialisation."); + } + value.styledValue = static_cast(styledValue_buf); return value; } Ark_ReceiveCallback readReceiveCallback() diff --git a/arkoala/framework/native/src/generated/all_events.cc b/arkoala/framework/native/src/generated/all_events.cc deleted file mode 100644 index 7d14029c35502b6a05c1278e13496e5abb55b8ff..0000000000000000000000000000000000000000 --- a/arkoala/framework/native/src/generated/all_events.cc +++ /dev/null @@ -1,5210 +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. - */ - -#include "events.h" -#include "Serializers.h" -#include "arkoala_api_generated.h" - -namespace Generated { - enum PeerEventKind { - KindAbilityComponent_onConnect = 0, - KindAbilityComponent_onDisconnect = 1, - KindAlphabetIndexer_onSelected = 2, - KindAlphabetIndexer_onSelect = 3, - KindAlphabetIndexer_onRequestPopupData = 4, - KindAlphabetIndexer_onPopupSelect = 5, - KindAlphabetIndexer__onChangeEvent_selected = 6, - KindAnimator_onStart = 7, - KindAnimator_onPause = 8, - KindAnimator_onRepeat = 9, - KindAnimator_onCancel = 10, - KindAnimator_onFinish = 11, - KindAnimator_onFrame = 12, - KindCalendar_onSelectChange = 13, - KindCalendar_onRequestData = 14, - KindCalendarPicker_onChange = 15, - KindCanvas_onReady = 16, - KindCheckbox_onChange = 17, - KindCheckbox__onChangeEvent_select = 18, - KindCheckboxGroup_onChange = 19, - KindCheckboxGroup__onChangeEvent_selectAll = 20, - KindCommonMethod_onChildTouchTest = 21, - KindCommonMethod_onClick0 = 22, - KindCommonMethod_onClick1 = 23, - KindCommonMethod_onHover = 24, - KindCommonMethod_onAccessibilityHover = 25, - KindCommonMethod_onMouse = 26, - KindCommonMethod_onTouch = 27, - KindCommonMethod_onKeyEvent = 28, - KindCommonMethod_onKeyPreIme = 29, - KindCommonMethod_onFocus = 30, - KindCommonMethod_onBlur = 31, - KindCommonMethod_onAppear = 32, - KindCommonMethod_onDisAppear = 33, - KindCommonMethod_onAttach = 34, - KindCommonMethod_onDetach = 35, - KindCommonMethod_onAreaChange = 36, - KindCommonMethod_onDragStart = 37, - KindCommonMethod_onDragEnter = 38, - KindCommonMethod_onDragMove = 39, - KindCommonMethod_onDragLeave = 40, - KindCommonMethod_onDrop = 41, - KindCommonMethod_onDragEnd = 42, - KindCommonMethod_onPreDrag = 43, - KindCommonMethod_accessibilityVirtualNode = 44, - KindCommonMethod_onGestureJudgeBegin = 45, - KindCommonMethod_onGestureRecognizerJudgeBegin0 = 46, - KindCommonMethod_onGestureRecognizerJudgeBegin1 = 47, - KindCommonMethod_shouldBuiltInRecognizerParallelWith = 48, - KindCommonMethod_onTouchIntercept = 49, - KindCommonMethod_onSizeChange = 50, - KindCommonMethod_background = 51, - KindCommonMethod_bindContextMenu0 = 52, - KindCommonMethod_bindContextMenu1 = 53, - KindCommonMethod_bindContentCover0 = 54, - KindCommonMethod_bindContentCover1 = 55, - KindCommonMethod_bindSheet = 56, - KindCommonMethod_onVisibleAreaChange = 57, - KindScrollableCommonMethod_onScroll = 58, - KindScrollableCommonMethod_onDidScroll = 59, - KindScrollableCommonMethod_onReachStart = 60, - KindScrollableCommonMethod_onReachEnd = 61, - KindScrollableCommonMethod_onScrollStart = 62, - KindScrollableCommonMethod_onScrollStop = 63, - KindCounter_onInc = 64, - KindCounter_onDec = 65, - KindDatePicker_onChange = 66, - KindDatePicker_onDateChange = 67, - KindDatePicker__onChangeEvent_selected = 68, - KindEmbeddedComponent_onTerminated = 69, - KindEmbeddedComponent_onError = 70, - KindFolderStack_onFolderStateChange = 71, - KindFolderStack_onHoverStatusChange = 72, - KindFormComponent_onAcquired = 73, - KindFormComponent_onError = 74, - KindFormComponent_onRouter = 75, - KindFormComponent_onUninstall = 76, - KindFormComponent_onLoad = 77, - KindGauge_description = 78, - KindGrid_onScrollBarUpdate = 79, - KindGrid_onScrollIndex = 80, - KindGrid_onItemDragStart = 81, - KindGrid_onItemDragEnter = 82, - KindGrid_onItemDragMove = 83, - KindGrid_onItemDragLeave = 84, - KindGrid_onItemDrop = 85, - KindGrid_onScroll = 86, - KindGrid_onReachStart = 87, - KindGrid_onReachEnd = 88, - KindGrid_onScrollStart = 89, - KindGrid_onScrollStop = 90, - KindGrid_onScrollFrameBegin = 91, - KindGridItem_onSelect = 92, - KindGridItem__onChangeEvent_selected = 93, - KindGridRow_onBreakpointChange = 94, - KindImage_onComplete = 95, - KindImage_onError = 96, - KindImage_onFinish = 97, - KindImageAnimator_onStart = 98, - KindImageAnimator_onPause = 99, - KindImageAnimator_onRepeat = 100, - KindImageAnimator_onCancel = 101, - KindImageAnimator_onFinish = 102, - KindImageSpan_onComplete = 103, - KindImageSpan_onError = 104, - KindList_onScroll = 105, - KindList_onScrollIndex = 106, - KindList_onScrollVisibleContentChange = 107, - KindList_onReachStart = 108, - KindList_onReachEnd = 109, - KindList_onScrollStart = 110, - KindList_onScrollStop = 111, - KindList_onItemDelete = 112, - KindList_onItemMove = 113, - KindList_onItemDragStart = 114, - KindList_onItemDragEnter = 115, - KindList_onItemDragMove = 116, - KindList_onItemDragLeave = 117, - KindList_onItemDrop = 118, - KindList_onScrollFrameBegin = 119, - KindListItem_onSelect = 120, - KindListItem__onChangeEvent_selected = 121, - KindLocationButton_onClick = 122, - KindMarquee_onStart = 123, - KindMarquee_onBounce = 124, - KindMarquee_onFinish = 125, - KindMenuItem_onChange = 126, - KindMenuItem__onChangeEvent_selected = 127, - KindNavDestination_onShown = 128, - KindNavDestination_onHidden = 129, - KindNavDestination_onBackPressed = 130, - KindNavDestination_onReady = 131, - KindNavDestination_onWillAppear = 132, - KindNavDestination_onWillDisappear = 133, - KindNavDestination_onWillShow = 134, - KindNavDestination_onWillHide = 135, - KindNavRouter_onStateChange = 136, - KindPanel_onChange = 137, - KindPanel_onHeightChange = 138, - KindPanel__onChangeEvent_mode = 139, - KindPasteButton_onClick = 140, - KindPatternLock_onPatternComplete = 141, - KindPatternLock_onDotConnect = 142, - KindPluginComponent_onComplete = 143, - KindPluginComponent_onError = 144, - KindRadio_onChange = 145, - KindRadio__onChangeEvent_checked = 146, - KindRating_onChange = 147, - KindRating__onChangeEvent_rating = 148, - KindRefresh_onStateChange = 149, - KindRefresh_onRefreshing = 150, - KindRefresh_onOffsetChange = 151, - KindRefresh__onChangeEvent_refreshing = 152, - KindRichEditor_onReady = 153, - KindRichEditor_onSelect = 154, - KindRichEditor_onSelectionChange = 155, - KindRichEditor_aboutToIMEInput = 156, - KindRichEditor_onIMEInputComplete = 157, - KindRichEditor_onDidIMEInput = 158, - KindRichEditor_aboutToDelete = 159, - KindRichEditor_onDeleteComplete = 160, - KindRichEditor_onPaste = 161, - KindRichEditor_onEditingChange = 162, - KindRichEditor_onSubmit = 163, - KindRichEditor_onWillChange = 164, - KindRichEditor_onDidChange = 165, - KindRichEditor_onCut = 166, - KindRichEditor_onCopy = 167, - KindRichEditor_bindSelectionMenu = 168, - KindRichEditor_customKeyboard = 169, - KindRichText_onStart = 170, - KindRichText_onComplete = 171, - KindSaveButton_onClick = 172, - KindScroll_onScroll = 173, - KindScroll_onDidScroll = 174, - KindScroll_onScrollEdge = 175, - KindScroll_onScrollStart = 176, - KindScroll_onScrollEnd = 177, - KindScroll_onScrollStop = 178, - KindScroll_onScrollFrameBegin = 179, - KindSearch_onEditChange = 180, - KindSearch_onSubmit0 = 181, - KindSearch_onSubmit1 = 182, - KindSearch_onChange = 183, - KindSearch_onTextSelectionChange = 184, - KindSearch_onContentScroll = 185, - KindSearch_onCopy = 186, - KindSearch_onCut = 187, - KindSearch_onPaste = 188, - KindSearch_onWillInsert = 189, - KindSearch_onDidInsert = 190, - KindSearch_onWillDelete = 191, - KindSearch_onDidDelete = 192, - KindSearch_customKeyboard = 193, - KindSearch__onChangeEvent_value = 194, - KindSelect_onSelect = 195, - KindSelect__onChangeEvent_selected = 196, - KindSelect__onChangeEvent_value = 197, - KindSlider_onChange = 198, - KindSlider__onChangeEvent_value = 199, - KindStepper_onFinish = 200, - KindStepper_onSkip = 201, - KindStepper_onChange = 202, - KindStepper_onNext = 203, - KindStepper_onPrevious = 204, - KindStepper__onChangeEvent_index = 205, - KindSwiper_onChange = 206, - KindSwiper_onAnimationStart = 207, - KindSwiper_onAnimationEnd = 208, - KindSwiper_onGestureSwipe = 209, - KindSwiper_onContentDidScroll = 210, - KindSwiper__onChangeEvent_index = 211, - KindIndicatorComponent_onChange = 212, - KindTabs_onChange = 213, - KindTabs_onTabBarClick = 214, - KindTabs_onAnimationStart = 215, - KindTabs_onAnimationEnd = 216, - KindTabs_onGestureSwipe = 217, - KindTabs_customContentTransition = 218, - KindTabs_onContentWillChange = 219, - KindTabs__onChangeEvent_index = 220, - KindTabContent_onWillShow = 221, - KindTabContent_onWillHide = 222, - KindText_onCopy = 223, - KindText_onTextSelectionChange = 224, - KindText_bindSelectionMenu = 225, - KindTextArea_onSubmit0 = 226, - KindTextArea_onSubmit1 = 227, - KindTextArea_onChange = 228, - KindTextArea_onTextSelectionChange = 229, - KindTextArea_onContentScroll = 230, - KindTextArea_onEditChange = 231, - KindTextArea_onCopy = 232, - KindTextArea_onCut = 233, - KindTextArea_onPaste = 234, - KindTextArea_onWillInsert = 235, - KindTextArea_onDidInsert = 236, - KindTextArea_onWillDelete = 237, - KindTextArea_onDidDelete = 238, - KindTextArea_customKeyboard = 239, - KindTextArea__onChangeEvent_text = 240, - KindTextClock_onDateChange = 241, - KindTextInput_onEditChanged = 242, - KindTextInput_onEditChange = 243, - KindTextInput_onSubmit = 244, - KindTextInput_onChange = 245, - KindTextInput_onTextSelectionChange = 246, - KindTextInput_onContentScroll = 247, - KindTextInput_onCopy = 248, - KindTextInput_onCut = 249, - KindTextInput_onPaste = 250, - KindTextInput_showUnit = 251, - KindTextInput_onSecurityStateChange = 252, - KindTextInput_onWillInsert = 253, - KindTextInput_onDidInsert = 254, - KindTextInput_onWillDelete = 255, - KindTextInput_onDidDelete = 256, - KindTextInput_customKeyboard = 257, - KindTextInput__onChangeEvent_text = 258, - KindTextPicker_onAccept = 259, - KindTextPicker_onCancel = 260, - KindTextPicker_onChange = 261, - KindTextPicker__onChangeEvent_selected = 262, - KindTextPicker__onChangeEvent_value = 263, - KindTextTimer_onTimer = 264, - KindTimePicker_onChange = 265, - KindTimePicker__onChangeEvent_selected = 266, - KindToggle_onChange = 267, - KindToggle__onChangeEvent_isOn = 268, - KindVideo_onStart = 269, - KindVideo_onPause = 270, - KindVideo_onFinish = 271, - KindVideo_onFullscreenChange = 272, - KindVideo_onPrepared = 273, - KindVideo_onSeeking = 274, - KindVideo_onSeeked = 275, - KindVideo_onUpdate = 276, - KindVideo_onError = 277, - KindVideo_onStop = 278, - KindWeb_onPageEnd = 279, - KindWeb_onPageBegin = 280, - KindWeb_onProgressChange = 281, - KindWeb_onTitleReceive = 282, - KindWeb_onGeolocationHide = 283, - KindWeb_onGeolocationShow = 284, - KindWeb_onRequestSelected = 285, - KindWeb_onAlert = 286, - KindWeb_onBeforeUnload = 287, - KindWeb_onConfirm = 288, - KindWeb_onPrompt = 289, - KindWeb_onConsole = 290, - KindWeb_onErrorReceive = 291, - KindWeb_onHttpErrorReceive = 292, - KindWeb_onDownloadStart = 293, - KindWeb_onRefreshAccessedHistory = 294, - KindWeb_onUrlLoadIntercept = 295, - KindWeb_onSslErrorReceive = 296, - KindWeb_onRenderExited0 = 297, - KindWeb_onRenderExited1 = 298, - KindWeb_onShowFileSelector = 299, - KindWeb_onFileSelectorShow = 300, - KindWeb_onResourceLoad = 301, - KindWeb_onFullScreenExit = 302, - KindWeb_onFullScreenEnter = 303, - KindWeb_onScaleChange = 304, - KindWeb_onHttpAuthRequest = 305, - KindWeb_onInterceptRequest = 306, - KindWeb_onPermissionRequest = 307, - KindWeb_onScreenCaptureRequest = 308, - KindWeb_onContextMenuShow = 309, - KindWeb_onContextMenuHide = 310, - KindWeb_onSearchResultReceive = 311, - KindWeb_onScroll = 312, - KindWeb_onSslErrorEventReceive = 313, - KindWeb_onSslErrorEvent = 314, - KindWeb_onClientAuthenticationRequest = 315, - KindWeb_onWindowNew = 316, - KindWeb_onWindowExit = 317, - KindWeb_onInterceptKeyEvent = 318, - KindWeb_onTouchIconUrlReceived = 319, - KindWeb_onFaviconReceived = 320, - KindWeb_onPageVisible = 321, - KindWeb_onDataResubmitted = 322, - KindWeb_onAudioStateChanged = 323, - KindWeb_onFirstContentfulPaint = 324, - KindWeb_onFirstMeaningfulPaint = 325, - KindWeb_onLargestContentfulPaint = 326, - KindWeb_onLoadIntercept = 327, - KindWeb_onControllerAttached = 328, - KindWeb_onOverScroll = 329, - KindWeb_onSafeBrowsingCheckResult = 330, - KindWeb_onNavigationEntryCommitted = 331, - KindWeb_onIntelligentTrackingPreventionResult = 332, - KindWeb_onNativeEmbedLifecycleChange = 333, - KindWeb_onNativeEmbedVisibilityChange = 334, - KindWeb_onNativeEmbedGestureEvent = 335, - KindWeb_onOverrideUrlLoading = 336, - KindWeb_onRenderProcessNotResponding = 337, - KindWeb_onRenderProcessResponding = 338, - KindWeb_onViewportFitChanged = 339, - KindWeb_onInterceptKeyboardAttach = 340, - KindWeb_onAdsBlocked = 341, - KindWeb_bindSelectionMenu = 342, - KindXComponent_onLoad = 343, - KindXComponent_onDestroy = 344, - KindSideBarContainer_onChange = 345, - KindSideBarContainer__onChangeEvent_showSideBar = 346, - KindWaterFlow_onReachStart = 347, - KindWaterFlow_onReachEnd = 348, - KindWaterFlow_onScrollFrameBegin = 349, - KindWaterFlow_onScrollIndex = 350, - KindUIExtensionComponent_onRemoteReady = 351, - KindUIExtensionComponent_onResult = 352, - KindUIExtensionComponent_onRelease = 353, - KindUIExtensionComponent_onError = 354, - KindUIExtensionComponent_onTerminated = 355, - }; - - namespace AbilityComponent { - void onConnectImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAbilityComponent_onConnect); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onDisconnectImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAbilityComponent_onDisconnect); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace AlphabetIndexer { - void onSelectedImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAlphabetIndexer_onSelected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onSelectImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAlphabetIndexer_onSelect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onRequestPopupDataImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAlphabetIndexer_onRequestPopupData); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onPopupSelectImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAlphabetIndexer_onPopupSelect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAlphabetIndexer__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace Animator { - void onStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAnimator_onStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onPauseImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAnimator_onPause); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onRepeatImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAnimator_onRepeat); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onCancelImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAnimator_onCancel); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFinishImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAnimator_onFinish); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFrameImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAnimator_onFrame); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace Calendar { - void onSelectChangeImpl(Ark_Int32 nodeId, - const Ark_CalendarSelectedDate event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCalendar_onSelectChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeCalendarSelectedDate(event); - sendEvent(&_eventBuffer); - } - void onRequestDataImpl(Ark_Int32 nodeId, - const Ark_CalendarRequestedData event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCalendar_onRequestData); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeCalendarRequestedData(event); - sendEvent(&_eventBuffer); - } - } - namespace CalendarPicker { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Date parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCalendarPicker_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt64(parameter); - sendEvent(&_eventBuffer); - } - } - namespace Canvas { - void onReadyImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCanvas_onReady); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace Checkbox { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCheckbox_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(value); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCheckbox__onChangeEvent_select); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace CheckboxGroup { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_CheckboxGroupResult value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCheckboxGroup_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeCheckboxGroupResult(value); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectAllImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCheckboxGroup__onChangeEvent_selectAll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace CommonMethod { - void onChildTouchTestImpl(Ark_Int32 nodeId, - const Array_TouchTestInfo value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onChildTouchTest); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(value.length); - for (int i = 0; i < value.length; i++) { - const Ark_TouchTestInfo value_element = value.array[i]; - _eventBufferSerializer.writeTouchTestInfo(value_element); - } - sendEvent(&_eventBuffer); - } - void onClick0Impl(Ark_Int32 nodeId, - const Ark_ClickEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onClick0); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeClickEvent(event); - sendEvent(&_eventBuffer); - } - void onClick1Impl(Ark_Int32 nodeId, - const Ark_ClickEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onClick1); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeClickEvent(event); - sendEvent(&_eventBuffer); - } - void onHoverImpl(Ark_Int32 nodeId, - const Ark_Boolean isHover, - const Ark_HoverEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onHover); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(isHover); - _eventBufferSerializer.writeHoverEvent(event); - sendEvent(&_eventBuffer); - } - void onAccessibilityHoverImpl(Ark_Int32 nodeId, - const Ark_Boolean isHover, - const Ark_AccessibilityHoverEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onAccessibilityHover); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(isHover); - _eventBufferSerializer.writeAccessibilityHoverEvent(event); - sendEvent(&_eventBuffer); - } - void onMouseImpl(Ark_Int32 nodeId, - const Ark_MouseEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onMouse); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeMouseEvent(event); - sendEvent(&_eventBuffer); - } - void onTouchImpl(Ark_Int32 nodeId, - const Ark_TouchEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onTouch); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTouchEvent(event); - sendEvent(&_eventBuffer); - } - void onKeyEventImpl(Ark_Int32 nodeId, - const Ark_KeyEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onKeyEvent); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeKeyEvent(event); - sendEvent(&_eventBuffer); - } - void onKeyPreImeImpl(Ark_Int32 nodeId, - const Ark_KeyEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onKeyPreIme); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeKeyEvent(parameter); - sendEvent(&_eventBuffer); - } - void onFocusImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onFocus); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onBlurImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onBlur); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onAppearImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onAppear); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onDisAppearImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDisAppear); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onAttachImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onAttach); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onDetachImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDetach); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onAreaChangeImpl(Ark_Int32 nodeId, - const Ark_Area oldValue, - const Ark_Area newValue) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onAreaChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeArea(oldValue); - _eventBufferSerializer.writeArea(newValue); - sendEvent(&_eventBuffer); - } - void onDragStartImpl(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDragStart); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDragEvent(event); - Ark_Int32 extraParams_type = INTEROP_RUNTIME_UNDEFINED; - extraParams_type = runtimeType(extraParams); - _eventBufferSerializer.writeInt8(extraParams_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (extraParams_type)) { - const auto extraParams_value = extraParams.value; - _eventBufferSerializer.writeString(extraParams_value); - } - sendEvent(&_eventBuffer); - } - void onDragEnterImpl(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDragEnter); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDragEvent(event); - Ark_Int32 extraParams_type = INTEROP_RUNTIME_UNDEFINED; - extraParams_type = runtimeType(extraParams); - _eventBufferSerializer.writeInt8(extraParams_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (extraParams_type)) { - const auto extraParams_value = extraParams.value; - _eventBufferSerializer.writeString(extraParams_value); - } - sendEvent(&_eventBuffer); - } - void onDragMoveImpl(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDragMove); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDragEvent(event); - Ark_Int32 extraParams_type = INTEROP_RUNTIME_UNDEFINED; - extraParams_type = runtimeType(extraParams); - _eventBufferSerializer.writeInt8(extraParams_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (extraParams_type)) { - const auto extraParams_value = extraParams.value; - _eventBufferSerializer.writeString(extraParams_value); - } - sendEvent(&_eventBuffer); - } - void onDragLeaveImpl(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDragLeave); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDragEvent(event); - Ark_Int32 extraParams_type = INTEROP_RUNTIME_UNDEFINED; - extraParams_type = runtimeType(extraParams); - _eventBufferSerializer.writeInt8(extraParams_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (extraParams_type)) { - const auto extraParams_value = extraParams.value; - _eventBufferSerializer.writeString(extraParams_value); - } - sendEvent(&_eventBuffer); - } - void onDropImpl(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDrop); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDragEvent(event); - Ark_Int32 extraParams_type = INTEROP_RUNTIME_UNDEFINED; - extraParams_type = runtimeType(extraParams); - _eventBufferSerializer.writeInt8(extraParams_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (extraParams_type)) { - const auto extraParams_value = extraParams.value; - _eventBufferSerializer.writeString(extraParams_value); - } - sendEvent(&_eventBuffer); - } - void onDragEndImpl(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onDragEnd); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDragEvent(event); - Ark_Int32 extraParams_type = INTEROP_RUNTIME_UNDEFINED; - extraParams_type = runtimeType(extraParams); - _eventBufferSerializer.writeInt8(extraParams_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (extraParams_type)) { - const auto extraParams_value = extraParams.value; - _eventBufferSerializer.writeString(extraParams_value); - } - sendEvent(&_eventBuffer); - } - void onPreDragImpl(Ark_Int32 nodeId, - const Ark_PreDragStatus parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onPreDrag); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(parameter)); - sendEvent(&_eventBuffer); - } - void accessibilityVirtualNodeImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_accessibilityVirtualNode); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onGestureJudgeBeginImpl(Ark_Int32 nodeId, - const Ark_GestureInfo gestureInfo, - const Ark_BaseGestureEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onGestureJudgeBegin); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeGestureInfo(gestureInfo); - _eventBufferSerializer.writeBaseGestureEvent(event); - sendEvent(&_eventBuffer); - } - void onGestureRecognizerJudgeBegin0Impl(Ark_Int32 nodeId, - const Ark_BaseGestureEvent event, - const Ark_GestureRecognizer current, - const Array_GestureRecognizer recognizers) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onGestureRecognizerJudgeBegin0); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBaseGestureEvent(event); - _eventBufferSerializer.writeGestureRecognizer(current); - _eventBufferSerializer.writeInt32(recognizers.length); - for (int i = 0; i < recognizers.length; i++) { - const Ark_GestureRecognizer recognizers_element = recognizers.array[i]; - _eventBufferSerializer.writeGestureRecognizer(recognizers_element); - } - sendEvent(&_eventBuffer); - } - void onGestureRecognizerJudgeBegin1Impl(Ark_Int32 nodeId, - const Ark_BaseGestureEvent event, - const Ark_GestureRecognizer current, - const Array_GestureRecognizer recognizers) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onGestureRecognizerJudgeBegin1); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBaseGestureEvent(event); - _eventBufferSerializer.writeGestureRecognizer(current); - _eventBufferSerializer.writeInt32(recognizers.length); - for (int i = 0; i < recognizers.length; i++) { - const Ark_GestureRecognizer recognizers_element = recognizers.array[i]; - _eventBufferSerializer.writeGestureRecognizer(recognizers_element); - } - sendEvent(&_eventBuffer); - } - void shouldBuiltInRecognizerParallelWithImpl(Ark_Int32 nodeId, - const Ark_GestureRecognizer current, - const Array_GestureRecognizer others) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_shouldBuiltInRecognizerParallelWith); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeGestureRecognizer(current); - _eventBufferSerializer.writeInt32(others.length); - for (int i = 0; i < others.length; i++) { - const Ark_GestureRecognizer others_element = others.array[i]; - _eventBufferSerializer.writeGestureRecognizer(others_element); - } - sendEvent(&_eventBuffer); - } - void onTouchInterceptImpl(Ark_Int32 nodeId, - const Ark_TouchEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onTouchIntercept); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTouchEvent(parameter); - sendEvent(&_eventBuffer); - } - void onSizeChangeImpl(Ark_Int32 nodeId, - const Ark_SizeOptions oldValue, - const Ark_SizeOptions newValue) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onSizeChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeSizeOptions(oldValue); - _eventBufferSerializer.writeSizeOptions(newValue); - sendEvent(&_eventBuffer); - } - void backgroundImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_background); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void bindContextMenu0Impl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_bindContextMenu0); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void bindContextMenu1Impl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_bindContextMenu1); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void bindContentCover0Impl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_bindContentCover0); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void bindContentCover1Impl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_bindContentCover1); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void bindSheetImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_bindSheet); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onVisibleAreaChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean isExpanding, - const Ark_Number currentRatio) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCommonMethod_onVisibleAreaChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(isExpanding); - _eventBufferSerializer.writeNumber(currentRatio); - sendEvent(&_eventBuffer); - } - } - namespace ScrollableCommonMethod { - void onScrollImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onDidScrollImpl(Ark_Int32 nodeId, - const Ark_Number xOffset, - const Ark_Number yOffset, - const Ark_ScrollState scrollState) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onDidScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(xOffset); - _eventBufferSerializer.writeNumber(yOffset); - _eventBufferSerializer.writeInt32(static_cast(scrollState)); - sendEvent(&_eventBuffer); - } - void onReachStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onReachStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onReachEndImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onReachEnd); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onScrollStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStopImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onScrollStop); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace Counter { - void onIncImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCounter_onInc); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onDecImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCounter_onDec); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace DatePicker { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_DatePickerResult value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindDatePicker_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDatePickerResult(value); - sendEvent(&_eventBuffer); - } - void onDateChangeImpl(Ark_Int32 nodeId, - const Ark_Date parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindDatePicker_onDateChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt64(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Date parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindDatePicker__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt64(parameter); - sendEvent(&_eventBuffer); - } - } - namespace EmbeddedComponent { - void onTerminatedImpl(Ark_Int32 nodeId, - const Ark_TerminationInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindEmbeddedComponent_onTerminated); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTerminationInfo(parameter); - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId, - const Ark_BusinessError err) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindEmbeddedComponent_onError); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBusinessError(err); - sendEvent(&_eventBuffer); - } - } - namespace FolderStack { - void onFolderStateChangeImpl(Ark_Int32 nodeId, - const Ark_OnFoldStatusChangeInfo event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFolderStack_onFolderStateChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnFoldStatusChangeInfo(event); - sendEvent(&_eventBuffer); - } - void onHoverStatusChangeImpl(Ark_Int32 nodeId, - const Ark_HoverEventParam param) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFolderStack_onHoverStatusChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeHoverEventParam(param); - sendEvent(&_eventBuffer); - } - } - namespace FormComponent { - void onAcquiredImpl(Ark_Int32 nodeId, - const Ark_FormCallbackInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFormComponent_onAcquired); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeFormCallbackInfo(parameter); - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId, - const Ark_Literal_Number_errcode_String_msg info) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFormComponent_onError); - _eventBufferSerializer.writeInt32(nodeId); - const auto info_errcode = info.errcode; - _eventBufferSerializer.writeNumber(info_errcode); - const auto info_msg = info.msg; - _eventBufferSerializer.writeString(info_msg); - sendEvent(&_eventBuffer); - } - void onRouterImpl(Ark_Int32 nodeId, - const Ark_CustomObject info) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFormComponent_onRouter); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeCustomObject("Any", info); - sendEvent(&_eventBuffer); - } - void onUninstallImpl(Ark_Int32 nodeId, - const Ark_FormCallbackInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFormComponent_onUninstall); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeFormCallbackInfo(parameter); - sendEvent(&_eventBuffer); - } - void onLoadImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindFormComponent_onLoad); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace Gauge { - void descriptionImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGauge_description); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace Grid { - void onScrollBarUpdateImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_Number offset) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onScrollBarUpdate); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeNumber(offset); - sendEvent(&_eventBuffer); - } - void onScrollIndexImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onScrollIndex); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onItemDragStartImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onItemDragStart); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - sendEvent(&_eventBuffer); - } - void onItemDragEnterImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onItemDragEnter); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - sendEvent(&_eventBuffer); - } - void onItemDragMoveImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onItemDragMove); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - _eventBufferSerializer.writeNumber(insertIndex); - sendEvent(&_eventBuffer); - } - void onItemDragLeaveImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onItemDragLeave); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - sendEvent(&_eventBuffer); - } - void onItemDropImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex, - const Ark_Boolean isSuccess) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onItemDrop); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - _eventBufferSerializer.writeNumber(insertIndex); - _eventBufferSerializer.writeBoolean(isSuccess); - sendEvent(&_eventBuffer); - } - void onScrollImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onReachStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onReachStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onReachEndImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onReachEnd); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onScrollStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStopImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onScrollStop); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollFrameBeginImpl(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGrid_onScrollFrameBegin); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(offset); - _eventBufferSerializer.writeInt32(static_cast(state)); - sendEvent(&_eventBuffer); - } - } - namespace GridItem { - void onSelectImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGridItem_onSelect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGridItem__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace GridRow { - void onBreakpointChangeImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGridRow_onBreakpointChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - } - namespace Image { - void onCompleteImpl(Ark_Int32 nodeId, - const Opt_Type_ImageAttribute_onComplete_callback_event event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImage_onComplete); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - const auto event_value_width = event_value.width; - _eventBufferSerializer.writeNumber(event_value_width); - const auto event_value_height = event_value.height; - _eventBufferSerializer.writeNumber(event_value_height); - const auto event_value_componentWidth = event_value.componentWidth; - _eventBufferSerializer.writeNumber(event_value_componentWidth); - const auto event_value_componentHeight = event_value.componentHeight; - _eventBufferSerializer.writeNumber(event_value_componentHeight); - const auto event_value_loadingStatus = event_value.loadingStatus; - _eventBufferSerializer.writeNumber(event_value_loadingStatus); - const auto event_value_contentWidth = event_value.contentWidth; - _eventBufferSerializer.writeNumber(event_value_contentWidth); - const auto event_value_contentHeight = event_value.contentHeight; - _eventBufferSerializer.writeNumber(event_value_contentHeight); - const auto event_value_contentOffsetX = event_value.contentOffsetX; - _eventBufferSerializer.writeNumber(event_value_contentOffsetX); - const auto event_value_contentOffsetY = event_value.contentOffsetY; - _eventBufferSerializer.writeNumber(event_value_contentOffsetY); - } - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId, - const Ark_ImageError error) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImage_onError); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeImageError(error); - sendEvent(&_eventBuffer); - } - void onFinishImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImage_onFinish); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace ImageAnimator { - void onStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageAnimator_onStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onPauseImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageAnimator_onPause); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onRepeatImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageAnimator_onRepeat); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onCancelImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageAnimator_onCancel); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFinishImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageAnimator_onFinish); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace ImageSpan { - void onCompleteImpl(Ark_Int32 nodeId, - const Ark_ImageLoadResult result) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageSpan_onComplete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeImageLoadResult(result); - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId, - const Ark_ImageError error) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindImageSpan_onError); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeImageError(error); - sendEvent(&_eventBuffer); - } - } - namespace List { - void onScrollImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onScrollIndexImpl(Ark_Int32 nodeId, - const Ark_Number start, - const Ark_Number end, - const Ark_Number center) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onScrollIndex); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(start); - _eventBufferSerializer.writeNumber(end); - _eventBufferSerializer.writeNumber(center); - sendEvent(&_eventBuffer); - } - void onScrollVisibleContentChangeImpl(Ark_Int32 nodeId, - const Ark_VisibleListContentInfo start, - const Ark_VisibleListContentInfo end) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onScrollVisibleContentChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeVisibleListContentInfo(start); - _eventBufferSerializer.writeVisibleListContentInfo(end); - sendEvent(&_eventBuffer); - } - void onReachStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onReachStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onReachEndImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onReachEnd); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onScrollStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStopImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onScrollStop); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onItemDeleteImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onItemMoveImpl(Ark_Int32 nodeId, - const Ark_Number from, - const Ark_Number to) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemMove); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(from); - _eventBufferSerializer.writeNumber(to); - sendEvent(&_eventBuffer); - } - void onItemDragStartImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemDragStart); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - sendEvent(&_eventBuffer); - } - void onItemDragEnterImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemDragEnter); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - sendEvent(&_eventBuffer); - } - void onItemDragMoveImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemDragMove); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - _eventBufferSerializer.writeNumber(insertIndex); - sendEvent(&_eventBuffer); - } - void onItemDragLeaveImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemDragLeave); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - sendEvent(&_eventBuffer); - } - void onItemDropImpl(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex, - const Ark_Boolean isSuccess) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onItemDrop); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeItemDragInfo(event); - _eventBufferSerializer.writeNumber(itemIndex); - _eventBufferSerializer.writeNumber(insertIndex); - _eventBufferSerializer.writeBoolean(isSuccess); - sendEvent(&_eventBuffer); - } - void onScrollFrameBeginImpl(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindList_onScrollFrameBegin); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(offset); - _eventBufferSerializer.writeInt32(static_cast(state)); - sendEvent(&_eventBuffer); - } - } - namespace ListItem { - void onSelectImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindListItem_onSelect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindListItem__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace LocationButton { - void onClickImpl(Ark_Int32 nodeId, - const Ark_ClickEvent event, - const Ark_LocationButtonOnClickResult result) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindLocationButton_onClick); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeClickEvent(event); - _eventBufferSerializer.writeInt32(static_cast(result)); - sendEvent(&_eventBuffer); - } - } - namespace Marquee { - void onStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindMarquee_onStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onBounceImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindMarquee_onBounce); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFinishImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindMarquee_onFinish); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace MenuItem { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindMenuItem_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindMenuItem__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace NavDestination { - void onShownImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onShown); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onHiddenImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onHidden); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onBackPressedImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onBackPressed); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onReadyImpl(Ark_Int32 nodeId, - const Ark_NavDestinationContext parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onReady); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNavDestinationContext(parameter); - sendEvent(&_eventBuffer); - } - void onWillAppearImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillAppear); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillDisappearImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillDisappear); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillShowImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillShow); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillHideImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillHide); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace NavRouter { - void onStateChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindNavRouter_onStateChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace Panel { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number width, - const Ark_Number height, - const Ark_PanelMode mode) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPanel_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(width); - _eventBufferSerializer.writeNumber(height); - _eventBufferSerializer.writeInt32(static_cast(mode)); - sendEvent(&_eventBuffer); - } - void onHeightChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPanel_onHeightChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_modeImpl(Ark_Int32 nodeId, - const Ark_PanelMode mode) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPanel__onChangeEvent_mode); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(mode)); - sendEvent(&_eventBuffer); - } - } - namespace PasteButton { - void onClickImpl(Ark_Int32 nodeId, - const Ark_ClickEvent event, - const Ark_PasteButtonOnClickResult result) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPasteButton_onClick); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeClickEvent(event); - _eventBufferSerializer.writeInt32(static_cast(result)); - sendEvent(&_eventBuffer); - } - } - namespace PatternLock { - void onPatternCompleteImpl(Ark_Int32 nodeId, - const Array_Number input) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPatternLock_onPatternComplete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(input.length); - for (int i = 0; i < input.length; i++) { - const Ark_Number input_element = input.array[i]; - _eventBufferSerializer.writeNumber(input_element); - } - sendEvent(&_eventBuffer); - } - void onDotConnectImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPatternLock_onDotConnect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace PluginComponent { - void onCompleteImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPluginComponent_onComplete); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId, - const Ark_PluginErrorData info) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPluginComponent_onError); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writePluginErrorData(info); - sendEvent(&_eventBuffer); - } - } - namespace Radio { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRadio_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_checkedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRadio__onChangeEvent_checked); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace Rating { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRating_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_ratingImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRating__onChangeEvent_rating); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace Refresh { - void onStateChangeImpl(Ark_Int32 nodeId, - const Ark_RefreshStatus state) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRefresh_onStateChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(state)); - sendEvent(&_eventBuffer); - } - void onRefreshingImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRefresh_onRefreshing); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onOffsetChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRefresh_onOffsetChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_refreshingImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRefresh__onChangeEvent_refreshing); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace RichEditor { - void onReadyImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onReady); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onSelectImpl(Ark_Int32 nodeId, - const Ark_RichEditorSelection parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onSelect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRichEditorSelection(parameter); - sendEvent(&_eventBuffer); - } - void onSelectionChangeImpl(Ark_Int32 nodeId, - const Ark_RichEditorRange parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onSelectionChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRichEditorRange(parameter); - sendEvent(&_eventBuffer); - } - void aboutToIMEInputImpl(Ark_Int32 nodeId, - const Ark_RichEditorInsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_aboutToIMEInput); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRichEditorInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onIMEInputCompleteImpl(Ark_Int32 nodeId, - const Ark_RichEditorTextSpanResult parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onIMEInputComplete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRichEditorTextSpanResult(parameter); - sendEvent(&_eventBuffer); - } - void onDidIMEInputImpl(Ark_Int32 nodeId, - const Ark_TextRange parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onDidIMEInput); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTextRange(parameter); - sendEvent(&_eventBuffer); - } - void aboutToDeleteImpl(Ark_Int32 nodeId, - const Ark_RichEditorDeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_aboutToDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRichEditorDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void onDeleteCompleteImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onDeleteComplete); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onPasteImpl(Ark_Int32 nodeId, - const Opt_PasteEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onPaste); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - _eventBufferSerializer.writePasteEvent(event_value); - } - sendEvent(&_eventBuffer); - } - void onEditingChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onEditingChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void onSubmitImpl(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKey, - const Ark_SubmitEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onSubmit); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(enterKey)); - _eventBufferSerializer.writeSubmitEvent(event); - sendEvent(&_eventBuffer); - } - void onWillChangeImpl(Ark_Int32 nodeId, - const Ark_RichEditorChangeValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onWillChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRichEditorChangeValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidChangeImpl(Ark_Int32 nodeId, - const Ark_TextRange rangeBefore, - const Ark_TextRange rangeAfter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onDidChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTextRange(rangeBefore); - _eventBufferSerializer.writeTextRange(rangeAfter); - sendEvent(&_eventBuffer); - } - void onCutImpl(Ark_Int32 nodeId, - const Ark_CutEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onCut); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeCutEvent(parameter); - sendEvent(&_eventBuffer); - } - void onCopyImpl(Ark_Int32 nodeId, - const Ark_CopyEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_onCopy); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeCopyEvent(parameter); - sendEvent(&_eventBuffer); - } - void bindSelectionMenuImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_bindSelectionMenu); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void customKeyboardImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichEditor_customKeyboard); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace RichText { - void onStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichText_onStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onCompleteImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRichText_onComplete); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace SaveButton { - void onClickImpl(Ark_Int32 nodeId, - const Ark_ClickEvent event, - const Ark_SaveButtonOnClickResult result) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSaveButton_onClick); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeClickEvent(event); - _eventBufferSerializer.writeInt32(static_cast(result)); - sendEvent(&_eventBuffer); - } - } - namespace Scroll { - void onScrollImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onDidScrollImpl(Ark_Int32 nodeId, - const Ark_Number xOffset, - const Ark_Number yOffset, - const Ark_ScrollState scrollState) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onDidScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(xOffset); - _eventBufferSerializer.writeNumber(yOffset); - _eventBufferSerializer.writeInt32(static_cast(scrollState)); - sendEvent(&_eventBuffer); - } - void onScrollEdgeImpl(Ark_Int32 nodeId, - const Ark_Edge side) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onScrollEdge); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(side)); - sendEvent(&_eventBuffer); - } - void onScrollStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onScrollStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollEndImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onScrollEnd); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollStopImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onScrollStop); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollFrameBeginImpl(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindScroll_onScrollFrameBegin); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(offset); - _eventBufferSerializer.writeInt32(static_cast(state)); - sendEvent(&_eventBuffer); - } - } - namespace Search { - void onEditChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onEditChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void onSubmit0Impl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onSubmit0); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onSubmit1Impl(Ark_Int32 nodeId, - const Ark_String searchContent, - const Opt_SubmitEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onSubmit1); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(searchContent); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - _eventBufferSerializer.writeSubmitEvent(event_value); - } - sendEvent(&_eventBuffer); - } - void onChangeImpl(Ark_Int32 nodeId, - const Ark_String value, - const Opt_PreviewText previewText) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(value); - Ark_Int32 previewText_type = INTEROP_RUNTIME_UNDEFINED; - previewText_type = runtimeType(previewText); - _eventBufferSerializer.writeInt8(previewText_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (previewText_type)) { - const auto previewText_value = previewText.value; - _eventBufferSerializer.writePreviewText(previewText_value); - } - sendEvent(&_eventBuffer); - } - void onTextSelectionChangeImpl(Ark_Int32 nodeId, - const Ark_Number selectionStart, - const Ark_Number selectionEnd) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onTextSelectionChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(selectionStart); - _eventBufferSerializer.writeNumber(selectionEnd); - sendEvent(&_eventBuffer); - } - void onContentScrollImpl(Ark_Int32 nodeId, - const Ark_Number totalOffsetX, - const Ark_Number totalOffsetY) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onContentScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(totalOffsetX); - _eventBufferSerializer.writeNumber(totalOffsetY); - sendEvent(&_eventBuffer); - } - void onCopyImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onCopy); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onCutImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onCut); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onPasteImpl(Ark_Int32 nodeId, - const Ark_String content, - const Ark_PasteEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onPaste); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(content); - _eventBufferSerializer.writePasteEvent(event); - sendEvent(&_eventBuffer); - } - void onWillInsertImpl(Ark_Int32 nodeId, - const Ark_InsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onWillInsert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidInsertImpl(Ark_Int32 nodeId, - const Ark_InsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onDidInsert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onWillDeleteImpl(Ark_Int32 nodeId, - const Ark_DeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onWillDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidDeleteImpl(Ark_Int32 nodeId, - const Ark_DeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_onDidDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void customKeyboardImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch_customKeyboard); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch__onChangeEvent_value); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - } - namespace Select { - void onSelectImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_String value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSelect_onSelect); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeString(value); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Union_Number_Resource selected) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSelect__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; - selected_type = selected.selector; - if (selected_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto selected_0 = selected.value0; - _eventBufferSerializer.writeNumber(selected_0); - } - else if (selected_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto selected_1 = selected.value1; - _eventBufferSerializer.writeResource(selected_1); - } - sendEvent(&_eventBuffer); - } - void _onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_ResourceStr value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSelect__onChangeEvent_value); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; - value_type = value.selector; - if (value_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto value_0 = value.value0; - _eventBufferSerializer.writeString(value_0); - } - else if (value_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto value_1 = value.value1; - _eventBufferSerializer.writeResource(value_1); - } - sendEvent(&_eventBuffer); - } - } - namespace Slider { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number value, - const Ark_SliderChangeMode mode) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSlider_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(value); - _eventBufferSerializer.writeInt32(static_cast(mode)); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSlider__onChangeEvent_value); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace Stepper { - void onFinishImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper_onFinish); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onSkipImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper_onSkip); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onNextImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper_onNext); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onPreviousImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper_onPrevious); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_indexImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper__onChangeEvent_index); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace Swiper { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onAnimationStartImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_Number targetIndex, - const Ark_SwiperAnimationEvent extraInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper_onAnimationStart); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeNumber(targetIndex); - _eventBufferSerializer.writeSwiperAnimationEvent(extraInfo); - sendEvent(&_eventBuffer); - } - void onAnimationEndImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_SwiperAnimationEvent extraInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper_onAnimationEnd); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeSwiperAnimationEvent(extraInfo); - sendEvent(&_eventBuffer); - } - void onGestureSwipeImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_SwiperAnimationEvent extraInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper_onGestureSwipe); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeSwiperAnimationEvent(extraInfo); - sendEvent(&_eventBuffer); - } - void onContentDidScrollImpl(Ark_Int32 nodeId, - const Ark_Number selectedIndex, - const Ark_Number index, - const Ark_Number position, - const Ark_Number mainAxisLength) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper_onContentDidScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(selectedIndex); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeNumber(position); - _eventBufferSerializer.writeNumber(mainAxisLength); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_indexImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper__onChangeEvent_index); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace IndicatorComponent { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindIndicatorComponent_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace Tabs { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onTabBarClickImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_onTabBarClick); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onAnimationStartImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_Number targetIndex, - const Ark_TabsAnimationEvent extraInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_onAnimationStart); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeNumber(targetIndex); - _eventBufferSerializer.writeTabsAnimationEvent(extraInfo); - sendEvent(&_eventBuffer); - } - void onAnimationEndImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_TabsAnimationEvent extraInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_onAnimationEnd); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeTabsAnimationEvent(extraInfo); - sendEvent(&_eventBuffer); - } - void onGestureSwipeImpl(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_TabsAnimationEvent extraInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_onGestureSwipe); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - _eventBufferSerializer.writeTabsAnimationEvent(extraInfo); - sendEvent(&_eventBuffer); - } - void customContentTransitionImpl(Ark_Int32 nodeId, - const Ark_Number from, - const Ark_Number to) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_customContentTransition); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(from); - _eventBufferSerializer.writeNumber(to); - sendEvent(&_eventBuffer); - } - void onContentWillChangeImpl(Ark_Int32 nodeId, - const Ark_Number currentIndex, - const Ark_Number comingIndex) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs_onContentWillChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(currentIndex); - _eventBufferSerializer.writeNumber(comingIndex); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_indexImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs__onChangeEvent_index); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace TabContent { - void onWillShowImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabContent_onWillShow); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillHideImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabContent_onWillHide); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace Text { - void onCopyImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindText_onCopy); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onTextSelectionChangeImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindText_onTextSelectionChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void bindSelectionMenuImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindText_bindSelectionMenu); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace TextArea { - void onSubmit0Impl(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKey) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onSubmit0); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(enterKey)); - sendEvent(&_eventBuffer); - } - void onSubmit1Impl(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKeyType, - const Opt_SubmitEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onSubmit1); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(enterKeyType)); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - _eventBufferSerializer.writeSubmitEvent(event_value); - } - sendEvent(&_eventBuffer); - } - void onChangeImpl(Ark_Int32 nodeId, - const Ark_String value, - const Opt_PreviewText previewText) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(value); - Ark_Int32 previewText_type = INTEROP_RUNTIME_UNDEFINED; - previewText_type = runtimeType(previewText); - _eventBufferSerializer.writeInt8(previewText_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (previewText_type)) { - const auto previewText_value = previewText.value; - _eventBufferSerializer.writePreviewText(previewText_value); - } - sendEvent(&_eventBuffer); - } - void onTextSelectionChangeImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onTextSelectionChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onContentScrollImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onContentScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - void onEditChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onEditChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void onCopyImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onCopy); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onCutImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onCut); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onPasteImpl(Ark_Int32 nodeId, - const Ark_String value, - const Ark_PasteEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onPaste); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(value); - _eventBufferSerializer.writePasteEvent(event); - sendEvent(&_eventBuffer); - } - void onWillInsertImpl(Ark_Int32 nodeId, - const Ark_InsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onWillInsert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidInsertImpl(Ark_Int32 nodeId, - const Ark_InsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onDidInsert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onWillDeleteImpl(Ark_Int32 nodeId, - const Ark_DeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onWillDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidDeleteImpl(Ark_Int32 nodeId, - const Ark_DeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_onDidDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void customKeyboardImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea_customKeyboard); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_textImpl(Ark_Int32 nodeId, - const Ark_ResourceStr value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea__onChangeEvent_text); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; - value_type = value.selector; - if (value_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto value_0 = value.value0; - _eventBufferSerializer.writeString(value_0); - } - else if (value_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto value_1 = value.value1; - _eventBufferSerializer.writeResource(value_1); - } - sendEvent(&_eventBuffer); - } - } - namespace TextClock { - void onDateChangeImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextClock_onDateChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - } - namespace TextInput { - void onEditChangedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onEditChanged); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void onEditChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onEditChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void onSubmitImpl(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKey, - const Ark_SubmitEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onSubmit); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(enterKey)); - _eventBufferSerializer.writeSubmitEvent(event); - sendEvent(&_eventBuffer); - } - void onChangeImpl(Ark_Int32 nodeId, - const Ark_String value, - const Opt_PreviewText previewText) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(value); - Ark_Int32 previewText_type = INTEROP_RUNTIME_UNDEFINED; - previewText_type = runtimeType(previewText); - _eventBufferSerializer.writeInt8(previewText_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (previewText_type)) { - const auto previewText_value = previewText.value; - _eventBufferSerializer.writePreviewText(previewText_value); - } - sendEvent(&_eventBuffer); - } - void onTextSelectionChangeImpl(Ark_Int32 nodeId, - const Ark_Number selectionStart, - const Ark_Number selectionEnd) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onTextSelectionChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(selectionStart); - _eventBufferSerializer.writeNumber(selectionEnd); - sendEvent(&_eventBuffer); - } - void onContentScrollImpl(Ark_Int32 nodeId, - const Ark_Number totalOffsetX, - const Ark_Number totalOffsetY) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onContentScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(totalOffsetX); - _eventBufferSerializer.writeNumber(totalOffsetY); - sendEvent(&_eventBuffer); - } - void onCopyImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onCopy); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onCutImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onCut); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(breakpoints); - sendEvent(&_eventBuffer); - } - void onPasteImpl(Ark_Int32 nodeId, - const Ark_String content, - const Ark_PasteEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onPaste); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(content); - _eventBufferSerializer.writePasteEvent(event); - sendEvent(&_eventBuffer); - } - void showUnitImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_showUnit); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onSecurityStateChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onSecurityStateChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void onWillInsertImpl(Ark_Int32 nodeId, - const Ark_InsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onWillInsert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidInsertImpl(Ark_Int32 nodeId, - const Ark_InsertValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onDidInsert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInsertValue(parameter); - sendEvent(&_eventBuffer); - } - void onWillDeleteImpl(Ark_Int32 nodeId, - const Ark_DeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onWillDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void onDidDeleteImpl(Ark_Int32 nodeId, - const Ark_DeleteValue parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_onDidDelete); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeDeleteValue(parameter); - sendEvent(&_eventBuffer); - } - void customKeyboardImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput_customKeyboard); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_textImpl(Ark_Int32 nodeId, - const Ark_ResourceStr value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput__onChangeEvent_text); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; - value_type = value.selector; - if (value_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto value_0 = value.value0; - _eventBufferSerializer.writeString(value_0); - } - else if (value_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto value_1 = value.value1; - _eventBufferSerializer.writeResource(value_1); - } - sendEvent(&_eventBuffer); - } - } - namespace TextPicker { - void onAcceptImpl(Ark_Int32 nodeId, - const Ark_String value, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker_onAccept); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeString(value); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onCancelImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker_onCancel); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Union_String_Array_String value, - const Ark_Union_Number_Array_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker_onChange); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; - value_type = value.selector; - if (value_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto value_0 = value.value0; - _eventBufferSerializer.writeString(value_0); - } - else if (value_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto value_1 = value.value1; - _eventBufferSerializer.writeInt32(value_1.length); - for (int i = 0; i < value_1.length; i++) { - const Ark_String value_1_element = value_1.array[i]; - _eventBufferSerializer.writeString(value_1_element); - } - } - Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; - index_type = index.selector; - if (index_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto index_0 = index.value0; - _eventBufferSerializer.writeNumber(index_0); - } - else if (index_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto index_1 = index.value1; - _eventBufferSerializer.writeInt32(index_1.length); - for (int i = 0; i < index_1.length; i++) { - const Ark_Number index_1_element = index_1.array[i]; - _eventBufferSerializer.writeNumber(index_1_element); - } - } - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Union_Number_Array_Number selected) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; - selected_type = selected.selector; - if (selected_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto selected_0 = selected.value0; - _eventBufferSerializer.writeNumber(selected_0); - } - else if (selected_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto selected_1 = selected.value1; - _eventBufferSerializer.writeInt32(selected_1.length); - for (int i = 0; i < selected_1.length; i++) { - const Ark_Number selected_1_element = selected_1.array[i]; - _eventBufferSerializer.writeNumber(selected_1_element); - } - } - sendEvent(&_eventBuffer); - } - void _onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_Union_String_Array_String value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker__onChangeEvent_value); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; - value_type = value.selector; - if (value_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto value_0 = value.value0; - _eventBufferSerializer.writeString(value_0); - } - else if (value_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto value_1 = value.value1; - _eventBufferSerializer.writeInt32(value_1.length); - for (int i = 0; i < value_1.length; i++) { - const Ark_String value_1_element = value_1.array[i]; - _eventBufferSerializer.writeString(value_1_element); - } - } - sendEvent(&_eventBuffer); - } - } - namespace TextTimer { - void onTimerImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextTimer_onTimer); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - } - namespace TimePicker { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_TimePickerResult value) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTimePicker_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTimePickerResult(value); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Date parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTimePicker__onChangeEvent_selected); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt64(parameter); - sendEvent(&_eventBuffer); - } - } - namespace Toggle { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindToggle_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_isOnImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindToggle__onChangeEvent_isOn); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace Video { - void onStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onPauseImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onPause); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFinishImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onFinish); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFullscreenChangeImpl(Ark_Int32 nodeId, - const Ark_FullscreenInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onFullscreenChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeFullscreenInfo(parameter); - sendEvent(&_eventBuffer); - } - void onPreparedImpl(Ark_Int32 nodeId, - const Ark_PreparedInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onPrepared); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writePreparedInfo(parameter); - sendEvent(&_eventBuffer); - } - void onSeekingImpl(Ark_Int32 nodeId, - const Ark_PlaybackInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onSeeking); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writePlaybackInfo(parameter); - sendEvent(&_eventBuffer); - } - void onSeekedImpl(Ark_Int32 nodeId, - const Ark_PlaybackInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onSeeked); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writePlaybackInfo(parameter); - sendEvent(&_eventBuffer); - } - void onUpdateImpl(Ark_Int32 nodeId, - const Ark_PlaybackInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onUpdate); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writePlaybackInfo(parameter); - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onError); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onStopImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindVideo_onStop); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace Web { - void onPageEndImpl(Ark_Int32 nodeId, - const Ark_OnPageEndEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onPageEnd); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnPageEndEvent(parameter); - sendEvent(&_eventBuffer); - } - void onPageBeginImpl(Ark_Int32 nodeId, - const Ark_OnPageBeginEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onPageBegin); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnPageBeginEvent(parameter); - sendEvent(&_eventBuffer); - } - void onProgressChangeImpl(Ark_Int32 nodeId, - const Ark_OnProgressChangeEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onProgressChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnProgressChangeEvent(parameter); - sendEvent(&_eventBuffer); - } - void onTitleReceiveImpl(Ark_Int32 nodeId, - const Ark_OnTitleReceiveEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onTitleReceive); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnTitleReceiveEvent(parameter); - sendEvent(&_eventBuffer); - } - void onGeolocationHideImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onGeolocationHide); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onGeolocationShowImpl(Ark_Int32 nodeId, - const Ark_OnGeolocationShowEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onGeolocationShow); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnGeolocationShowEvent(parameter); - sendEvent(&_eventBuffer); - } - void onRequestSelectedImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onRequestSelected); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onAlertImpl(Ark_Int32 nodeId, - const Ark_OnAlertEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onAlert); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnAlertEvent(parameter); - sendEvent(&_eventBuffer); - } - void onBeforeUnloadImpl(Ark_Int32 nodeId, - const Ark_OnBeforeUnloadEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onBeforeUnload); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnBeforeUnloadEvent(parameter); - sendEvent(&_eventBuffer); - } - void onConfirmImpl(Ark_Int32 nodeId, - const Ark_OnConfirmEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onConfirm); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnConfirmEvent(parameter); - sendEvent(&_eventBuffer); - } - void onPromptImpl(Ark_Int32 nodeId, - const Ark_OnPromptEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onPrompt); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnPromptEvent(parameter); - sendEvent(&_eventBuffer); - } - void onConsoleImpl(Ark_Int32 nodeId, - const Ark_OnConsoleEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onConsole); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnConsoleEvent(parameter); - sendEvent(&_eventBuffer); - } - void onErrorReceiveImpl(Ark_Int32 nodeId, - const Ark_OnErrorReceiveEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onErrorReceive); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnErrorReceiveEvent(parameter); - sendEvent(&_eventBuffer); - } - void onHttpErrorReceiveImpl(Ark_Int32 nodeId, - const Ark_OnHttpErrorReceiveEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onHttpErrorReceive); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnHttpErrorReceiveEvent(parameter); - sendEvent(&_eventBuffer); - } - void onDownloadStartImpl(Ark_Int32 nodeId, - const Ark_OnDownloadStartEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onDownloadStart); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnDownloadStartEvent(parameter); - sendEvent(&_eventBuffer); - } - void onRefreshAccessedHistoryImpl(Ark_Int32 nodeId, - const Ark_OnRefreshAccessedHistoryEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onRefreshAccessedHistory); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnRefreshAccessedHistoryEvent(parameter); - sendEvent(&_eventBuffer); - } - void onUrlLoadInterceptImpl(Ark_Int32 nodeId, - const Opt_Literal_Union_String_WebResourceRequest_data event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onUrlLoadIntercept); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - const auto event_value_data = event_value.data; - Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; - event_value_data_type = event_value_data.selector; - if (event_value_data_type == 0) { - _eventBufferSerializer.writeInt8(0); - const auto event_value_data_0 = event_value_data.value0; - _eventBufferSerializer.writeString(event_value_data_0); - } - else if (event_value_data_type == 1) { - _eventBufferSerializer.writeInt8(1); - const auto event_value_data_1 = event_value_data.value1; - _eventBufferSerializer.writeWebResourceRequest(event_value_data_1); - } - } - sendEvent(&_eventBuffer); - } - void onSslErrorReceiveImpl(Ark_Int32 nodeId, - const Opt_Literal_Function_handler_Object_error event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onSslErrorReceive); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - const auto event_value_handler = event_value.handler; - _eventBufferSerializer.writeFunction(event_value_handler); - const auto event_value_error = event_value.error; - _eventBufferSerializer.writeCustomObject("Object", event_value_error); - } - sendEvent(&_eventBuffer); - } - void onRenderExited0Impl(Ark_Int32 nodeId, - const Ark_OnRenderExitedEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onRenderExited0); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnRenderExitedEvent(parameter); - sendEvent(&_eventBuffer); - } - void onRenderExited1Impl(Ark_Int32 nodeId, - const Opt_Literal_Object_detail event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onRenderExited1); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - const auto event_value_detail = event_value.detail; - _eventBufferSerializer.writeCustomObject("Object", event_value_detail); - } - sendEvent(&_eventBuffer); - } - void onShowFileSelectorImpl(Ark_Int32 nodeId, - const Ark_OnShowFileSelectorEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onShowFileSelector); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnShowFileSelectorEvent(parameter); - sendEvent(&_eventBuffer); - } - void onFileSelectorShowImpl(Ark_Int32 nodeId, - const Opt_Literal_Function_callback__Object_fileSelector event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onFileSelectorShow); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - const auto event_value_callback_ = event_value.callback_; - _eventBufferSerializer.writeFunction(event_value_callback_); - const auto event_value_fileSelector = event_value.fileSelector; - _eventBufferSerializer.writeCustomObject("Object", event_value_fileSelector); - } - sendEvent(&_eventBuffer); - } - void onResourceLoadImpl(Ark_Int32 nodeId, - const Ark_OnResourceLoadEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onResourceLoad); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnResourceLoadEvent(parameter); - sendEvent(&_eventBuffer); - } - void onFullScreenExitImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onFullScreenExit); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onFullScreenEnterImpl(Ark_Int32 nodeId, - const Ark_FullScreenEnterEvent event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onFullScreenEnter); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeFullScreenEnterEvent(event); - sendEvent(&_eventBuffer); - } - void onScaleChangeImpl(Ark_Int32 nodeId, - const Ark_OnScaleChangeEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onScaleChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnScaleChangeEvent(parameter); - sendEvent(&_eventBuffer); - } - void onHttpAuthRequestImpl(Ark_Int32 nodeId, - const Ark_OnHttpAuthRequestEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onHttpAuthRequest); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnHttpAuthRequestEvent(parameter); - sendEvent(&_eventBuffer); - } - void onInterceptRequestImpl(Ark_Int32 nodeId, - const Ark_OnInterceptRequestEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onInterceptRequest); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnInterceptRequestEvent(parameter); - sendEvent(&_eventBuffer); - } - void onPermissionRequestImpl(Ark_Int32 nodeId, - const Ark_OnPermissionRequestEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onPermissionRequest); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnPermissionRequestEvent(parameter); - sendEvent(&_eventBuffer); - } - void onScreenCaptureRequestImpl(Ark_Int32 nodeId, - const Ark_OnScreenCaptureRequestEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onScreenCaptureRequest); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnScreenCaptureRequestEvent(parameter); - sendEvent(&_eventBuffer); - } - void onContextMenuShowImpl(Ark_Int32 nodeId, - const Ark_OnContextMenuShowEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onContextMenuShow); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnContextMenuShowEvent(parameter); - sendEvent(&_eventBuffer); - } - void onContextMenuHideImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onContextMenuHide); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onSearchResultReceiveImpl(Ark_Int32 nodeId, - const Ark_OnSearchResultReceiveEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onSearchResultReceive); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnSearchResultReceiveEvent(parameter); - sendEvent(&_eventBuffer); - } - void onScrollImpl(Ark_Int32 nodeId, - const Ark_OnScrollEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnScrollEvent(parameter); - sendEvent(&_eventBuffer); - } - void onSslErrorEventReceiveImpl(Ark_Int32 nodeId, - const Ark_OnSslErrorEventReceiveEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onSslErrorEventReceive); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnSslErrorEventReceiveEvent(parameter); - sendEvent(&_eventBuffer); - } - void onSslErrorEventImpl(Ark_Int32 nodeId, - const Ark_SslErrorEvent sslErrorEvent) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onSslErrorEvent); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeSslErrorEvent(sslErrorEvent); - sendEvent(&_eventBuffer); - } - void onClientAuthenticationRequestImpl(Ark_Int32 nodeId, - const Ark_OnClientAuthenticationEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onClientAuthenticationRequest); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnClientAuthenticationEvent(parameter); - sendEvent(&_eventBuffer); - } - void onWindowNewImpl(Ark_Int32 nodeId, - const Ark_OnWindowNewEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onWindowNew); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnWindowNewEvent(parameter); - sendEvent(&_eventBuffer); - } - void onWindowExitImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onWindowExit); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onInterceptKeyEventImpl(Ark_Int32 nodeId, - const Ark_KeyEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onInterceptKeyEvent); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeKeyEvent(parameter); - sendEvent(&_eventBuffer); - } - void onTouchIconUrlReceivedImpl(Ark_Int32 nodeId, - const Ark_OnTouchIconUrlReceivedEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onTouchIconUrlReceived); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnTouchIconUrlReceivedEvent(parameter); - sendEvent(&_eventBuffer); - } - void onFaviconReceivedImpl(Ark_Int32 nodeId, - const Ark_OnFaviconReceivedEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onFaviconReceived); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnFaviconReceivedEvent(parameter); - sendEvent(&_eventBuffer); - } - void onPageVisibleImpl(Ark_Int32 nodeId, - const Ark_OnPageVisibleEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onPageVisible); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnPageVisibleEvent(parameter); - sendEvent(&_eventBuffer); - } - void onDataResubmittedImpl(Ark_Int32 nodeId, - const Ark_OnDataResubmittedEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onDataResubmitted); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnDataResubmittedEvent(parameter); - sendEvent(&_eventBuffer); - } - void onAudioStateChangedImpl(Ark_Int32 nodeId, - const Ark_OnAudioStateChangedEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onAudioStateChanged); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnAudioStateChangedEvent(parameter); - sendEvent(&_eventBuffer); - } - void onFirstContentfulPaintImpl(Ark_Int32 nodeId, - const Ark_OnFirstContentfulPaintEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onFirstContentfulPaint); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnFirstContentfulPaintEvent(parameter); - sendEvent(&_eventBuffer); - } - void onFirstMeaningfulPaintImpl(Ark_Int32 nodeId, - const Ark_FirstMeaningfulPaint firstMeaningfulPaint) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onFirstMeaningfulPaint); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); - sendEvent(&_eventBuffer); - } - void onLargestContentfulPaintImpl(Ark_Int32 nodeId, - const Ark_LargestContentfulPaint largestContentfulPaint) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onLargestContentfulPaint); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeLargestContentfulPaint(largestContentfulPaint); - sendEvent(&_eventBuffer); - } - void onLoadInterceptImpl(Ark_Int32 nodeId, - const Ark_OnLoadInterceptEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onLoadIntercept); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnLoadInterceptEvent(parameter); - sendEvent(&_eventBuffer); - } - void onControllerAttachedImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onControllerAttached); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onOverScrollImpl(Ark_Int32 nodeId, - const Ark_OnOverScrollEvent parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onOverScroll); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeOnOverScrollEvent(parameter); - sendEvent(&_eventBuffer); - } - void onSafeBrowsingCheckResultImpl(Ark_Int32 nodeId, - const Ark_ThreatType threatType) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onSafeBrowsingCheckResult); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(threatType)); - sendEvent(&_eventBuffer); - } - void onNavigationEntryCommittedImpl(Ark_Int32 nodeId, - const Ark_LoadCommittedDetails loadCommittedDetails) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onNavigationEntryCommitted); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeLoadCommittedDetails(loadCommittedDetails); - sendEvent(&_eventBuffer); - } - void onIntelligentTrackingPreventionResultImpl(Ark_Int32 nodeId, - const Ark_IntelligentTrackingPreventionDetails details) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onIntelligentTrackingPreventionResult); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeIntelligentTrackingPreventionDetails(details); - sendEvent(&_eventBuffer); - } - void onNativeEmbedLifecycleChangeImpl(Ark_Int32 nodeId, - const Ark_NativeEmbedDataInfo event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onNativeEmbedLifecycleChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNativeEmbedDataInfo(event); - sendEvent(&_eventBuffer); - } - void onNativeEmbedVisibilityChangeImpl(Ark_Int32 nodeId, - const Ark_NativeEmbedVisibilityInfo nativeEmbedVisibilityInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onNativeEmbedVisibilityChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); - sendEvent(&_eventBuffer); - } - void onNativeEmbedGestureEventImpl(Ark_Int32 nodeId, - const Ark_NativeEmbedTouchInfo event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onNativeEmbedGestureEvent); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNativeEmbedTouchInfo(event); - sendEvent(&_eventBuffer); - } - void onOverrideUrlLoadingImpl(Ark_Int32 nodeId, - const Ark_WebResourceRequest webResourceRequest) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onOverrideUrlLoading); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeWebResourceRequest(webResourceRequest); - sendEvent(&_eventBuffer); - } - void onRenderProcessNotRespondingImpl(Ark_Int32 nodeId, - const Ark_RenderProcessNotRespondingData data) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onRenderProcessNotResponding); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeRenderProcessNotRespondingData(data); - sendEvent(&_eventBuffer); - } - void onRenderProcessRespondingImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onRenderProcessResponding); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onViewportFitChangedImpl(Ark_Int32 nodeId, - const Ark_ViewportFit viewportFit) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onViewportFitChanged); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeInt32(static_cast(viewportFit)); - sendEvent(&_eventBuffer); - } - void onInterceptKeyboardAttachImpl(Ark_Int32 nodeId, - const Ark_WebKeyboardCallbackInfo keyboardCallbackInfo) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onInterceptKeyboardAttach); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); - sendEvent(&_eventBuffer); - } - void onAdsBlockedImpl(Ark_Int32 nodeId, - const Ark_AdsBlockedDetails details) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_onAdsBlocked); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeAdsBlockedDetails(details); - sendEvent(&_eventBuffer); - } - void bindSelectionMenuImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWeb_bindSelectionMenu); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace XComponent { - void onLoadImpl(Ark_Int32 nodeId, - const Opt_CustomObject event) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindXComponent_onLoad); - _eventBufferSerializer.writeInt32(nodeId); - Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; - event_type = runtimeType(event); - _eventBufferSerializer.writeInt8(event_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (event_type)) { - const auto event_value = event.value; - _eventBufferSerializer.writeCustomObject("Object", event_value); - } - sendEvent(&_eventBuffer); - } - void onDestroyImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindXComponent_onDestroy); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } - namespace SideBarContainer { - void onChangeImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSideBarContainer_onChange); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - void _onChangeEvent_showSideBarImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSideBarContainer__onChangeEvent_showSideBar); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBoolean(parameter); - sendEvent(&_eventBuffer); - } - } - namespace WaterFlow { - void onReachStartImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWaterFlow_onReachStart); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onReachEndImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWaterFlow_onReachEnd); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onScrollFrameBeginImpl(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWaterFlow_onScrollFrameBegin); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(offset); - _eventBufferSerializer.writeInt32(static_cast(state)); - sendEvent(&_eventBuffer); - } - void onScrollIndexImpl(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindWaterFlow_onScrollIndex); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(first); - _eventBufferSerializer.writeNumber(last); - sendEvent(&_eventBuffer); - } - } - namespace UIExtensionComponent { - void onRemoteReadyImpl(Ark_Int32 nodeId, - const Ark_UIExtensionProxy parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindUIExtensionComponent_onRemoteReady); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeUIExtensionProxy(parameter); - sendEvent(&_eventBuffer); - } - void onResultImpl(Ark_Int32 nodeId, - const Ark_Literal_Number_code_Want_want parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindUIExtensionComponent_onResult); - _eventBufferSerializer.writeInt32(nodeId); - const auto parameter_code = parameter.code; - _eventBufferSerializer.writeNumber(parameter_code); - const auto parameter_want = parameter.want; - Ark_Int32 parameter_want_type = INTEROP_RUNTIME_UNDEFINED; - parameter_want_type = runtimeType(parameter_want); - _eventBufferSerializer.writeInt8(parameter_want_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (parameter_want_type)) { - const auto parameter_want_value = parameter_want.value; - _eventBufferSerializer.writeWant(parameter_want_value); - } - sendEvent(&_eventBuffer); - } - void onReleaseImpl(Ark_Int32 nodeId, - const Ark_Number index) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindUIExtensionComponent_onRelease); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNumber(index); - sendEvent(&_eventBuffer); - } - void onErrorImpl(Ark_Int32 nodeId, - const Ark_BusinessError err) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindUIExtensionComponent_onError); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeBusinessError(err); - sendEvent(&_eventBuffer); - } - void onTerminatedImpl(Ark_Int32 nodeId, - const Ark_TerminationInfo parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindUIExtensionComponent_onTerminated); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeTerminationInfo(parameter); - sendEvent(&_eventBuffer); - } - } - const GENERATED_ArkUIAbilityComponentEventsReceiver* GetAbilityComponentEventsReceiver() - { - static const GENERATED_ArkUIAbilityComponentEventsReceiver GENERATED_ArkUIAbilityComponentEventsReceiverImpl { - AbilityComponent::onConnectImpl, - AbilityComponent::onDisconnectImpl, - }; - - return &GENERATED_ArkUIAbilityComponentEventsReceiverImpl; - } - const GENERATED_ArkUIAlphabetIndexerEventsReceiver* GetAlphabetIndexerEventsReceiver() - { - static const GENERATED_ArkUIAlphabetIndexerEventsReceiver GENERATED_ArkUIAlphabetIndexerEventsReceiverImpl { - AlphabetIndexer::onSelectedImpl, - AlphabetIndexer::onSelectImpl, - AlphabetIndexer::onRequestPopupDataImpl, - AlphabetIndexer::onPopupSelectImpl, - AlphabetIndexer::_onChangeEvent_selectedImpl, - }; - - return &GENERATED_ArkUIAlphabetIndexerEventsReceiverImpl; - } - const GENERATED_ArkUIAnimatorEventsReceiver* GetAnimatorEventsReceiver() - { - static const GENERATED_ArkUIAnimatorEventsReceiver GENERATED_ArkUIAnimatorEventsReceiverImpl { - Animator::onStartImpl, - Animator::onPauseImpl, - Animator::onRepeatImpl, - Animator::onCancelImpl, - Animator::onFinishImpl, - Animator::onFrameImpl, - }; - - return &GENERATED_ArkUIAnimatorEventsReceiverImpl; - } - const GENERATED_ArkUICalendarEventsReceiver* GetCalendarEventsReceiver() - { - static const GENERATED_ArkUICalendarEventsReceiver GENERATED_ArkUICalendarEventsReceiverImpl { - Calendar::onSelectChangeImpl, - Calendar::onRequestDataImpl, - }; - - return &GENERATED_ArkUICalendarEventsReceiverImpl; - } - const GENERATED_ArkUICalendarPickerEventsReceiver* GetCalendarPickerEventsReceiver() - { - static const GENERATED_ArkUICalendarPickerEventsReceiver GENERATED_ArkUICalendarPickerEventsReceiverImpl { - CalendarPicker::onChangeImpl, - }; - - return &GENERATED_ArkUICalendarPickerEventsReceiverImpl; - } - const GENERATED_ArkUICanvasEventsReceiver* GetCanvasEventsReceiver() - { - static const GENERATED_ArkUICanvasEventsReceiver GENERATED_ArkUICanvasEventsReceiverImpl { - Canvas::onReadyImpl, - }; - - return &GENERATED_ArkUICanvasEventsReceiverImpl; - } - const GENERATED_ArkUICheckboxEventsReceiver* GetCheckboxEventsReceiver() - { - static const GENERATED_ArkUICheckboxEventsReceiver GENERATED_ArkUICheckboxEventsReceiverImpl { - Checkbox::onChangeImpl, - Checkbox::_onChangeEvent_selectImpl, - }; - - return &GENERATED_ArkUICheckboxEventsReceiverImpl; - } - const GENERATED_ArkUICheckboxGroupEventsReceiver* GetCheckboxGroupEventsReceiver() - { - static const GENERATED_ArkUICheckboxGroupEventsReceiver GENERATED_ArkUICheckboxGroupEventsReceiverImpl { - CheckboxGroup::onChangeImpl, - CheckboxGroup::_onChangeEvent_selectAllImpl, - }; - - return &GENERATED_ArkUICheckboxGroupEventsReceiverImpl; - } - const GENERATED_ArkUICommonMethodEventsReceiver* GetCommonMethodEventsReceiver() - { - static const GENERATED_ArkUICommonMethodEventsReceiver GENERATED_ArkUICommonMethodEventsReceiverImpl { - CommonMethod::onChildTouchTestImpl, - CommonMethod::onClick0Impl, - CommonMethod::onClick1Impl, - CommonMethod::onHoverImpl, - CommonMethod::onAccessibilityHoverImpl, - CommonMethod::onMouseImpl, - CommonMethod::onTouchImpl, - CommonMethod::onKeyEventImpl, - CommonMethod::onKeyPreImeImpl, - CommonMethod::onFocusImpl, - CommonMethod::onBlurImpl, - CommonMethod::onAppearImpl, - CommonMethod::onDisAppearImpl, - CommonMethod::onAttachImpl, - CommonMethod::onDetachImpl, - CommonMethod::onAreaChangeImpl, - CommonMethod::onDragStartImpl, - CommonMethod::onDragEnterImpl, - CommonMethod::onDragMoveImpl, - CommonMethod::onDragLeaveImpl, - CommonMethod::onDropImpl, - CommonMethod::onDragEndImpl, - CommonMethod::onPreDragImpl, - CommonMethod::accessibilityVirtualNodeImpl, - CommonMethod::onGestureJudgeBeginImpl, - CommonMethod::onGestureRecognizerJudgeBegin0Impl, - CommonMethod::onGestureRecognizerJudgeBegin1Impl, - CommonMethod::shouldBuiltInRecognizerParallelWithImpl, - CommonMethod::onTouchInterceptImpl, - CommonMethod::onSizeChangeImpl, - CommonMethod::backgroundImpl, - CommonMethod::bindContextMenu0Impl, - CommonMethod::bindContextMenu1Impl, - CommonMethod::bindContentCover0Impl, - CommonMethod::bindContentCover1Impl, - CommonMethod::bindSheetImpl, - CommonMethod::onVisibleAreaChangeImpl, - }; - - return &GENERATED_ArkUICommonMethodEventsReceiverImpl; - } - const GENERATED_ArkUIScrollableCommonMethodEventsReceiver* GetScrollableCommonMethodEventsReceiver() - { - static const GENERATED_ArkUIScrollableCommonMethodEventsReceiver GENERATED_ArkUIScrollableCommonMethodEventsReceiverImpl { - ScrollableCommonMethod::onScrollImpl, - ScrollableCommonMethod::onDidScrollImpl, - ScrollableCommonMethod::onReachStartImpl, - ScrollableCommonMethod::onReachEndImpl, - ScrollableCommonMethod::onScrollStartImpl, - ScrollableCommonMethod::onScrollStopImpl, - }; - - return &GENERATED_ArkUIScrollableCommonMethodEventsReceiverImpl; - } - const GENERATED_ArkUICounterEventsReceiver* GetCounterEventsReceiver() - { - static const GENERATED_ArkUICounterEventsReceiver GENERATED_ArkUICounterEventsReceiverImpl { - Counter::onIncImpl, - Counter::onDecImpl, - }; - - return &GENERATED_ArkUICounterEventsReceiverImpl; - } - const GENERATED_ArkUIDatePickerEventsReceiver* GetDatePickerEventsReceiver() - { - static const GENERATED_ArkUIDatePickerEventsReceiver GENERATED_ArkUIDatePickerEventsReceiverImpl { - DatePicker::onChangeImpl, - DatePicker::onDateChangeImpl, - DatePicker::_onChangeEvent_selectedImpl, - }; - - return &GENERATED_ArkUIDatePickerEventsReceiverImpl; - } - const GENERATED_ArkUIEmbeddedComponentEventsReceiver* GetEmbeddedComponentEventsReceiver() - { - static const GENERATED_ArkUIEmbeddedComponentEventsReceiver GENERATED_ArkUIEmbeddedComponentEventsReceiverImpl { - EmbeddedComponent::onTerminatedImpl, - EmbeddedComponent::onErrorImpl, - }; - - return &GENERATED_ArkUIEmbeddedComponentEventsReceiverImpl; - } - const GENERATED_ArkUIFolderStackEventsReceiver* GetFolderStackEventsReceiver() - { - static const GENERATED_ArkUIFolderStackEventsReceiver GENERATED_ArkUIFolderStackEventsReceiverImpl { - FolderStack::onFolderStateChangeImpl, - FolderStack::onHoverStatusChangeImpl, - }; - - return &GENERATED_ArkUIFolderStackEventsReceiverImpl; - } - const GENERATED_ArkUIFormComponentEventsReceiver* GetFormComponentEventsReceiver() - { - static const GENERATED_ArkUIFormComponentEventsReceiver GENERATED_ArkUIFormComponentEventsReceiverImpl { - FormComponent::onAcquiredImpl, - FormComponent::onErrorImpl, - FormComponent::onRouterImpl, - FormComponent::onUninstallImpl, - FormComponent::onLoadImpl, - }; - - return &GENERATED_ArkUIFormComponentEventsReceiverImpl; - } - const GENERATED_ArkUIGaugeEventsReceiver* GetGaugeEventsReceiver() - { - static const GENERATED_ArkUIGaugeEventsReceiver GENERATED_ArkUIGaugeEventsReceiverImpl { - Gauge::descriptionImpl, - }; - - return &GENERATED_ArkUIGaugeEventsReceiverImpl; - } - const GENERATED_ArkUIGridEventsReceiver* GetGridEventsReceiver() - { - static const GENERATED_ArkUIGridEventsReceiver GENERATED_ArkUIGridEventsReceiverImpl { - Grid::onScrollBarUpdateImpl, - Grid::onScrollIndexImpl, - Grid::onItemDragStartImpl, - Grid::onItemDragEnterImpl, - Grid::onItemDragMoveImpl, - Grid::onItemDragLeaveImpl, - Grid::onItemDropImpl, - Grid::onScrollImpl, - Grid::onReachStartImpl, - Grid::onReachEndImpl, - Grid::onScrollStartImpl, - Grid::onScrollStopImpl, - Grid::onScrollFrameBeginImpl, - }; - - return &GENERATED_ArkUIGridEventsReceiverImpl; - } - const GENERATED_ArkUIGridItemEventsReceiver* GetGridItemEventsReceiver() - { - static const GENERATED_ArkUIGridItemEventsReceiver GENERATED_ArkUIGridItemEventsReceiverImpl { - GridItem::onSelectImpl, - GridItem::_onChangeEvent_selectedImpl, - }; - - return &GENERATED_ArkUIGridItemEventsReceiverImpl; - } - const GENERATED_ArkUIGridRowEventsReceiver* GetGridRowEventsReceiver() - { - static const GENERATED_ArkUIGridRowEventsReceiver GENERATED_ArkUIGridRowEventsReceiverImpl { - GridRow::onBreakpointChangeImpl, - }; - - return &GENERATED_ArkUIGridRowEventsReceiverImpl; - } - const GENERATED_ArkUIImageEventsReceiver* GetImageEventsReceiver() - { - static const GENERATED_ArkUIImageEventsReceiver GENERATED_ArkUIImageEventsReceiverImpl { - Image::onCompleteImpl, - Image::onErrorImpl, - Image::onFinishImpl, - }; - - return &GENERATED_ArkUIImageEventsReceiverImpl; - } - const GENERATED_ArkUIImageAnimatorEventsReceiver* GetImageAnimatorEventsReceiver() - { - static const GENERATED_ArkUIImageAnimatorEventsReceiver GENERATED_ArkUIImageAnimatorEventsReceiverImpl { - ImageAnimator::onStartImpl, - ImageAnimator::onPauseImpl, - ImageAnimator::onRepeatImpl, - ImageAnimator::onCancelImpl, - ImageAnimator::onFinishImpl, - }; - - return &GENERATED_ArkUIImageAnimatorEventsReceiverImpl; - } - const GENERATED_ArkUIImageSpanEventsReceiver* GetImageSpanEventsReceiver() - { - static const GENERATED_ArkUIImageSpanEventsReceiver GENERATED_ArkUIImageSpanEventsReceiverImpl { - ImageSpan::onCompleteImpl, - ImageSpan::onErrorImpl, - }; - - return &GENERATED_ArkUIImageSpanEventsReceiverImpl; - } - const GENERATED_ArkUIListEventsReceiver* GetListEventsReceiver() - { - static const GENERATED_ArkUIListEventsReceiver GENERATED_ArkUIListEventsReceiverImpl { - List::onScrollImpl, - List::onScrollIndexImpl, - List::onScrollVisibleContentChangeImpl, - List::onReachStartImpl, - List::onReachEndImpl, - List::onScrollStartImpl, - List::onScrollStopImpl, - List::onItemDeleteImpl, - List::onItemMoveImpl, - List::onItemDragStartImpl, - List::onItemDragEnterImpl, - List::onItemDragMoveImpl, - List::onItemDragLeaveImpl, - List::onItemDropImpl, - List::onScrollFrameBeginImpl, - }; - - return &GENERATED_ArkUIListEventsReceiverImpl; - } - const GENERATED_ArkUIListItemEventsReceiver* GetListItemEventsReceiver() - { - static const GENERATED_ArkUIListItemEventsReceiver GENERATED_ArkUIListItemEventsReceiverImpl { - ListItem::onSelectImpl, - ListItem::_onChangeEvent_selectedImpl, - }; - - return &GENERATED_ArkUIListItemEventsReceiverImpl; - } - const GENERATED_ArkUILocationButtonEventsReceiver* GetLocationButtonEventsReceiver() - { - static const GENERATED_ArkUILocationButtonEventsReceiver GENERATED_ArkUILocationButtonEventsReceiverImpl { - LocationButton::onClickImpl, - }; - - return &GENERATED_ArkUILocationButtonEventsReceiverImpl; - } - const GENERATED_ArkUIMarqueeEventsReceiver* GetMarqueeEventsReceiver() - { - static const GENERATED_ArkUIMarqueeEventsReceiver GENERATED_ArkUIMarqueeEventsReceiverImpl { - Marquee::onStartImpl, - Marquee::onBounceImpl, - Marquee::onFinishImpl, - }; - - return &GENERATED_ArkUIMarqueeEventsReceiverImpl; - } - const GENERATED_ArkUIMenuItemEventsReceiver* GetMenuItemEventsReceiver() - { - static const GENERATED_ArkUIMenuItemEventsReceiver GENERATED_ArkUIMenuItemEventsReceiverImpl { - MenuItem::onChangeImpl, - MenuItem::_onChangeEvent_selectedImpl, - }; - - return &GENERATED_ArkUIMenuItemEventsReceiverImpl; - } - const GENERATED_ArkUINavDestinationEventsReceiver* GetNavDestinationEventsReceiver() - { - static const GENERATED_ArkUINavDestinationEventsReceiver GENERATED_ArkUINavDestinationEventsReceiverImpl { - NavDestination::onShownImpl, - NavDestination::onHiddenImpl, - NavDestination::onBackPressedImpl, - NavDestination::onReadyImpl, - NavDestination::onWillAppearImpl, - NavDestination::onWillDisappearImpl, - NavDestination::onWillShowImpl, - NavDestination::onWillHideImpl, - }; - - return &GENERATED_ArkUINavDestinationEventsReceiverImpl; - } - const GENERATED_ArkUINavRouterEventsReceiver* GetNavRouterEventsReceiver() - { - static const GENERATED_ArkUINavRouterEventsReceiver GENERATED_ArkUINavRouterEventsReceiverImpl { - NavRouter::onStateChangeImpl, - }; - - return &GENERATED_ArkUINavRouterEventsReceiverImpl; - } - const GENERATED_ArkUIPanelEventsReceiver* GetPanelEventsReceiver() - { - static const GENERATED_ArkUIPanelEventsReceiver GENERATED_ArkUIPanelEventsReceiverImpl { - Panel::onChangeImpl, - Panel::onHeightChangeImpl, - Panel::_onChangeEvent_modeImpl, - }; - - return &GENERATED_ArkUIPanelEventsReceiverImpl; - } - const GENERATED_ArkUIPasteButtonEventsReceiver* GetPasteButtonEventsReceiver() - { - static const GENERATED_ArkUIPasteButtonEventsReceiver GENERATED_ArkUIPasteButtonEventsReceiverImpl { - PasteButton::onClickImpl, - }; - - return &GENERATED_ArkUIPasteButtonEventsReceiverImpl; - } - const GENERATED_ArkUIPatternLockEventsReceiver* GetPatternLockEventsReceiver() - { - static const GENERATED_ArkUIPatternLockEventsReceiver GENERATED_ArkUIPatternLockEventsReceiverImpl { - PatternLock::onPatternCompleteImpl, - PatternLock::onDotConnectImpl, - }; - - return &GENERATED_ArkUIPatternLockEventsReceiverImpl; - } - const GENERATED_ArkUIPluginComponentEventsReceiver* GetPluginComponentEventsReceiver() - { - static const GENERATED_ArkUIPluginComponentEventsReceiver GENERATED_ArkUIPluginComponentEventsReceiverImpl { - PluginComponent::onCompleteImpl, - PluginComponent::onErrorImpl, - }; - - return &GENERATED_ArkUIPluginComponentEventsReceiverImpl; - } - const GENERATED_ArkUIRadioEventsReceiver* GetRadioEventsReceiver() - { - static const GENERATED_ArkUIRadioEventsReceiver GENERATED_ArkUIRadioEventsReceiverImpl { - Radio::onChangeImpl, - Radio::_onChangeEvent_checkedImpl, - }; - - return &GENERATED_ArkUIRadioEventsReceiverImpl; - } - const GENERATED_ArkUIRatingEventsReceiver* GetRatingEventsReceiver() - { - static const GENERATED_ArkUIRatingEventsReceiver GENERATED_ArkUIRatingEventsReceiverImpl { - Rating::onChangeImpl, - Rating::_onChangeEvent_ratingImpl, - }; - - return &GENERATED_ArkUIRatingEventsReceiverImpl; - } - const GENERATED_ArkUIRefreshEventsReceiver* GetRefreshEventsReceiver() - { - static const GENERATED_ArkUIRefreshEventsReceiver GENERATED_ArkUIRefreshEventsReceiverImpl { - Refresh::onStateChangeImpl, - Refresh::onRefreshingImpl, - Refresh::onOffsetChangeImpl, - Refresh::_onChangeEvent_refreshingImpl, - }; - - return &GENERATED_ArkUIRefreshEventsReceiverImpl; - } - const GENERATED_ArkUIRichEditorEventsReceiver* GetRichEditorEventsReceiver() - { - static const GENERATED_ArkUIRichEditorEventsReceiver GENERATED_ArkUIRichEditorEventsReceiverImpl { - RichEditor::onReadyImpl, - RichEditor::onSelectImpl, - RichEditor::onSelectionChangeImpl, - RichEditor::aboutToIMEInputImpl, - RichEditor::onIMEInputCompleteImpl, - RichEditor::onDidIMEInputImpl, - RichEditor::aboutToDeleteImpl, - RichEditor::onDeleteCompleteImpl, - RichEditor::onPasteImpl, - RichEditor::onEditingChangeImpl, - RichEditor::onSubmitImpl, - RichEditor::onWillChangeImpl, - RichEditor::onDidChangeImpl, - RichEditor::onCutImpl, - RichEditor::onCopyImpl, - RichEditor::bindSelectionMenuImpl, - RichEditor::customKeyboardImpl, - }; - - return &GENERATED_ArkUIRichEditorEventsReceiverImpl; - } - const GENERATED_ArkUIRichTextEventsReceiver* GetRichTextEventsReceiver() - { - static const GENERATED_ArkUIRichTextEventsReceiver GENERATED_ArkUIRichTextEventsReceiverImpl { - RichText::onStartImpl, - RichText::onCompleteImpl, - }; - - return &GENERATED_ArkUIRichTextEventsReceiverImpl; - } - const GENERATED_ArkUISaveButtonEventsReceiver* GetSaveButtonEventsReceiver() - { - static const GENERATED_ArkUISaveButtonEventsReceiver GENERATED_ArkUISaveButtonEventsReceiverImpl { - SaveButton::onClickImpl, - }; - - return &GENERATED_ArkUISaveButtonEventsReceiverImpl; - } - const GENERATED_ArkUIScrollEventsReceiver* GetScrollEventsReceiver() - { - static const GENERATED_ArkUIScrollEventsReceiver GENERATED_ArkUIScrollEventsReceiverImpl { - Scroll::onScrollImpl, - Scroll::onDidScrollImpl, - Scroll::onScrollEdgeImpl, - Scroll::onScrollStartImpl, - Scroll::onScrollEndImpl, - Scroll::onScrollStopImpl, - Scroll::onScrollFrameBeginImpl, - }; - - return &GENERATED_ArkUIScrollEventsReceiverImpl; - } - const GENERATED_ArkUISearchEventsReceiver* GetSearchEventsReceiver() - { - static const GENERATED_ArkUISearchEventsReceiver GENERATED_ArkUISearchEventsReceiverImpl { - Search::onEditChangeImpl, - Search::onSubmit0Impl, - Search::onSubmit1Impl, - Search::onChangeImpl, - Search::onTextSelectionChangeImpl, - Search::onContentScrollImpl, - Search::onCopyImpl, - Search::onCutImpl, - Search::onPasteImpl, - Search::onWillInsertImpl, - Search::onDidInsertImpl, - Search::onWillDeleteImpl, - Search::onDidDeleteImpl, - Search::customKeyboardImpl, - Search::_onChangeEvent_valueImpl, - }; - - return &GENERATED_ArkUISearchEventsReceiverImpl; - } - const GENERATED_ArkUISelectEventsReceiver* GetSelectEventsReceiver() - { - static const GENERATED_ArkUISelectEventsReceiver GENERATED_ArkUISelectEventsReceiverImpl { - Select::onSelectImpl, - Select::_onChangeEvent_selectedImpl, - Select::_onChangeEvent_valueImpl, - }; - - return &GENERATED_ArkUISelectEventsReceiverImpl; - } - const GENERATED_ArkUISliderEventsReceiver* GetSliderEventsReceiver() - { - static const GENERATED_ArkUISliderEventsReceiver GENERATED_ArkUISliderEventsReceiverImpl { - Slider::onChangeImpl, - Slider::_onChangeEvent_valueImpl, - }; - - return &GENERATED_ArkUISliderEventsReceiverImpl; - } - const GENERATED_ArkUIStepperEventsReceiver* GetStepperEventsReceiver() - { - static const GENERATED_ArkUIStepperEventsReceiver GENERATED_ArkUIStepperEventsReceiverImpl { - Stepper::onFinishImpl, - Stepper::onSkipImpl, - Stepper::onChangeImpl, - Stepper::onNextImpl, - Stepper::onPreviousImpl, - Stepper::_onChangeEvent_indexImpl, - }; - - return &GENERATED_ArkUIStepperEventsReceiverImpl; - } - const GENERATED_ArkUISwiperEventsReceiver* GetSwiperEventsReceiver() - { - static const GENERATED_ArkUISwiperEventsReceiver GENERATED_ArkUISwiperEventsReceiverImpl { - Swiper::onChangeImpl, - Swiper::onAnimationStartImpl, - Swiper::onAnimationEndImpl, - Swiper::onGestureSwipeImpl, - Swiper::onContentDidScrollImpl, - Swiper::_onChangeEvent_indexImpl, - }; - - return &GENERATED_ArkUISwiperEventsReceiverImpl; - } - const GENERATED_ArkUIIndicatorComponentEventsReceiver* GetIndicatorComponentEventsReceiver() - { - static const GENERATED_ArkUIIndicatorComponentEventsReceiver GENERATED_ArkUIIndicatorComponentEventsReceiverImpl { - IndicatorComponent::onChangeImpl, - }; - - return &GENERATED_ArkUIIndicatorComponentEventsReceiverImpl; - } - const GENERATED_ArkUITabsEventsReceiver* GetTabsEventsReceiver() - { - static const GENERATED_ArkUITabsEventsReceiver GENERATED_ArkUITabsEventsReceiverImpl { - Tabs::onChangeImpl, - Tabs::onTabBarClickImpl, - Tabs::onAnimationStartImpl, - Tabs::onAnimationEndImpl, - Tabs::onGestureSwipeImpl, - Tabs::customContentTransitionImpl, - Tabs::onContentWillChangeImpl, - Tabs::_onChangeEvent_indexImpl, - }; - - return &GENERATED_ArkUITabsEventsReceiverImpl; - } - const GENERATED_ArkUITabContentEventsReceiver* GetTabContentEventsReceiver() - { - static const GENERATED_ArkUITabContentEventsReceiver GENERATED_ArkUITabContentEventsReceiverImpl { - TabContent::onWillShowImpl, - TabContent::onWillHideImpl, - }; - - return &GENERATED_ArkUITabContentEventsReceiverImpl; - } - const GENERATED_ArkUITextEventsReceiver* GetTextEventsReceiver() - { - static const GENERATED_ArkUITextEventsReceiver GENERATED_ArkUITextEventsReceiverImpl { - Text::onCopyImpl, - Text::onTextSelectionChangeImpl, - Text::bindSelectionMenuImpl, - }; - - return &GENERATED_ArkUITextEventsReceiverImpl; - } - const GENERATED_ArkUITextAreaEventsReceiver* GetTextAreaEventsReceiver() - { - static const GENERATED_ArkUITextAreaEventsReceiver GENERATED_ArkUITextAreaEventsReceiverImpl { - TextArea::onSubmit0Impl, - TextArea::onSubmit1Impl, - TextArea::onChangeImpl, - TextArea::onTextSelectionChangeImpl, - TextArea::onContentScrollImpl, - TextArea::onEditChangeImpl, - TextArea::onCopyImpl, - TextArea::onCutImpl, - TextArea::onPasteImpl, - TextArea::onWillInsertImpl, - TextArea::onDidInsertImpl, - TextArea::onWillDeleteImpl, - TextArea::onDidDeleteImpl, - TextArea::customKeyboardImpl, - TextArea::_onChangeEvent_textImpl, - }; - - return &GENERATED_ArkUITextAreaEventsReceiverImpl; - } - const GENERATED_ArkUITextClockEventsReceiver* GetTextClockEventsReceiver() - { - static const GENERATED_ArkUITextClockEventsReceiver GENERATED_ArkUITextClockEventsReceiverImpl { - TextClock::onDateChangeImpl, - }; - - return &GENERATED_ArkUITextClockEventsReceiverImpl; - } - const GENERATED_ArkUITextInputEventsReceiver* GetTextInputEventsReceiver() - { - static const GENERATED_ArkUITextInputEventsReceiver GENERATED_ArkUITextInputEventsReceiverImpl { - TextInput::onEditChangedImpl, - TextInput::onEditChangeImpl, - TextInput::onSubmitImpl, - TextInput::onChangeImpl, - TextInput::onTextSelectionChangeImpl, - TextInput::onContentScrollImpl, - TextInput::onCopyImpl, - TextInput::onCutImpl, - TextInput::onPasteImpl, - TextInput::showUnitImpl, - TextInput::onSecurityStateChangeImpl, - TextInput::onWillInsertImpl, - TextInput::onDidInsertImpl, - TextInput::onWillDeleteImpl, - TextInput::onDidDeleteImpl, - TextInput::customKeyboardImpl, - TextInput::_onChangeEvent_textImpl, - }; - - return &GENERATED_ArkUITextInputEventsReceiverImpl; - } - const GENERATED_ArkUITextPickerEventsReceiver* GetTextPickerEventsReceiver() - { - static const GENERATED_ArkUITextPickerEventsReceiver GENERATED_ArkUITextPickerEventsReceiverImpl { - TextPicker::onAcceptImpl, - TextPicker::onCancelImpl, - TextPicker::onChangeImpl, - TextPicker::_onChangeEvent_selectedImpl, - TextPicker::_onChangeEvent_valueImpl, - }; - - return &GENERATED_ArkUITextPickerEventsReceiverImpl; - } - const GENERATED_ArkUITextTimerEventsReceiver* GetTextTimerEventsReceiver() - { - static const GENERATED_ArkUITextTimerEventsReceiver GENERATED_ArkUITextTimerEventsReceiverImpl { - TextTimer::onTimerImpl, - }; - - return &GENERATED_ArkUITextTimerEventsReceiverImpl; - } - const GENERATED_ArkUITimePickerEventsReceiver* GetTimePickerEventsReceiver() - { - static const GENERATED_ArkUITimePickerEventsReceiver GENERATED_ArkUITimePickerEventsReceiverImpl { - TimePicker::onChangeImpl, - TimePicker::_onChangeEvent_selectedImpl, - }; - - return &GENERATED_ArkUITimePickerEventsReceiverImpl; - } - const GENERATED_ArkUIToggleEventsReceiver* GetToggleEventsReceiver() - { - static const GENERATED_ArkUIToggleEventsReceiver GENERATED_ArkUIToggleEventsReceiverImpl { - Toggle::onChangeImpl, - Toggle::_onChangeEvent_isOnImpl, - }; - - return &GENERATED_ArkUIToggleEventsReceiverImpl; - } - const GENERATED_ArkUIVideoEventsReceiver* GetVideoEventsReceiver() - { - static const GENERATED_ArkUIVideoEventsReceiver GENERATED_ArkUIVideoEventsReceiverImpl { - Video::onStartImpl, - Video::onPauseImpl, - Video::onFinishImpl, - Video::onFullscreenChangeImpl, - Video::onPreparedImpl, - Video::onSeekingImpl, - Video::onSeekedImpl, - Video::onUpdateImpl, - Video::onErrorImpl, - Video::onStopImpl, - }; - - return &GENERATED_ArkUIVideoEventsReceiverImpl; - } - const GENERATED_ArkUIWebEventsReceiver* GetWebEventsReceiver() - { - static const GENERATED_ArkUIWebEventsReceiver GENERATED_ArkUIWebEventsReceiverImpl { - Web::onPageEndImpl, - Web::onPageBeginImpl, - Web::onProgressChangeImpl, - Web::onTitleReceiveImpl, - Web::onGeolocationHideImpl, - Web::onGeolocationShowImpl, - Web::onRequestSelectedImpl, - Web::onAlertImpl, - Web::onBeforeUnloadImpl, - Web::onConfirmImpl, - Web::onPromptImpl, - Web::onConsoleImpl, - Web::onErrorReceiveImpl, - Web::onHttpErrorReceiveImpl, - Web::onDownloadStartImpl, - Web::onRefreshAccessedHistoryImpl, - Web::onUrlLoadInterceptImpl, - Web::onSslErrorReceiveImpl, - Web::onRenderExited0Impl, - Web::onRenderExited1Impl, - Web::onShowFileSelectorImpl, - Web::onFileSelectorShowImpl, - Web::onResourceLoadImpl, - Web::onFullScreenExitImpl, - Web::onFullScreenEnterImpl, - Web::onScaleChangeImpl, - Web::onHttpAuthRequestImpl, - Web::onInterceptRequestImpl, - Web::onPermissionRequestImpl, - Web::onScreenCaptureRequestImpl, - Web::onContextMenuShowImpl, - Web::onContextMenuHideImpl, - Web::onSearchResultReceiveImpl, - Web::onScrollImpl, - Web::onSslErrorEventReceiveImpl, - Web::onSslErrorEventImpl, - Web::onClientAuthenticationRequestImpl, - Web::onWindowNewImpl, - Web::onWindowExitImpl, - Web::onInterceptKeyEventImpl, - Web::onTouchIconUrlReceivedImpl, - Web::onFaviconReceivedImpl, - Web::onPageVisibleImpl, - Web::onDataResubmittedImpl, - Web::onAudioStateChangedImpl, - Web::onFirstContentfulPaintImpl, - Web::onFirstMeaningfulPaintImpl, - Web::onLargestContentfulPaintImpl, - Web::onLoadInterceptImpl, - Web::onControllerAttachedImpl, - Web::onOverScrollImpl, - Web::onSafeBrowsingCheckResultImpl, - Web::onNavigationEntryCommittedImpl, - Web::onIntelligentTrackingPreventionResultImpl, - Web::onNativeEmbedLifecycleChangeImpl, - Web::onNativeEmbedVisibilityChangeImpl, - Web::onNativeEmbedGestureEventImpl, - Web::onOverrideUrlLoadingImpl, - Web::onRenderProcessNotRespondingImpl, - Web::onRenderProcessRespondingImpl, - Web::onViewportFitChangedImpl, - Web::onInterceptKeyboardAttachImpl, - Web::onAdsBlockedImpl, - Web::bindSelectionMenuImpl, - }; - - return &GENERATED_ArkUIWebEventsReceiverImpl; - } - const GENERATED_ArkUIXComponentEventsReceiver* GetXComponentEventsReceiver() - { - static const GENERATED_ArkUIXComponentEventsReceiver GENERATED_ArkUIXComponentEventsReceiverImpl { - XComponent::onLoadImpl, - XComponent::onDestroyImpl, - }; - - return &GENERATED_ArkUIXComponentEventsReceiverImpl; - } - const GENERATED_ArkUISideBarContainerEventsReceiver* GetSideBarContainerEventsReceiver() - { - static const GENERATED_ArkUISideBarContainerEventsReceiver GENERATED_ArkUISideBarContainerEventsReceiverImpl { - SideBarContainer::onChangeImpl, - SideBarContainer::_onChangeEvent_showSideBarImpl, - }; - - return &GENERATED_ArkUISideBarContainerEventsReceiverImpl; - } - const GENERATED_ArkUIWaterFlowEventsReceiver* GetWaterFlowEventsReceiver() - { - static const GENERATED_ArkUIWaterFlowEventsReceiver GENERATED_ArkUIWaterFlowEventsReceiverImpl { - WaterFlow::onReachStartImpl, - WaterFlow::onReachEndImpl, - WaterFlow::onScrollFrameBeginImpl, - WaterFlow::onScrollIndexImpl, - }; - - return &GENERATED_ArkUIWaterFlowEventsReceiverImpl; - } - const GENERATED_ArkUIUIExtensionComponentEventsReceiver* GetUIExtensionComponentEventsReceiver() - { - static const GENERATED_ArkUIUIExtensionComponentEventsReceiver GENERATED_ArkUIUIExtensionComponentEventsReceiverImpl { - UIExtensionComponent::onRemoteReadyImpl, - UIExtensionComponent::onResultImpl, - UIExtensionComponent::onReleaseImpl, - UIExtensionComponent::onErrorImpl, - UIExtensionComponent::onTerminatedImpl, - }; - - return &GENERATED_ArkUIUIExtensionComponentEventsReceiverImpl; - } - const GENERATED_ArkUIEventsAPI* GetArkUiEventsAPI() - { - static const GENERATED_ArkUIEventsAPI eventsImpl = { - GetAbilityComponentEventsReceiver, - GetAlphabetIndexerEventsReceiver, - GetAnimatorEventsReceiver, - GetCalendarEventsReceiver, - GetCalendarPickerEventsReceiver, - GetCanvasEventsReceiver, - GetCheckboxEventsReceiver, - GetCheckboxGroupEventsReceiver, - GetCommonMethodEventsReceiver, - GetScrollableCommonMethodEventsReceiver, - GetCounterEventsReceiver, - GetDatePickerEventsReceiver, - GetEmbeddedComponentEventsReceiver, - GetFolderStackEventsReceiver, - GetFormComponentEventsReceiver, - GetGaugeEventsReceiver, - GetGridEventsReceiver, - GetGridItemEventsReceiver, - GetGridRowEventsReceiver, - GetImageEventsReceiver, - GetImageAnimatorEventsReceiver, - GetImageSpanEventsReceiver, - GetListEventsReceiver, - GetListItemEventsReceiver, - GetLocationButtonEventsReceiver, - GetMarqueeEventsReceiver, - GetMenuItemEventsReceiver, - GetNavDestinationEventsReceiver, - GetNavRouterEventsReceiver, - GetPanelEventsReceiver, - GetPasteButtonEventsReceiver, - GetPatternLockEventsReceiver, - GetPluginComponentEventsReceiver, - GetRadioEventsReceiver, - GetRatingEventsReceiver, - GetRefreshEventsReceiver, - GetRichEditorEventsReceiver, - GetRichTextEventsReceiver, - GetSaveButtonEventsReceiver, - GetScrollEventsReceiver, - GetSearchEventsReceiver, - GetSelectEventsReceiver, - GetSliderEventsReceiver, - GetStepperEventsReceiver, - GetSwiperEventsReceiver, - GetIndicatorComponentEventsReceiver, - GetTabsEventsReceiver, - GetTabContentEventsReceiver, - GetTextEventsReceiver, - GetTextAreaEventsReceiver, - GetTextClockEventsReceiver, - GetTextInputEventsReceiver, - GetTextPickerEventsReceiver, - GetTextTimerEventsReceiver, - GetTimePickerEventsReceiver, - GetToggleEventsReceiver, - GetVideoEventsReceiver, - GetWebEventsReceiver, - GetXComponentEventsReceiver, - GetSideBarContainerEventsReceiver, - GetWaterFlowEventsReceiver, - GetUIExtensionComponentEventsReceiver, - }; - return &eventsImpl; - } -} \ No newline at end of file diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index 6e3459a7fead19d42e86b61fb8e739454a64a4d5..720404d322c530fca071412805e42d5a7683bb9f 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -150,13 +150,29 @@ typedef struct InteropBuffer { InteropInt64 length; } InteropBuffer; +typedef struct InteropAsyncWork { + InteropNativePointer workId; + void (*queue)(InteropNativePointer workId); + void (*cancel)(InteropNativePointer workId); +} InteropAsyncWork; + +typedef struct InteropAsyncWorker { + InteropAsyncWork (*createWork)( + InteropVMContext context, + InteropNativePointer handle, + void (*execute)(InteropNativePointer handle), + void (*complete)(InteropNativePointer handle) + ); +} InteropAsyncWorker; +typedef const InteropAsyncWorker* InteropAsyncWorkerPtr; + #endif // _INTEROP_TYPES_H_ // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 121 +#define GENERATED_ARKUI_FULL_API_VERSION 122 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 @@ -239,27 +255,49 @@ typedef struct _Ark_Canvas* Ark_CanvasHandle; typedef struct Array_String Array_String; typedef struct Opt_Array_String Opt_Array_String; -typedef struct Ark_Resource Ark_Resource; -typedef struct Opt_Resource Opt_Resource; -typedef struct ICurvePeer ICurvePeer; -typedef struct ICurvePeer* Ark_ICurve; -typedef struct Opt_ICurve Opt_ICurve; typedef struct Ark_BorderRadiuses Ark_BorderRadiuses; typedef struct Opt_BorderRadiuses Opt_BorderRadiuses; -typedef struct Ark_Padding Ark_Padding; -typedef struct Opt_Padding Opt_Padding; +typedef struct Ark_Resource Ark_Resource; +typedef struct Opt_Resource Opt_Resource; typedef struct Ark_Tuple_Dimension_Dimension Ark_Tuple_Dimension_Dimension; typedef struct Opt_Tuple_Dimension_Dimension Opt_Tuple_Dimension_Dimension; typedef struct PixelMapPeer PixelMapPeer; typedef struct PixelMapPeer* Ark_PixelMap; typedef struct Opt_PixelMap Opt_PixelMap; +typedef struct LengthMetricsPeer LengthMetricsPeer; +typedef struct LengthMetricsPeer* Ark_LengthMetrics; +typedef struct Opt_LengthMetrics Opt_LengthMetrics; +typedef struct Ark_Padding Ark_Padding; +typedef struct Opt_Padding Opt_Padding; +typedef struct Ark_Union_Dimension_BorderRadiuses Ark_Union_Dimension_BorderRadiuses; +typedef struct Opt_Union_Dimension_BorderRadiuses Opt_Union_Dimension_BorderRadiuses; +typedef struct Ark_ResourceColor Ark_ResourceColor; +typedef struct Opt_ResourceColor Opt_ResourceColor; +typedef struct Ark_LeadingMarginPlaceholder Ark_LeadingMarginPlaceholder; +typedef struct Opt_LeadingMarginPlaceholder Opt_LeadingMarginPlaceholder; +typedef struct Ark_Union_LengthMetrics_BorderRadiuses Ark_Union_LengthMetrics_BorderRadiuses; +typedef struct Opt_Union_LengthMetrics_BorderRadiuses Opt_Union_LengthMetrics_BorderRadiuses; +typedef struct Ark_Union_LengthMetrics_Padding Ark_Union_LengthMetrics_Padding; +typedef struct Opt_Union_LengthMetrics_Padding Opt_Union_LengthMetrics_Padding; +typedef struct Ark_Union_LengthMetrics_Margin Ark_Union_LengthMetrics_Margin; +typedef struct Opt_Union_LengthMetrics_Margin Opt_Union_LengthMetrics_Margin; +typedef struct ICurvePeer ICurvePeer; +typedef struct ICurvePeer* Ark_ICurve; +typedef struct Opt_ICurve Opt_ICurve; typedef struct Ark_Union_Number_Resource Ark_Union_Number_Resource; typedef struct Opt_Union_Number_Resource Opt_Union_Number_Resource; typedef struct Ark_Union_Color_String_Resource_ColoringStrategy Ark_Union_Color_String_Resource_ColoringStrategy; typedef struct Opt_Union_Color_String_Resource_ColoringStrategy Opt_Union_Color_String_Resource_ColoringStrategy; -typedef struct LengthMetricsPeer LengthMetricsPeer; -typedef struct LengthMetricsPeer* Ark_LengthMetrics; -typedef struct Opt_LengthMetrics Opt_LengthMetrics; +typedef struct Ark_TextBackgroundStyle Ark_TextBackgroundStyle; +typedef struct Opt_TextBackgroundStyle Opt_TextBackgroundStyle; +typedef struct Ark_Union_Number_LeadingMarginPlaceholder Ark_Union_Number_LeadingMarginPlaceholder; +typedef struct Opt_Union_Number_LeadingMarginPlaceholder Opt_Union_Number_LeadingMarginPlaceholder; +typedef struct Ark_ImageAttachmentLayoutStyle Ark_ImageAttachmentLayoutStyle; +typedef struct Opt_ImageAttachmentLayoutStyle Opt_ImageAttachmentLayoutStyle; +typedef struct Ark_SizeOptions Ark_SizeOptions; +typedef struct Opt_SizeOptions Opt_SizeOptions; +typedef struct Array_ShadowOptions Array_ShadowOptions; +typedef struct Opt_Array_ShadowOptions Opt_Array_ShadowOptions; typedef struct Ark_Position Ark_Position; typedef struct Opt_Position Opt_Position; typedef struct Ark_Union_String_Resource Ark_Union_String_Resource; @@ -272,26 +310,50 @@ typedef struct Ark_SymbolGlyphModifier Ark_SymbolGlyphModifier; typedef struct Opt_SymbolGlyphModifier Opt_SymbolGlyphModifier; typedef struct Ark_Union_Curve_ICurve Ark_Union_Curve_ICurve; typedef struct Opt_Union_Curve_ICurve Opt_Union_Curve_ICurve; -typedef struct Ark_Union_Dimension_BorderRadiuses Ark_Union_Dimension_BorderRadiuses; -typedef struct Opt_Union_Dimension_BorderRadiuses Opt_Union_Dimension_BorderRadiuses; typedef struct Ark_Union_Dimension_Margin Ark_Union_Dimension_Margin; typedef struct Opt_Union_Dimension_Margin Opt_Union_Dimension_Margin; -typedef struct Ark_LeadingMarginPlaceholder Ark_LeadingMarginPlaceholder; -typedef struct Opt_LeadingMarginPlaceholder Opt_LeadingMarginPlaceholder; -typedef struct Ark_ResourceColor Ark_ResourceColor; -typedef struct Opt_ResourceColor Opt_ResourceColor; -typedef struct Array_ShadowOptions Array_ShadowOptions; -typedef struct Opt_Array_ShadowOptions Opt_Array_ShadowOptions; typedef struct Ark_ShadowOptions Ark_ShadowOptions; typedef struct Opt_ShadowOptions Opt_ShadowOptions; typedef struct Ark_GridRowSizeOption Ark_GridRowSizeOption; typedef struct Opt_GridRowSizeOption Opt_GridRowSizeOption; -typedef struct Ark_Union_LengthMetrics_BorderRadiuses Ark_Union_LengthMetrics_BorderRadiuses; -typedef struct Opt_Union_LengthMetrics_BorderRadiuses Opt_Union_LengthMetrics_BorderRadiuses; -typedef struct Ark_Union_LengthMetrics_Padding Ark_Union_LengthMetrics_Padding; -typedef struct Opt_Union_LengthMetrics_Padding Opt_Union_LengthMetrics_Padding; -typedef struct Ark_Union_LengthMetrics_Margin Ark_Union_LengthMetrics_Margin; -typedef struct Opt_Union_LengthMetrics_Margin Opt_Union_LengthMetrics_Margin; +typedef struct BackgroundColorStylePeer BackgroundColorStylePeer; +typedef struct BackgroundColorStylePeer* Ark_BackgroundColorStyle; +typedef struct Opt_BackgroundColorStyle Opt_BackgroundColorStyle; +typedef struct Ark_UserDataSpan Ark_UserDataSpan; +typedef struct Opt_UserDataSpan Opt_UserDataSpan; +typedef struct CustomSpanPeer CustomSpanPeer; +typedef struct CustomSpanPeer* Ark_CustomSpan; +typedef struct Opt_CustomSpan Opt_CustomSpan; +typedef struct UrlStylePeer UrlStylePeer; +typedef struct UrlStylePeer* Ark_UrlStyle; +typedef struct Opt_UrlStyle Opt_UrlStyle; +typedef struct LineHeightStylePeer LineHeightStylePeer; +typedef struct LineHeightStylePeer* Ark_LineHeightStyle; +typedef struct Opt_LineHeightStyle Opt_LineHeightStyle; +typedef struct ParagraphStylePeer ParagraphStylePeer; +typedef struct ParagraphStylePeer* Ark_ParagraphStyle; +typedef struct Opt_ParagraphStyle Opt_ParagraphStyle; +typedef struct ImageAttachmentPeer ImageAttachmentPeer; +typedef struct ImageAttachmentPeer* Ark_ImageAttachment; +typedef struct Opt_ImageAttachment Opt_ImageAttachment; +typedef struct GestureStylePeer GestureStylePeer; +typedef struct GestureStylePeer* Ark_GestureStyle; +typedef struct Opt_GestureStyle Opt_GestureStyle; +typedef struct TextShadowStylePeer TextShadowStylePeer; +typedef struct TextShadowStylePeer* Ark_TextShadowStyle; +typedef struct Opt_TextShadowStyle Opt_TextShadowStyle; +typedef struct LetterSpacingStylePeer LetterSpacingStylePeer; +typedef struct LetterSpacingStylePeer* Ark_LetterSpacingStyle; +typedef struct Opt_LetterSpacingStyle Opt_LetterSpacingStyle; +typedef struct BaselineOffsetStylePeer BaselineOffsetStylePeer; +typedef struct BaselineOffsetStylePeer* Ark_BaselineOffsetStyle; +typedef struct Opt_BaselineOffsetStyle Opt_BaselineOffsetStyle; +typedef struct DecorationStylePeer DecorationStylePeer; +typedef struct DecorationStylePeer* Ark_DecorationStyle; +typedef struct Opt_DecorationStyle Opt_DecorationStyle; +typedef struct TextStyle_styled_stringPeer TextStyle_styled_stringPeer; +typedef struct TextStyle_styled_stringPeer* Ark_TextStyle_styled_string; +typedef struct Opt_TextStyle_styled_string Opt_TextStyle_styled_string; typedef struct Ark_Area Ark_Area; typedef struct Opt_Area Opt_Area; typedef struct Ark_Font Ark_Font; @@ -406,10 +468,6 @@ typedef struct ColorMetricsPeer* Ark_ColorMetrics; typedef struct Opt_ColorMetrics Opt_ColorMetrics; typedef struct Ark_StyledStringValue Ark_StyledStringValue; typedef struct Opt_StyledStringValue Opt_StyledStringValue; -typedef struct Ark_ImageAttachmentLayoutStyle Ark_ImageAttachmentLayoutStyle; -typedef struct Opt_ImageAttachmentLayoutStyle Opt_ImageAttachmentLayoutStyle; -typedef struct Ark_SizeOptions Ark_SizeOptions; -typedef struct Opt_SizeOptions Opt_SizeOptions; typedef struct Ark_Union_Margin_Dimension Ark_Union_Margin_Dimension; typedef struct Opt_Union_Margin_Dimension Opt_Union_Margin_Dimension; typedef struct GetItemMainSizeByIndex GetItemMainSizeByIndex; @@ -707,16 +765,6 @@ typedef struct Ark_SpanStyle Ark_SpanStyle; typedef struct Opt_SpanStyle Opt_SpanStyle; typedef struct Ark_Union_LengthMetrics_LeadingMarginPlaceholder Ark_Union_LengthMetrics_LeadingMarginPlaceholder; typedef struct Opt_Union_LengthMetrics_LeadingMarginPlaceholder Opt_Union_LengthMetrics_LeadingMarginPlaceholder; -typedef struct Ark_Union_Number_LeadingMarginPlaceholder Ark_Union_Number_LeadingMarginPlaceholder; -typedef struct Opt_Union_Number_LeadingMarginPlaceholder Opt_Union_Number_LeadingMarginPlaceholder; -typedef struct Ark_TextBackgroundStyle Ark_TextBackgroundStyle; -typedef struct Opt_TextBackgroundStyle Opt_TextBackgroundStyle; -typedef struct CustomSpanPeer CustomSpanPeer; -typedef struct CustomSpanPeer* Ark_CustomSpan; -typedef struct Opt_CustomSpan Opt_CustomSpan; -typedef struct ImageAttachmentPeer ImageAttachmentPeer; -typedef struct ImageAttachmentPeer* Ark_ImageAttachment; -typedef struct Opt_ImageAttachment Opt_ImageAttachment; typedef struct Map_String_ComponentContent Map_String_ComponentContent; typedef struct Opt_Map_String_ComponentContent Opt_Map_String_ComponentContent; typedef struct Callback_UIExtensionProxy_Void Callback_UIExtensionProxy_Void; @@ -1170,8 +1218,6 @@ typedef struct Callback_KeyEvent_Void Callback_KeyEvent_Void; typedef struct Opt_Callback_KeyEvent_Void Opt_Callback_KeyEvent_Void; typedef struct Callback_TouchEvent_Void Callback_TouchEvent_Void; typedef struct Opt_Callback_TouchEvent_Void Opt_Callback_TouchEvent_Void; -typedef struct OnMoveHandler OnMoveHandler; -typedef struct Opt_OnMoveHandler Opt_OnMoveHandler; typedef struct Ark_FadingEdgeOptions Ark_FadingEdgeOptions; typedef struct Opt_FadingEdgeOptions Opt_FadingEdgeOptions; typedef struct RectShapePeer RectShapePeer; @@ -1392,6 +1438,8 @@ typedef struct PageTransitionCallback PageTransitionCallback; typedef struct Opt_PageTransitionCallback Opt_PageTransitionCallback; typedef struct OnScrollCallback OnScrollCallback; typedef struct Opt_OnScrollCallback Opt_OnScrollCallback; +typedef struct OnMoveHandler OnMoveHandler; +typedef struct Opt_OnMoveHandler Opt_OnMoveHandler; typedef struct Ark_IsolatedOptions Ark_IsolatedOptions; typedef struct Opt_IsolatedOptions Opt_IsolatedOptions; typedef struct IsolatedComponentInterface IsolatedComponentInterface; @@ -1457,42 +1505,12 @@ typedef struct LinearIndicatorControllerPeer* Ark_LinearIndicatorController; typedef struct Opt_LinearIndicatorController Opt_LinearIndicatorController; typedef struct Ark_ImageAttachmentInterface Ark_ImageAttachmentInterface; typedef struct Opt_ImageAttachmentInterface Opt_ImageAttachmentInterface; -typedef struct UrlStylePeer UrlStylePeer; -typedef struct UrlStylePeer* Ark_UrlStyle; -typedef struct Opt_UrlStyle Opt_UrlStyle; -typedef struct LineHeightStylePeer LineHeightStylePeer; -typedef struct LineHeightStylePeer* Ark_LineHeightStyle; -typedef struct Opt_LineHeightStyle Opt_LineHeightStyle; typedef struct Ark_ParagraphStyleInterface Ark_ParagraphStyleInterface; typedef struct Opt_ParagraphStyleInterface Opt_ParagraphStyleInterface; -typedef struct ParagraphStylePeer ParagraphStylePeer; -typedef struct ParagraphStylePeer* Ark_ParagraphStyle; -typedef struct Opt_ParagraphStyle Opt_ParagraphStyle; typedef struct Ark_GestureStyleInterface Ark_GestureStyleInterface; typedef struct Opt_GestureStyleInterface Opt_GestureStyleInterface; -typedef struct GestureStylePeer GestureStylePeer; -typedef struct GestureStylePeer* Ark_GestureStyle; -typedef struct Opt_GestureStyle Opt_GestureStyle; -typedef struct BackgroundColorStylePeer BackgroundColorStylePeer; -typedef struct BackgroundColorStylePeer* Ark_BackgroundColorStyle; -typedef struct Opt_BackgroundColorStyle Opt_BackgroundColorStyle; -typedef struct TextShadowStylePeer TextShadowStylePeer; -typedef struct TextShadowStylePeer* Ark_TextShadowStyle; -typedef struct Opt_TextShadowStyle Opt_TextShadowStyle; -typedef struct LetterSpacingStylePeer LetterSpacingStylePeer; -typedef struct LetterSpacingStylePeer* Ark_LetterSpacingStyle; -typedef struct Opt_LetterSpacingStyle Opt_LetterSpacingStyle; -typedef struct BaselineOffsetStylePeer BaselineOffsetStylePeer; -typedef struct BaselineOffsetStylePeer* Ark_BaselineOffsetStyle; -typedef struct Opt_BaselineOffsetStyle Opt_BaselineOffsetStyle; -typedef struct DecorationStylePeer DecorationStylePeer; -typedef struct DecorationStylePeer* Ark_DecorationStyle; -typedef struct Opt_DecorationStyle Opt_DecorationStyle; typedef struct Ark_TextStyleInterface Ark_TextStyleInterface; typedef struct Opt_TextStyleInterface Opt_TextStyleInterface; -typedef struct TextStyle_styled_stringPeer TextStyle_styled_stringPeer; -typedef struct TextStyle_styled_stringPeer* Ark_TextStyle_styled_string; -typedef struct Opt_TextStyle_styled_string Opt_TextStyle_styled_string; typedef struct Ark_StyleOptions Ark_StyleOptions; typedef struct Opt_StyleOptions Opt_StyleOptions; typedef struct Array_StyleOptions Array_StyleOptions; @@ -2369,9 +2387,6 @@ typedef struct Opt_UICommonEvent Opt_UICommonEvent; typedef struct ChildrenMainSizePeer ChildrenMainSizePeer; typedef struct ChildrenMainSizePeer* Ark_ChildrenMainSize; typedef struct Opt_ChildrenMainSize Opt_ChildrenMainSize; -typedef struct DynamicNodePeer DynamicNodePeer; -typedef struct DynamicNodePeer* Ark_DynamicNode; -typedef struct Opt_DynamicNode Opt_DynamicNode; typedef struct Ark_Union_ContentClipMode_RectShape Ark_Union_ContentClipMode_RectShape; typedef struct Opt_Union_ContentClipMode_RectShape Opt_Union_ContentClipMode_RectShape; typedef struct ScrollOnScrollCallback ScrollOnScrollCallback; @@ -2715,15 +2730,17 @@ typedef struct Opt_LazyForEachOps Opt_LazyForEachOps; typedef struct AnimationExtenderPeer AnimationExtenderPeer; typedef struct AnimationExtenderPeer* Ark_AnimationExtender; typedef struct Opt_AnimationExtender Opt_AnimationExtender; -typedef enum Ark_ColoringStrategy { - ARK_COLORING_STRATEGY_INVERT, - ARK_COLORING_STRATEGY_AVERAGE, - ARK_COLORING_STRATEGY_PRIMARY, -} Ark_ColoringStrategy; -typedef struct Opt_ColoringStrategy { +typedef enum Ark_LengthUnit { + ARK_LENGTH_UNIT_PX = 0, + ARK_LENGTH_UNIT_VP = 1, + ARK_LENGTH_UNIT_FP = 2, + ARK_LENGTH_UNIT_PERCENT = 3, + ARK_LENGTH_UNIT_LPX = 4, +} Ark_LengthUnit; +typedef struct Opt_LengthUnit { Ark_Tag tag; - Ark_ColoringStrategy value; -} Opt_ColoringStrategy; + Ark_LengthUnit value; +} Opt_LengthUnit; typedef enum Ark_Color { ARK_COLOR_WHITE = 0, ARK_COLOR_BLACK = 1, @@ -2742,17 +2759,15 @@ typedef struct Opt_Color { Ark_Tag tag; Ark_Color value; } Opt_Color; -typedef enum Ark_LengthUnit { - ARK_LENGTH_UNIT_PX = 0, - ARK_LENGTH_UNIT_VP = 1, - ARK_LENGTH_UNIT_FP = 2, - ARK_LENGTH_UNIT_PERCENT = 3, - ARK_LENGTH_UNIT_LPX = 4, -} Ark_LengthUnit; -typedef struct Opt_LengthUnit { +typedef enum Ark_ColoringStrategy { + ARK_COLORING_STRATEGY_INVERT, + ARK_COLORING_STRATEGY_AVERAGE, + ARK_COLORING_STRATEGY_PRIMARY, +} Ark_ColoringStrategy; +typedef struct Opt_ColoringStrategy { Ark_Tag tag; - Ark_LengthUnit value; -} Opt_LengthUnit; + Ark_ColoringStrategy value; +} Opt_ColoringStrategy; typedef enum Ark_FontWeight { ARK_FONT_WEIGHT_LIGHTER = 0, ARK_FONT_WEIGHT_NORMAL = 1, @@ -2792,14 +2807,66 @@ typedef struct Opt_ShadowType { Ark_Tag tag; Ark_ShadowType value; } Opt_ShadowType; -typedef enum Ark_FontStyle { - ARK_FONT_STYLE_NORMAL = 0, - ARK_FONT_STYLE_ITALIC = 1, -} Ark_FontStyle; -typedef struct Opt_FontStyle { +typedef enum Ark_WordBreak { + ARK_WORD_BREAK_NORMAL = 0, + ARK_WORD_BREAK_BREAK_ALL = 1, + ARK_WORD_BREAK_BREAK_WORD = 2, +} Ark_WordBreak; +typedef struct Opt_WordBreak { Ark_Tag tag; - Ark_FontStyle value; -} Opt_FontStyle; + Ark_WordBreak value; +} Opt_WordBreak; +typedef enum Ark_TextOverflow { + ARK_TEXT_OVERFLOW_NONE = 0, + ARK_TEXT_OVERFLOW_CLIP = 1, + ARK_TEXT_OVERFLOW_ELLIPSIS = 2, + ARK_TEXT_OVERFLOW_MARQUEE = 3, +} Ark_TextOverflow; +typedef struct Opt_TextOverflow { + Ark_Tag tag; + Ark_TextOverflow value; +} Opt_TextOverflow; +typedef enum Ark_TextAlign { + ARK_TEXT_ALIGN_CENTER = 0, + ARK_TEXT_ALIGN_START = 1, + ARK_TEXT_ALIGN_END = 2, + ARK_TEXT_ALIGN_JUSTIFY = 3, +} Ark_TextAlign; +typedef struct Opt_TextAlign { + Ark_Tag tag; + Ark_TextAlign value; +} Opt_TextAlign; +typedef enum Ark_ImageFit { + ARK_IMAGE_FIT_CONTAIN = 0, + ARK_IMAGE_FIT_COVER = 1, + ARK_IMAGE_FIT_AUTO = 2, + ARK_IMAGE_FIT_FILL = 3, + ARK_IMAGE_FIT_SCALE_DOWN = 4, + ARK_IMAGE_FIT_NONE = 5, + ARK_IMAGE_FIT_TOP_START = 7, + ARK_IMAGE_FIT_TOP = 8, + ARK_IMAGE_FIT_TOP_END = 9, + ARK_IMAGE_FIT_START = 10, + ARK_IMAGE_FIT_CENTER = 11, + ARK_IMAGE_FIT_END = 12, + ARK_IMAGE_FIT_BOTTOM_START = 13, + ARK_IMAGE_FIT_BOTTOM = 14, + ARK_IMAGE_FIT_BOTTOM_END = 15, +} Ark_ImageFit; +typedef struct Opt_ImageFit { + Ark_Tag tag; + Ark_ImageFit value; +} Opt_ImageFit; +typedef enum Ark_ImageSpanAlignment { + ARK_IMAGE_SPAN_ALIGNMENT_BASELINE = 0, + ARK_IMAGE_SPAN_ALIGNMENT_BOTTOM = 1, + ARK_IMAGE_SPAN_ALIGNMENT_CENTER = 2, + ARK_IMAGE_SPAN_ALIGNMENT_TOP = 3, +} Ark_ImageSpanAlignment; +typedef struct Opt_ImageSpanAlignment { + Ark_Tag tag; + Ark_ImageSpanAlignment value; +} Opt_ImageSpanAlignment; typedef enum Ark_TextDecorationStyle { ARK_TEXT_DECORATION_STYLE_SOLID = 0, ARK_TEXT_DECORATION_STYLE_DOUBLE = 1, @@ -2821,6 +2888,14 @@ typedef struct Opt_TextDecorationType { Ark_Tag tag; Ark_TextDecorationType value; } Opt_TextDecorationType; +typedef enum Ark_FontStyle { + ARK_FONT_STYLE_NORMAL = 0, + ARK_FONT_STYLE_ITALIC = 1, +} Ark_FontStyle; +typedef struct Opt_FontStyle { + Ark_Tag tag; + Ark_FontStyle value; +} Opt_FontStyle; typedef enum Ark_BorderStyle { ARK_BORDER_STYLE_DOTTED = 0, ARK_BORDER_STYLE_DASHED = 1, @@ -2887,47 +2962,6 @@ typedef struct Opt_TextHeightAdaptivePolicy { Ark_Tag tag; Ark_TextHeightAdaptivePolicy value; } Opt_TextHeightAdaptivePolicy; -typedef enum Ark_TextOverflow { - ARK_TEXT_OVERFLOW_NONE = 0, - ARK_TEXT_OVERFLOW_CLIP = 1, - ARK_TEXT_OVERFLOW_ELLIPSIS = 2, - ARK_TEXT_OVERFLOW_MARQUEE = 3, -} Ark_TextOverflow; -typedef struct Opt_TextOverflow { - Ark_Tag tag; - Ark_TextOverflow value; -} Opt_TextOverflow; -typedef enum Ark_ImageFit { - ARK_IMAGE_FIT_CONTAIN = 0, - ARK_IMAGE_FIT_COVER = 1, - ARK_IMAGE_FIT_AUTO = 2, - ARK_IMAGE_FIT_FILL = 3, - ARK_IMAGE_FIT_SCALE_DOWN = 4, - ARK_IMAGE_FIT_NONE = 5, - ARK_IMAGE_FIT_TOP_START = 7, - ARK_IMAGE_FIT_TOP = 8, - ARK_IMAGE_FIT_TOP_END = 9, - ARK_IMAGE_FIT_START = 10, - ARK_IMAGE_FIT_CENTER = 11, - ARK_IMAGE_FIT_END = 12, - ARK_IMAGE_FIT_BOTTOM_START = 13, - ARK_IMAGE_FIT_BOTTOM = 14, - ARK_IMAGE_FIT_BOTTOM_END = 15, -} Ark_ImageFit; -typedef struct Opt_ImageFit { - Ark_Tag tag; - Ark_ImageFit value; -} Opt_ImageFit; -typedef enum Ark_ImageSpanAlignment { - ARK_IMAGE_SPAN_ALIGNMENT_BASELINE = 0, - ARK_IMAGE_SPAN_ALIGNMENT_BOTTOM = 1, - ARK_IMAGE_SPAN_ALIGNMENT_CENTER = 2, - ARK_IMAGE_SPAN_ALIGNMENT_TOP = 3, -} Ark_ImageSpanAlignment; -typedef struct Opt_ImageSpanAlignment { - Ark_Tag tag; - Ark_ImageSpanAlignment value; -} Opt_ImageSpanAlignment; typedef enum Ark_LineBreakStrategy { ARK_LINE_BREAK_STRATEGY_GREEDY = 0, ARK_LINE_BREAK_STRATEGY_HIGH_QUALITY = 1, @@ -2937,25 +2971,6 @@ typedef struct Opt_LineBreakStrategy { Ark_Tag tag; Ark_LineBreakStrategy value; } Opt_LineBreakStrategy; -typedef enum Ark_WordBreak { - ARK_WORD_BREAK_NORMAL = 0, - ARK_WORD_BREAK_BREAK_ALL = 1, - ARK_WORD_BREAK_BREAK_WORD = 2, -} Ark_WordBreak; -typedef struct Opt_WordBreak { - Ark_Tag tag; - Ark_WordBreak value; -} Opt_WordBreak; -typedef enum Ark_TextAlign { - ARK_TEXT_ALIGN_CENTER = 0, - ARK_TEXT_ALIGN_START = 1, - ARK_TEXT_ALIGN_END = 2, - ARK_TEXT_ALIGN_JUSTIFY = 3, -} Ark_TextAlign; -typedef struct Opt_TextAlign { - Ark_Tag tag; - Ark_TextAlign value; -} Opt_TextAlign; typedef enum Ark_SymbolRenderingStrategy { ARK_SYMBOL_RENDERING_STRATEGY_SINGLE = 0, ARK_SYMBOL_RENDERING_STRATEGY_MULTIPLE_COLOR = 1, @@ -5549,6 +5564,10 @@ typedef struct Opt_Int32 { Ark_Tag tag; Ark_Int32 value; } Opt_Int32; +typedef struct Opt_Length { + Ark_Tag tag; + Ark_Length value; +} Opt_Length; typedef struct Opt_Number { Ark_Tag tag; Ark_Number value; @@ -5565,14 +5584,20 @@ typedef struct Opt_String { Ark_Tag tag; Ark_String value; } Opt_String; -typedef struct Opt_Length { - Ark_Tag tag; - Ark_Length value; -} Opt_Length; typedef struct Opt_Boolean { Ark_Tag tag; Ark_Boolean value; } Opt_Boolean; +typedef struct Ark_BorderRadiuses { + Opt_Length topLeft; + Opt_Length topRight; + Opt_Length bottomLeft; + Opt_Length bottomRight; +} Ark_BorderRadiuses; +typedef struct Opt_BorderRadiuses { + Ark_Tag tag; + Ark_BorderRadiuses value; +} Opt_BorderRadiuses; typedef struct Ark_Resource { Ark_String bundleName; Ark_String moduleName; @@ -5584,20 +5609,22 @@ typedef struct Opt_Resource { Ark_Tag tag; Ark_Resource value; } Opt_Resource; -typedef struct Opt_ICurve { +typedef struct Ark_Tuple_Dimension_Dimension { + Ark_Length value0; + Ark_Length value1; +} Ark_Tuple_Dimension_Dimension; +typedef struct Opt_Tuple_Dimension_Dimension { Ark_Tag tag; - Ark_ICurve value; -} Opt_ICurve; -typedef struct Ark_BorderRadiuses { - Opt_Length topLeft; - Opt_Length topRight; - Opt_Length bottomLeft; - Opt_Length bottomRight; -} Ark_BorderRadiuses; -typedef struct Opt_BorderRadiuses { + Ark_Tuple_Dimension_Dimension value; +} Opt_Tuple_Dimension_Dimension; +typedef struct Opt_PixelMap { Ark_Tag tag; - Ark_BorderRadiuses value; -} Opt_BorderRadiuses; + Ark_PixelMap value; +} Opt_PixelMap; +typedef struct Opt_LengthMetrics { + Ark_Tag tag; + Ark_LengthMetrics value; +} Opt_LengthMetrics; typedef struct Ark_Padding { Opt_Length top; Opt_Length right; @@ -5608,18 +5635,75 @@ typedef struct Opt_Padding { Ark_Tag tag; Ark_Padding value; } Opt_Padding; -typedef struct Ark_Tuple_Dimension_Dimension { - Ark_Length value0; - Ark_Length value1; -} Ark_Tuple_Dimension_Dimension; -typedef struct Opt_Tuple_Dimension_Dimension { +typedef struct Ark_Union_Dimension_BorderRadiuses { + Ark_Int32 selector; + union { + Ark_Length value0; + Ark_BorderRadiuses value1; + }; +} Ark_Union_Dimension_BorderRadiuses; +typedef struct Opt_Union_Dimension_BorderRadiuses { Ark_Tag tag; - Ark_Tuple_Dimension_Dimension value; -} Opt_Tuple_Dimension_Dimension; -typedef struct Opt_PixelMap { + Ark_Union_Dimension_BorderRadiuses value; +} Opt_Union_Dimension_BorderRadiuses; +typedef struct Ark_ResourceColor { + Ark_Int32 selector; + union { + Ark_Color value0; + Ark_Number value1; + Ark_String value2; + Ark_Resource value3; + }; +} Ark_ResourceColor; +typedef struct Opt_ResourceColor { Ark_Tag tag; - Ark_PixelMap value; -} Opt_PixelMap; + Ark_ResourceColor value; +} Opt_ResourceColor; +typedef struct Ark_LeadingMarginPlaceholder { + Ark_PixelMap pixelMap; + Ark_Tuple_Dimension_Dimension size; +} Ark_LeadingMarginPlaceholder; +typedef struct Opt_LeadingMarginPlaceholder { + Ark_Tag tag; + Ark_LeadingMarginPlaceholder value; +} Opt_LeadingMarginPlaceholder; +typedef struct Ark_Union_LengthMetrics_BorderRadiuses { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_BorderRadiuses value1; + }; +} Ark_Union_LengthMetrics_BorderRadiuses; +typedef struct Opt_Union_LengthMetrics_BorderRadiuses { + Ark_Tag tag; + Ark_Union_LengthMetrics_BorderRadiuses value; +} Opt_Union_LengthMetrics_BorderRadiuses; +typedef struct Ark_Union_LengthMetrics_Padding { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_Padding value1; + }; +} Ark_Union_LengthMetrics_Padding; +typedef struct Opt_Union_LengthMetrics_Padding { + Ark_Tag tag; + Ark_Union_LengthMetrics_Padding value; +} Opt_Union_LengthMetrics_Padding; +typedef struct Ark_Union_LengthMetrics_Margin { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_Padding value1; + }; +} Ark_Union_LengthMetrics_Margin; +typedef struct Opt_Union_LengthMetrics_Margin { + Ark_Tag tag; + Ark_Union_LengthMetrics_Margin value; +} Opt_Union_LengthMetrics_Margin; +typedef struct Opt_ICurve { + Ark_Tag tag; + Ark_ICurve value; +} Opt_ICurve; typedef struct Ark_Union_Number_Resource { Ark_Int32 selector; union { @@ -5642,12 +5726,52 @@ typedef struct Ark_Union_Color_String_Resource_ColoringStrategy { } Ark_Union_Color_String_Resource_ColoringStrategy; typedef struct Opt_Union_Color_String_Resource_ColoringStrategy { Ark_Tag tag; - Ark_Union_Color_String_Resource_ColoringStrategy value; -} Opt_Union_Color_String_Resource_ColoringStrategy; -typedef struct Opt_LengthMetrics { + Ark_Union_Color_String_Resource_ColoringStrategy value; +} Opt_Union_Color_String_Resource_ColoringStrategy; +typedef struct Ark_TextBackgroundStyle { + Opt_ResourceColor color; + Opt_Union_Dimension_BorderRadiuses radius; +} Ark_TextBackgroundStyle; +typedef struct Opt_TextBackgroundStyle { + Ark_Tag tag; + Ark_TextBackgroundStyle value; +} Opt_TextBackgroundStyle; +typedef struct Ark_Union_Number_LeadingMarginPlaceholder { + Ark_Int32 selector; + union { + Ark_Number value0; + Ark_LeadingMarginPlaceholder value1; + }; +} Ark_Union_Number_LeadingMarginPlaceholder; +typedef struct Opt_Union_Number_LeadingMarginPlaceholder { + Ark_Tag tag; + Ark_Union_Number_LeadingMarginPlaceholder value; +} Opt_Union_Number_LeadingMarginPlaceholder; +typedef struct Ark_ImageAttachmentLayoutStyle { + Opt_Union_LengthMetrics_Margin margin; + Opt_Union_LengthMetrics_Padding padding; + Opt_Union_LengthMetrics_BorderRadiuses borderRadius; +} Ark_ImageAttachmentLayoutStyle; +typedef struct Opt_ImageAttachmentLayoutStyle { + Ark_Tag tag; + Ark_ImageAttachmentLayoutStyle value; +} Opt_ImageAttachmentLayoutStyle; +typedef struct Ark_SizeOptions { + Opt_Length width; + Opt_Length height; +} Ark_SizeOptions; +typedef struct Opt_SizeOptions { Ark_Tag tag; - Ark_LengthMetrics value; -} Opt_LengthMetrics; + Ark_SizeOptions value; +} Opt_SizeOptions; +typedef struct Array_ShadowOptions { + Ark_ShadowOptions* array; + Ark_Int32 length; +} Array_ShadowOptions; +typedef struct Opt_Array_ShadowOptions { + Ark_Tag tag; + Array_ShadowOptions value; +} Opt_Array_ShadowOptions; typedef struct Ark_Position { Opt_Length x; Opt_Length y; @@ -5708,17 +5832,6 @@ typedef struct Opt_Union_Curve_ICurve { Ark_Tag tag; Ark_Union_Curve_ICurve value; } Opt_Union_Curve_ICurve; -typedef struct Ark_Union_Dimension_BorderRadiuses { - Ark_Int32 selector; - union { - Ark_Length value0; - Ark_BorderRadiuses value1; - }; -} Ark_Union_Dimension_BorderRadiuses; -typedef struct Opt_Union_Dimension_BorderRadiuses { - Ark_Tag tag; - Ark_Union_Dimension_BorderRadiuses value; -} Opt_Union_Dimension_BorderRadiuses; typedef struct Ark_Union_Dimension_Margin { Ark_Int32 selector; union { @@ -5730,35 +5843,6 @@ typedef struct Opt_Union_Dimension_Margin { Ark_Tag tag; Ark_Union_Dimension_Margin value; } Opt_Union_Dimension_Margin; -typedef struct Ark_LeadingMarginPlaceholder { - Ark_PixelMap pixelMap; - Ark_Tuple_Dimension_Dimension size; -} Ark_LeadingMarginPlaceholder; -typedef struct Opt_LeadingMarginPlaceholder { - Ark_Tag tag; - Ark_LeadingMarginPlaceholder value; -} Opt_LeadingMarginPlaceholder; -typedef struct Ark_ResourceColor { - Ark_Int32 selector; - union { - Ark_Color value0; - Ark_Number value1; - Ark_String value2; - Ark_Resource value3; - }; -} Ark_ResourceColor; -typedef struct Opt_ResourceColor { - Ark_Tag tag; - Ark_ResourceColor value; -} Opt_ResourceColor; -typedef struct Array_ShadowOptions { - Ark_ShadowOptions* array; - Ark_Int32 length; -} Array_ShadowOptions; -typedef struct Opt_Array_ShadowOptions { - Ark_Tag tag; - Array_ShadowOptions value; -} Opt_Array_ShadowOptions; typedef struct Ark_ShadowOptions { Ark_Union_Number_Resource radius; Opt_ShadowType type; @@ -5783,39 +5867,61 @@ typedef struct Opt_GridRowSizeOption { Ark_Tag tag; Ark_GridRowSizeOption value; } Opt_GridRowSizeOption; -typedef struct Ark_Union_LengthMetrics_BorderRadiuses { - Ark_Int32 selector; - union { - Ark_LengthMetrics value0; - Ark_BorderRadiuses value1; - }; -} Ark_Union_LengthMetrics_BorderRadiuses; -typedef struct Opt_Union_LengthMetrics_BorderRadiuses { +typedef struct Opt_BackgroundColorStyle { Ark_Tag tag; - Ark_Union_LengthMetrics_BorderRadiuses value; -} Opt_Union_LengthMetrics_BorderRadiuses; -typedef struct Ark_Union_LengthMetrics_Padding { - Ark_Int32 selector; - union { - Ark_LengthMetrics value0; - Ark_Padding value1; - }; -} Ark_Union_LengthMetrics_Padding; -typedef struct Opt_Union_LengthMetrics_Padding { + Ark_BackgroundColorStyle value; +} Opt_BackgroundColorStyle; +typedef struct Ark_UserDataSpan { + void *handle; +} Ark_UserDataSpan; +typedef struct Opt_UserDataSpan { Ark_Tag tag; - Ark_Union_LengthMetrics_Padding value; -} Opt_Union_LengthMetrics_Padding; -typedef struct Ark_Union_LengthMetrics_Margin { - Ark_Int32 selector; - union { - Ark_LengthMetrics value0; - Ark_Padding value1; - }; -} Ark_Union_LengthMetrics_Margin; -typedef struct Opt_Union_LengthMetrics_Margin { + Ark_UserDataSpan value; +} Opt_UserDataSpan; +typedef struct Opt_CustomSpan { Ark_Tag tag; - Ark_Union_LengthMetrics_Margin value; -} Opt_Union_LengthMetrics_Margin; + Ark_CustomSpan value; +} Opt_CustomSpan; +typedef struct Opt_UrlStyle { + Ark_Tag tag; + Ark_UrlStyle value; +} Opt_UrlStyle; +typedef struct Opt_LineHeightStyle { + Ark_Tag tag; + Ark_LineHeightStyle value; +} Opt_LineHeightStyle; +typedef struct Opt_ParagraphStyle { + Ark_Tag tag; + Ark_ParagraphStyle value; +} Opt_ParagraphStyle; +typedef struct Opt_ImageAttachment { + Ark_Tag tag; + Ark_ImageAttachment value; +} Opt_ImageAttachment; +typedef struct Opt_GestureStyle { + Ark_Tag tag; + Ark_GestureStyle value; +} Opt_GestureStyle; +typedef struct Opt_TextShadowStyle { + Ark_Tag tag; + Ark_TextShadowStyle value; +} Opt_TextShadowStyle; +typedef struct Opt_LetterSpacingStyle { + Ark_Tag tag; + Ark_LetterSpacingStyle value; +} Opt_LetterSpacingStyle; +typedef struct Opt_BaselineOffsetStyle { + Ark_Tag tag; + Ark_BaselineOffsetStyle value; +} Opt_BaselineOffsetStyle; +typedef struct Opt_DecorationStyle { + Ark_Tag tag; + Ark_DecorationStyle value; +} Opt_DecorationStyle; +typedef struct Opt_TextStyle_styled_string { + Ark_Tag tag; + Ark_TextStyle_styled_string value; +} Opt_TextStyle_styled_string; typedef struct Ark_Area { Ark_Length width; Ark_Length height; @@ -6305,29 +6411,27 @@ typedef struct Opt_ColorMetrics { Ark_ColorMetrics value; } Opt_ColorMetrics; typedef struct Ark_StyledStringValue { - Ark_String stub; + Ark_Int32 selector; + union { + Ark_TextStyle_styled_string value0; + Ark_DecorationStyle value1; + Ark_BaselineOffsetStyle value2; + Ark_LetterSpacingStyle value3; + Ark_TextShadowStyle value4; + Ark_GestureStyle value5; + Ark_ImageAttachment value6; + Ark_ParagraphStyle value7; + Ark_LineHeightStyle value8; + Ark_UrlStyle value9; + Ark_CustomSpan value10; + Ark_UserDataSpan value11; + Ark_BackgroundColorStyle value12; + }; } Ark_StyledStringValue; typedef struct Opt_StyledStringValue { Ark_Tag tag; Ark_StyledStringValue value; } Opt_StyledStringValue; -typedef struct Ark_ImageAttachmentLayoutStyle { - Opt_Union_LengthMetrics_Margin margin; - Opt_Union_LengthMetrics_Padding padding; - Opt_Union_LengthMetrics_BorderRadiuses borderRadius; -} Ark_ImageAttachmentLayoutStyle; -typedef struct Opt_ImageAttachmentLayoutStyle { - Ark_Tag tag; - Ark_ImageAttachmentLayoutStyle value; -} Opt_ImageAttachmentLayoutStyle; -typedef struct Ark_SizeOptions { - Opt_Length width; - Opt_Length height; -} Ark_SizeOptions; -typedef struct Opt_SizeOptions { - Ark_Tag tag; - Ark_SizeOptions value; -} Opt_SizeOptions; typedef struct Ark_Union_Margin_Dimension { Ark_Int32 selector; union { @@ -7661,33 +7765,6 @@ typedef struct Opt_Union_LengthMetrics_LeadingMarginPlaceholder { Ark_Tag tag; Ark_Union_LengthMetrics_LeadingMarginPlaceholder value; } Opt_Union_LengthMetrics_LeadingMarginPlaceholder; -typedef struct Ark_Union_Number_LeadingMarginPlaceholder { - Ark_Int32 selector; - union { - Ark_Number value0; - Ark_LeadingMarginPlaceholder value1; - }; -} Ark_Union_Number_LeadingMarginPlaceholder; -typedef struct Opt_Union_Number_LeadingMarginPlaceholder { - Ark_Tag tag; - Ark_Union_Number_LeadingMarginPlaceholder value; -} Opt_Union_Number_LeadingMarginPlaceholder; -typedef struct Ark_TextBackgroundStyle { - Opt_ResourceColor color; - Opt_Union_Dimension_BorderRadiuses radius; -} Ark_TextBackgroundStyle; -typedef struct Opt_TextBackgroundStyle { - Ark_Tag tag; - Ark_TextBackgroundStyle value; -} Opt_TextBackgroundStyle; -typedef struct Opt_CustomSpan { - Ark_Tag tag; - Ark_CustomSpan value; -} Opt_CustomSpan; -typedef struct Opt_ImageAttachment { - Ark_Tag tag; - Ark_ImageAttachment value; -} Opt_ImageAttachment; typedef struct Map_String_ComponentContent { Ark_Int32 size; Ark_String* keys; @@ -9417,15 +9494,6 @@ typedef struct Opt_Callback_TouchEvent_Void { Ark_Tag tag; Callback_TouchEvent_Void value; } Opt_Callback_TouchEvent_Void; -typedef struct OnMoveHandler { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_Number from, const Ark_Number to); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Number from, const Ark_Number to); -} OnMoveHandler; -typedef struct Opt_OnMoveHandler { - Ark_Tag tag; - OnMoveHandler value; -} Opt_OnMoveHandler; typedef struct Ark_FadingEdgeOptions { Opt_LengthMetrics fadingEdgeLength; } Ark_FadingEdgeOptions; @@ -10493,6 +10561,15 @@ typedef struct Opt_OnScrollCallback { Ark_Tag tag; OnScrollCallback value; } Opt_OnScrollCallback; +typedef struct OnMoveHandler { + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_Number from, const Ark_Number to); + void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Number from, const Ark_Number to); +} OnMoveHandler; +typedef struct Opt_OnMoveHandler { + Ark_Tag tag; + OnMoveHandler value; +} Opt_OnMoveHandler; typedef struct Ark_IsolatedOptions { Ark_Want want; Ark_RestrictedWorker worker; @@ -10773,14 +10850,6 @@ typedef struct Opt_ImageAttachmentInterface { Ark_Tag tag; Ark_ImageAttachmentInterface value; } Opt_ImageAttachmentInterface; -typedef struct Opt_UrlStyle { - Ark_Tag tag; - Ark_UrlStyle value; -} Opt_UrlStyle; -typedef struct Opt_LineHeightStyle { - Ark_Tag tag; - Ark_LineHeightStyle value; -} Opt_LineHeightStyle; typedef struct Ark_ParagraphStyleInterface { Opt_TextAlign textAlign; Opt_LengthMetrics textIndent; @@ -10793,10 +10862,6 @@ typedef struct Opt_ParagraphStyleInterface { Ark_Tag tag; Ark_ParagraphStyleInterface value; } Opt_ParagraphStyleInterface; -typedef struct Opt_ParagraphStyle { - Ark_Tag tag; - Ark_ParagraphStyle value; -} Opt_ParagraphStyle; typedef struct Ark_GestureStyleInterface { Opt_Callback_ClickEvent_Void onClick; Opt_Callback_GestureEvent_Void onLongPress; @@ -10805,30 +10870,6 @@ typedef struct Opt_GestureStyleInterface { Ark_Tag tag; Ark_GestureStyleInterface value; } Opt_GestureStyleInterface; -typedef struct Opt_GestureStyle { - Ark_Tag tag; - Ark_GestureStyle value; -} Opt_GestureStyle; -typedef struct Opt_BackgroundColorStyle { - Ark_Tag tag; - Ark_BackgroundColorStyle value; -} Opt_BackgroundColorStyle; -typedef struct Opt_TextShadowStyle { - Ark_Tag tag; - Ark_TextShadowStyle value; -} Opt_TextShadowStyle; -typedef struct Opt_LetterSpacingStyle { - Ark_Tag tag; - Ark_LetterSpacingStyle value; -} Opt_LetterSpacingStyle; -typedef struct Opt_BaselineOffsetStyle { - Ark_Tag tag; - Ark_BaselineOffsetStyle value; -} Opt_BaselineOffsetStyle; -typedef struct Opt_DecorationStyle { - Ark_Tag tag; - Ark_DecorationStyle value; -} Opt_DecorationStyle; typedef struct Ark_TextStyleInterface { Opt_ResourceColor fontColor; Opt_ResourceStr fontFamily; @@ -10840,10 +10881,6 @@ typedef struct Opt_TextStyleInterface { Ark_Tag tag; Ark_TextStyleInterface value; } Opt_TextStyleInterface; -typedef struct Opt_TextStyle_styled_string { - Ark_Tag tag; - Ark_TextStyle_styled_string value; -} Opt_TextStyle_styled_string; typedef struct Ark_StyleOptions { Opt_Number start; Opt_Number length; @@ -14531,10 +14568,6 @@ typedef struct Opt_ChildrenMainSize { Ark_Tag tag; Ark_ChildrenMainSize value; } Opt_ChildrenMainSize; -typedef struct Opt_DynamicNode { - Ark_Tag tag; - Ark_DynamicNode value; -} Opt_DynamicNode; typedef struct Ark_Union_ContentClipMode_RectShape { Ark_Int32 selector; union { @@ -20486,14 +20519,6 @@ typedef struct GENERATED_ArkUITextContentControllerBaseAccessor { Ark_Number (*getTextContentLineCount)(Ark_TextContentControllerBase peer); } GENERATED_ArkUITextContentControllerBaseAccessor; -typedef struct GENERATED_ArkUIDynamicNodeAccessor { - void (*destroyPeer)(Ark_DynamicNode peer); - Ark_DynamicNode (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - Ark_CustomObject (*onMove)(Ark_DynamicNode peer, - const Opt_OnMoveHandler* handler); -} GENERATED_ArkUIDynamicNodeAccessor; - typedef struct GENERATED_ArkUIChildrenMainSizeAccessor { void (*destroyPeer)(Ark_ChildrenMainSize peer); Ark_ChildrenMainSize (*ctor)(const Ark_Number* childDefaultSize); @@ -21948,908 +21973,6 @@ typedef struct GENERATED_ArkUIGlobalScopeAccessor { Ark_Boolean (*focusControl_requestFocus)(const Ark_String* value); } GENERATED_ArkUIGlobalScopeAccessor; -typedef struct GENERATED_ArkUIAbilityComponentEventsReceiver { - void (*onConnect)(Ark_Int32 nodeId); - void (*onDisconnect)(Ark_Int32 nodeId); -} GENERATED_ArkUIAbilityComponentEventsReceiver; - -typedef struct GENERATED_ArkUIAlphabetIndexerEventsReceiver { - void (*onSelected)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onSelect)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onRequestPopupData)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onPopupSelect)(Ark_Int32 nodeId, - const Ark_Number index); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUIAlphabetIndexerEventsReceiver; - -typedef struct GENERATED_ArkUIAnimatorEventsReceiver { - void (*onStart)(Ark_Int32 nodeId); - void (*onPause)(Ark_Int32 nodeId); - void (*onRepeat)(Ark_Int32 nodeId); - void (*onCancel)(Ark_Int32 nodeId); - void (*onFinish)(Ark_Int32 nodeId); - void (*onFrame)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUIAnimatorEventsReceiver; - -typedef struct GENERATED_ArkUICalendarEventsReceiver { - void (*onSelectChange)(Ark_Int32 nodeId, - const Ark_CalendarSelectedDate event); - void (*onRequestData)(Ark_Int32 nodeId, - const Ark_CalendarRequestedData event); -} GENERATED_ArkUICalendarEventsReceiver; - -typedef struct GENERATED_ArkUICalendarPickerEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Date parameter); -} GENERATED_ArkUICalendarPickerEventsReceiver; - -typedef struct GENERATED_ArkUICanvasEventsReceiver { - void (*onReady)(Ark_Int32 nodeId); -} GENERATED_ArkUICanvasEventsReceiver; - -typedef struct GENERATED_ArkUICheckboxEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Boolean value); - void (*_onChangeEvent_select)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUICheckboxEventsReceiver; - -typedef struct GENERATED_ArkUICheckboxGroupEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_CheckboxGroupResult value); - void (*_onChangeEvent_selectAll)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUICheckboxGroupEventsReceiver; - -typedef struct GENERATED_ArkUICommonMethodEventsReceiver { - void (*onChildTouchTest)(Ark_Int32 nodeId, - const Array_TouchTestInfo value); - void (*onClick0)(Ark_Int32 nodeId, - const Ark_ClickEvent event); - void (*onClick1)(Ark_Int32 nodeId, - const Ark_ClickEvent event); - void (*onHover)(Ark_Int32 nodeId, - const Ark_Boolean isHover, - const Ark_HoverEvent event); - void (*onAccessibilityHover)(Ark_Int32 nodeId, - const Ark_Boolean isHover, - const Ark_AccessibilityHoverEvent event); - void (*onMouse)(Ark_Int32 nodeId, - const Ark_MouseEvent event); - void (*onTouch)(Ark_Int32 nodeId, - const Ark_TouchEvent event); - void (*onKeyEvent)(Ark_Int32 nodeId, - const Ark_KeyEvent event); - void (*onKeyPreIme)(Ark_Int32 nodeId, - const Ark_KeyEvent parameter); - void (*onFocus)(Ark_Int32 nodeId); - void (*onBlur)(Ark_Int32 nodeId); - void (*onAppear)(Ark_Int32 nodeId); - void (*onDisAppear)(Ark_Int32 nodeId); - void (*onAttach)(Ark_Int32 nodeId); - void (*onDetach)(Ark_Int32 nodeId); - void (*onAreaChange)(Ark_Int32 nodeId, - const Ark_Area oldValue, - const Ark_Area newValue); - void (*onDragStart)(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams); - void (*onDragEnter)(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams); - void (*onDragMove)(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams); - void (*onDragLeave)(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams); - void (*onDrop)(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams); - void (*onDragEnd)(Ark_Int32 nodeId, - const Ark_DragEvent event, - const Opt_String extraParams); - void (*onPreDrag)(Ark_Int32 nodeId, - const Ark_PreDragStatus parameter); - void (*accessibilityVirtualNode)(Ark_Int32 nodeId); - void (*onGestureJudgeBegin)(Ark_Int32 nodeId, - const Ark_GestureInfo gestureInfo, - const Ark_BaseGestureEvent event); - void (*onGestureRecognizerJudgeBegin0)(Ark_Int32 nodeId, - const Ark_BaseGestureEvent event, - const Ark_GestureRecognizer current, - const Array_GestureRecognizer recognizers); - void (*onGestureRecognizerJudgeBegin1)(Ark_Int32 nodeId, - const Ark_BaseGestureEvent event, - const Ark_GestureRecognizer current, - const Array_GestureRecognizer recognizers); - void (*shouldBuiltInRecognizerParallelWith)(Ark_Int32 nodeId, - const Ark_GestureRecognizer current, - const Array_GestureRecognizer others); - void (*onTouchIntercept)(Ark_Int32 nodeId, - const Ark_TouchEvent parameter); - void (*onSizeChange)(Ark_Int32 nodeId, - const Ark_SizeOptions oldValue, - const Ark_SizeOptions newValue); - void (*background)(Ark_Int32 nodeId); - void (*bindContextMenu0)(Ark_Int32 nodeId); - void (*bindContextMenu1)(Ark_Int32 nodeId); - void (*bindContentCover0)(Ark_Int32 nodeId); - void (*bindContentCover1)(Ark_Int32 nodeId); - void (*bindSheet)(Ark_Int32 nodeId); - void (*onVisibleAreaChange)(Ark_Int32 nodeId, - const Ark_Boolean isExpanding, - const Ark_Number currentRatio); -} GENERATED_ArkUICommonMethodEventsReceiver; - -typedef struct GENERATED_ArkUIScrollableCommonMethodEventsReceiver { - void (*onScroll)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onDidScroll)(Ark_Int32 nodeId, - const Ark_Number xOffset, - const Ark_Number yOffset, - const Ark_ScrollState scrollState); - void (*onReachStart)(Ark_Int32 nodeId); - void (*onReachEnd)(Ark_Int32 nodeId); - void (*onScrollStart)(Ark_Int32 nodeId); - void (*onScrollStop)(Ark_Int32 nodeId); -} GENERATED_ArkUIScrollableCommonMethodEventsReceiver; - -typedef struct GENERATED_ArkUICounterEventsReceiver { - void (*onInc)(Ark_Int32 nodeId); - void (*onDec)(Ark_Int32 nodeId); -} GENERATED_ArkUICounterEventsReceiver; - -typedef struct GENERATED_ArkUIDatePickerEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_DatePickerResult value); - void (*onDateChange)(Ark_Int32 nodeId, - const Ark_Date parameter); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Date parameter); -} GENERATED_ArkUIDatePickerEventsReceiver; - -typedef struct GENERATED_ArkUIEmbeddedComponentEventsReceiver { - void (*onTerminated)(Ark_Int32 nodeId, - const Ark_TerminationInfo parameter); - void (*onError)(Ark_Int32 nodeId, - const Ark_BusinessError err); -} GENERATED_ArkUIEmbeddedComponentEventsReceiver; - -typedef struct GENERATED_ArkUIFolderStackEventsReceiver { - void (*onFolderStateChange)(Ark_Int32 nodeId, - const Ark_OnFoldStatusChangeInfo event); - void (*onHoverStatusChange)(Ark_Int32 nodeId, - const Ark_HoverEventParam param); -} GENERATED_ArkUIFolderStackEventsReceiver; - -typedef struct GENERATED_ArkUIFormComponentEventsReceiver { - void (*onAcquired)(Ark_Int32 nodeId, - const Ark_FormCallbackInfo parameter); - void (*onError)(Ark_Int32 nodeId, - const Ark_Literal_Number_errcode_String_msg info); - void (*onRouter)(Ark_Int32 nodeId, - const Ark_CustomObject info); - void (*onUninstall)(Ark_Int32 nodeId, - const Ark_FormCallbackInfo parameter); - void (*onLoad)(Ark_Int32 nodeId); -} GENERATED_ArkUIFormComponentEventsReceiver; - -typedef struct GENERATED_ArkUIGaugeEventsReceiver { - void (*description)(Ark_Int32 nodeId); -} GENERATED_ArkUIGaugeEventsReceiver; - -typedef struct GENERATED_ArkUIGridEventsReceiver { - void (*onScrollBarUpdate)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_Number offset); - void (*onScrollIndex)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onItemDragStart)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex); - void (*onItemDragEnter)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event); - void (*onItemDragMove)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex); - void (*onItemDragLeave)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex); - void (*onItemDrop)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex, - const Ark_Boolean isSuccess); - void (*onScroll)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onReachStart)(Ark_Int32 nodeId); - void (*onReachEnd)(Ark_Int32 nodeId); - void (*onScrollStart)(Ark_Int32 nodeId); - void (*onScrollStop)(Ark_Int32 nodeId); - void (*onScrollFrameBegin)(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state); -} GENERATED_ArkUIGridEventsReceiver; - -typedef struct GENERATED_ArkUIGridItemEventsReceiver { - void (*onSelect)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUIGridItemEventsReceiver; - -typedef struct GENERATED_ArkUIGridRowEventsReceiver { - void (*onBreakpointChange)(Ark_Int32 nodeId, - const Ark_String breakpoints); -} GENERATED_ArkUIGridRowEventsReceiver; - -typedef struct GENERATED_ArkUIImageEventsReceiver { - void (*onComplete)(Ark_Int32 nodeId, - const Opt_Type_ImageAttribute_onComplete_callback_event event); - void (*onError)(Ark_Int32 nodeId, - const Ark_ImageError error); - void (*onFinish)(Ark_Int32 nodeId); -} GENERATED_ArkUIImageEventsReceiver; - -typedef struct GENERATED_ArkUIImageAnimatorEventsReceiver { - void (*onStart)(Ark_Int32 nodeId); - void (*onPause)(Ark_Int32 nodeId); - void (*onRepeat)(Ark_Int32 nodeId); - void (*onCancel)(Ark_Int32 nodeId); - void (*onFinish)(Ark_Int32 nodeId); -} GENERATED_ArkUIImageAnimatorEventsReceiver; - -typedef struct GENERATED_ArkUIImageSpanEventsReceiver { - void (*onComplete)(Ark_Int32 nodeId, - const Ark_ImageLoadResult result); - void (*onError)(Ark_Int32 nodeId, - const Ark_ImageError error); -} GENERATED_ArkUIImageSpanEventsReceiver; - -typedef struct GENERATED_ArkUIListEventsReceiver { - void (*onScroll)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onScrollIndex)(Ark_Int32 nodeId, - const Ark_Number start, - const Ark_Number end, - const Ark_Number center); - void (*onScrollVisibleContentChange)(Ark_Int32 nodeId, - const Ark_VisibleListContentInfo start, - const Ark_VisibleListContentInfo end); - void (*onReachStart)(Ark_Int32 nodeId); - void (*onReachEnd)(Ark_Int32 nodeId); - void (*onScrollStart)(Ark_Int32 nodeId); - void (*onScrollStop)(Ark_Int32 nodeId); - void (*onItemDelete)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onItemMove)(Ark_Int32 nodeId, - const Ark_Number from, - const Ark_Number to); - void (*onItemDragStart)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex); - void (*onItemDragEnter)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event); - void (*onItemDragMove)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex); - void (*onItemDragLeave)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex); - void (*onItemDrop)(Ark_Int32 nodeId, - const Ark_ItemDragInfo event, - const Ark_Number itemIndex, - const Ark_Number insertIndex, - const Ark_Boolean isSuccess); - void (*onScrollFrameBegin)(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state); -} GENERATED_ArkUIListEventsReceiver; - -typedef struct GENERATED_ArkUIListItemEventsReceiver { - void (*onSelect)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUIListItemEventsReceiver; - -typedef struct GENERATED_ArkUILocationButtonEventsReceiver { - void (*onClick)(Ark_Int32 nodeId, - const Ark_ClickEvent event, - const Ark_LocationButtonOnClickResult result); -} GENERATED_ArkUILocationButtonEventsReceiver; - -typedef struct GENERATED_ArkUIMarqueeEventsReceiver { - void (*onStart)(Ark_Int32 nodeId); - void (*onBounce)(Ark_Int32 nodeId); - void (*onFinish)(Ark_Int32 nodeId); -} GENERATED_ArkUIMarqueeEventsReceiver; - -typedef struct GENERATED_ArkUIMenuItemEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUIMenuItemEventsReceiver; - -typedef struct GENERATED_ArkUINavDestinationEventsReceiver { - void (*onShown)(Ark_Int32 nodeId); - void (*onHidden)(Ark_Int32 nodeId); - void (*onBackPressed)(Ark_Int32 nodeId); - void (*onReady)(Ark_Int32 nodeId, - const Ark_NavDestinationContext parameter); - void (*onWillAppear)(Ark_Int32 nodeId); - void (*onWillDisappear)(Ark_Int32 nodeId); - void (*onWillShow)(Ark_Int32 nodeId); - void (*onWillHide)(Ark_Int32 nodeId); -} GENERATED_ArkUINavDestinationEventsReceiver; - -typedef struct GENERATED_ArkUINavRouterEventsReceiver { - void (*onStateChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUINavRouterEventsReceiver; - -typedef struct GENERATED_ArkUIPanelEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number width, - const Ark_Number height, - const Ark_PanelMode mode); - void (*onHeightChange)(Ark_Int32 nodeId, - const Ark_Number index); - void (*_onChangeEvent_mode)(Ark_Int32 nodeId, - const Ark_PanelMode mode); -} GENERATED_ArkUIPanelEventsReceiver; - -typedef struct GENERATED_ArkUIPasteButtonEventsReceiver { - void (*onClick)(Ark_Int32 nodeId, - const Ark_ClickEvent event, - const Ark_PasteButtonOnClickResult result); -} GENERATED_ArkUIPasteButtonEventsReceiver; - -typedef struct GENERATED_ArkUIPatternLockEventsReceiver { - void (*onPatternComplete)(Ark_Int32 nodeId, - const Array_Number input); - void (*onDotConnect)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUIPatternLockEventsReceiver; - -typedef struct GENERATED_ArkUIPluginComponentEventsReceiver { - void (*onComplete)(Ark_Int32 nodeId); - void (*onError)(Ark_Int32 nodeId, - const Ark_PluginErrorData info); -} GENERATED_ArkUIPluginComponentEventsReceiver; - -typedef struct GENERATED_ArkUIRadioEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*_onChangeEvent_checked)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUIRadioEventsReceiver; - -typedef struct GENERATED_ArkUIRatingEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number index); - void (*_onChangeEvent_rating)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUIRatingEventsReceiver; - -typedef struct GENERATED_ArkUIRefreshEventsReceiver { - void (*onStateChange)(Ark_Int32 nodeId, - const Ark_RefreshStatus state); - void (*onRefreshing)(Ark_Int32 nodeId); - void (*onOffsetChange)(Ark_Int32 nodeId, - const Ark_Number index); - void (*_onChangeEvent_refreshing)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUIRefreshEventsReceiver; - -typedef struct GENERATED_ArkUIRichEditorEventsReceiver { - void (*onReady)(Ark_Int32 nodeId); - void (*onSelect)(Ark_Int32 nodeId, - const Ark_RichEditorSelection parameter); - void (*onSelectionChange)(Ark_Int32 nodeId, - const Ark_RichEditorRange parameter); - void (*aboutToIMEInput)(Ark_Int32 nodeId, - const Ark_RichEditorInsertValue parameter); - void (*onIMEInputComplete)(Ark_Int32 nodeId, - const Ark_RichEditorTextSpanResult parameter); - void (*onDidIMEInput)(Ark_Int32 nodeId, - const Ark_TextRange parameter); - void (*aboutToDelete)(Ark_Int32 nodeId, - const Ark_RichEditorDeleteValue parameter); - void (*onDeleteComplete)(Ark_Int32 nodeId); - void (*onPaste)(Ark_Int32 nodeId, - const Opt_PasteEvent event); - void (*onEditingChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*onSubmit)(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKey, - const Ark_SubmitEvent event); - void (*onWillChange)(Ark_Int32 nodeId, - const Ark_RichEditorChangeValue parameter); - void (*onDidChange)(Ark_Int32 nodeId, - const Ark_TextRange rangeBefore, - const Ark_TextRange rangeAfter); - void (*onCut)(Ark_Int32 nodeId, - const Ark_CutEvent parameter); - void (*onCopy)(Ark_Int32 nodeId, - const Ark_CopyEvent parameter); - void (*bindSelectionMenu)(Ark_Int32 nodeId); - void (*customKeyboard)(Ark_Int32 nodeId); -} GENERATED_ArkUIRichEditorEventsReceiver; - -typedef struct GENERATED_ArkUIRichTextEventsReceiver { - void (*onStart)(Ark_Int32 nodeId); - void (*onComplete)(Ark_Int32 nodeId); -} GENERATED_ArkUIRichTextEventsReceiver; - -typedef struct GENERATED_ArkUISaveButtonEventsReceiver { - void (*onClick)(Ark_Int32 nodeId, - const Ark_ClickEvent event, - const Ark_SaveButtonOnClickResult result); -} GENERATED_ArkUISaveButtonEventsReceiver; - -typedef struct GENERATED_ArkUIScrollEventsReceiver { - void (*onScroll)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onDidScroll)(Ark_Int32 nodeId, - const Ark_Number xOffset, - const Ark_Number yOffset, - const Ark_ScrollState scrollState); - void (*onScrollEdge)(Ark_Int32 nodeId, - const Ark_Edge side); - void (*onScrollStart)(Ark_Int32 nodeId); - void (*onScrollEnd)(Ark_Int32 nodeId); - void (*onScrollStop)(Ark_Int32 nodeId); - void (*onScrollFrameBegin)(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state); -} GENERATED_ArkUIScrollEventsReceiver; - -typedef struct GENERATED_ArkUISearchEventsReceiver { - void (*onEditChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*onSubmit0)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onSubmit1)(Ark_Int32 nodeId, - const Ark_String searchContent, - const Opt_SubmitEvent event); - void (*onChange)(Ark_Int32 nodeId, - const Ark_String value, - const Opt_PreviewText previewText); - void (*onTextSelectionChange)(Ark_Int32 nodeId, - const Ark_Number selectionStart, - const Ark_Number selectionEnd); - void (*onContentScroll)(Ark_Int32 nodeId, - const Ark_Number totalOffsetX, - const Ark_Number totalOffsetY); - void (*onCopy)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onCut)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onPaste)(Ark_Int32 nodeId, - const Ark_String content, - const Ark_PasteEvent event); - void (*onWillInsert)(Ark_Int32 nodeId, - const Ark_InsertValue parameter); - void (*onDidInsert)(Ark_Int32 nodeId, - const Ark_InsertValue parameter); - void (*onWillDelete)(Ark_Int32 nodeId, - const Ark_DeleteValue parameter); - void (*onDidDelete)(Ark_Int32 nodeId, - const Ark_DeleteValue parameter); - void (*customKeyboard)(Ark_Int32 nodeId); - void (*_onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_String breakpoints); -} GENERATED_ArkUISearchEventsReceiver; - -typedef struct GENERATED_ArkUISelectEventsReceiver { - void (*onSelect)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_String value); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Union_Number_Resource selected); - void (*_onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_ResourceStr value); -} GENERATED_ArkUISelectEventsReceiver; - -typedef struct GENERATED_ArkUISliderEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number value, - const Ark_SliderChangeMode mode); - void (*_onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUISliderEventsReceiver; - -typedef struct GENERATED_ArkUIStepperEventsReceiver { - void (*onFinish)(Ark_Int32 nodeId); - void (*onSkip)(Ark_Int32 nodeId); - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onNext)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onPrevious)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*_onChangeEvent_index)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUIStepperEventsReceiver; - -typedef struct GENERATED_ArkUISwiperEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onAnimationStart)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_Number targetIndex, - const Ark_SwiperAnimationEvent extraInfo); - void (*onAnimationEnd)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_SwiperAnimationEvent extraInfo); - void (*onGestureSwipe)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_SwiperAnimationEvent extraInfo); - void (*onContentDidScroll)(Ark_Int32 nodeId, - const Ark_Number selectedIndex, - const Ark_Number index, - const Ark_Number position, - const Ark_Number mainAxisLength); - void (*_onChangeEvent_index)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUISwiperEventsReceiver; - -typedef struct GENERATED_ArkUIIndicatorComponentEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUIIndicatorComponentEventsReceiver; - -typedef struct GENERATED_ArkUITabsEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onTabBarClick)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onAnimationStart)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_Number targetIndex, - const Ark_TabsAnimationEvent extraInfo); - void (*onAnimationEnd)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_TabsAnimationEvent extraInfo); - void (*onGestureSwipe)(Ark_Int32 nodeId, - const Ark_Number index, - const Ark_TabsAnimationEvent extraInfo); - void (*customContentTransition)(Ark_Int32 nodeId, - const Ark_Number from, - const Ark_Number to); - void (*onContentWillChange)(Ark_Int32 nodeId, - const Ark_Number currentIndex, - const Ark_Number comingIndex); - void (*_onChangeEvent_index)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUITabsEventsReceiver; - -typedef struct GENERATED_ArkUITabContentEventsReceiver { - void (*onWillShow)(Ark_Int32 nodeId); - void (*onWillHide)(Ark_Int32 nodeId); -} GENERATED_ArkUITabContentEventsReceiver; - -typedef struct GENERATED_ArkUITextEventsReceiver { - void (*onCopy)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onTextSelectionChange)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*bindSelectionMenu)(Ark_Int32 nodeId); -} GENERATED_ArkUITextEventsReceiver; - -typedef struct GENERATED_ArkUITextAreaEventsReceiver { - void (*onSubmit0)(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKey); - void (*onSubmit1)(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKeyType, - const Opt_SubmitEvent event); - void (*onChange)(Ark_Int32 nodeId, - const Ark_String value, - const Opt_PreviewText previewText); - void (*onTextSelectionChange)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onContentScroll)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); - void (*onEditChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*onCopy)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onCut)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onPaste)(Ark_Int32 nodeId, - const Ark_String value, - const Ark_PasteEvent event); - void (*onWillInsert)(Ark_Int32 nodeId, - const Ark_InsertValue parameter); - void (*onDidInsert)(Ark_Int32 nodeId, - const Ark_InsertValue parameter); - void (*onWillDelete)(Ark_Int32 nodeId, - const Ark_DeleteValue parameter); - void (*onDidDelete)(Ark_Int32 nodeId, - const Ark_DeleteValue parameter); - void (*customKeyboard)(Ark_Int32 nodeId); - void (*_onChangeEvent_text)(Ark_Int32 nodeId, - const Ark_ResourceStr value); -} GENERATED_ArkUITextAreaEventsReceiver; - -typedef struct GENERATED_ArkUITextClockEventsReceiver { - void (*onDateChange)(Ark_Int32 nodeId, - const Ark_Number index); -} GENERATED_ArkUITextClockEventsReceiver; - -typedef struct GENERATED_ArkUITextInputEventsReceiver { - void (*onEditChanged)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*onEditChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*onSubmit)(Ark_Int32 nodeId, - const Ark_EnterKeyType enterKey, - const Ark_SubmitEvent event); - void (*onChange)(Ark_Int32 nodeId, - const Ark_String value, - const Opt_PreviewText previewText); - void (*onTextSelectionChange)(Ark_Int32 nodeId, - const Ark_Number selectionStart, - const Ark_Number selectionEnd); - void (*onContentScroll)(Ark_Int32 nodeId, - const Ark_Number totalOffsetX, - const Ark_Number totalOffsetY); - void (*onCopy)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onCut)(Ark_Int32 nodeId, - const Ark_String breakpoints); - void (*onPaste)(Ark_Int32 nodeId, - const Ark_String content, - const Ark_PasteEvent event); - void (*showUnit)(Ark_Int32 nodeId); - void (*onSecurityStateChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*onWillInsert)(Ark_Int32 nodeId, - const Ark_InsertValue parameter); - void (*onDidInsert)(Ark_Int32 nodeId, - const Ark_InsertValue parameter); - void (*onWillDelete)(Ark_Int32 nodeId, - const Ark_DeleteValue parameter); - void (*onDidDelete)(Ark_Int32 nodeId, - const Ark_DeleteValue parameter); - void (*customKeyboard)(Ark_Int32 nodeId); - void (*_onChangeEvent_text)(Ark_Int32 nodeId, - const Ark_ResourceStr value); -} GENERATED_ArkUITextInputEventsReceiver; - -typedef struct GENERATED_ArkUITextPickerEventsReceiver { - void (*onAccept)(Ark_Int32 nodeId, - const Ark_String value, - const Ark_Number index); - void (*onCancel)(Ark_Int32 nodeId); - void (*onChange)(Ark_Int32 nodeId, - const Ark_Union_String_Array_String value, - const Ark_Union_Number_Array_Number index); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Union_Number_Array_Number selected); - void (*_onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_Union_String_Array_String value); -} GENERATED_ArkUITextPickerEventsReceiver; - -typedef struct GENERATED_ArkUITextTimerEventsReceiver { - void (*onTimer)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); -} GENERATED_ArkUITextTimerEventsReceiver; - -typedef struct GENERATED_ArkUITimePickerEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_TimePickerResult value); - void (*_onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Date parameter); -} GENERATED_ArkUITimePickerEventsReceiver; - -typedef struct GENERATED_ArkUIToggleEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*_onChangeEvent_isOn)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUIToggleEventsReceiver; - -typedef struct GENERATED_ArkUIVideoEventsReceiver { - void (*onStart)(Ark_Int32 nodeId); - void (*onPause)(Ark_Int32 nodeId); - void (*onFinish)(Ark_Int32 nodeId); - void (*onFullscreenChange)(Ark_Int32 nodeId, - const Ark_FullscreenInfo parameter); - void (*onPrepared)(Ark_Int32 nodeId, - const Ark_PreparedInfo parameter); - void (*onSeeking)(Ark_Int32 nodeId, - const Ark_PlaybackInfo parameter); - void (*onSeeked)(Ark_Int32 nodeId, - const Ark_PlaybackInfo parameter); - void (*onUpdate)(Ark_Int32 nodeId, - const Ark_PlaybackInfo parameter); - void (*onError)(Ark_Int32 nodeId); - void (*onStop)(Ark_Int32 nodeId); -} GENERATED_ArkUIVideoEventsReceiver; - -typedef struct GENERATED_ArkUIWebEventsReceiver { - void (*onPageEnd)(Ark_Int32 nodeId, - const Ark_OnPageEndEvent parameter); - void (*onPageBegin)(Ark_Int32 nodeId, - const Ark_OnPageBeginEvent parameter); - void (*onProgressChange)(Ark_Int32 nodeId, - const Ark_OnProgressChangeEvent parameter); - void (*onTitleReceive)(Ark_Int32 nodeId, - const Ark_OnTitleReceiveEvent parameter); - void (*onGeolocationHide)(Ark_Int32 nodeId); - void (*onGeolocationShow)(Ark_Int32 nodeId, - const Ark_OnGeolocationShowEvent parameter); - void (*onRequestSelected)(Ark_Int32 nodeId); - void (*onAlert)(Ark_Int32 nodeId, - const Ark_OnAlertEvent parameter); - void (*onBeforeUnload)(Ark_Int32 nodeId, - const Ark_OnBeforeUnloadEvent parameter); - void (*onConfirm)(Ark_Int32 nodeId, - const Ark_OnConfirmEvent parameter); - void (*onPrompt)(Ark_Int32 nodeId, - const Ark_OnPromptEvent parameter); - void (*onConsole)(Ark_Int32 nodeId, - const Ark_OnConsoleEvent parameter); - void (*onErrorReceive)(Ark_Int32 nodeId, - const Ark_OnErrorReceiveEvent parameter); - void (*onHttpErrorReceive)(Ark_Int32 nodeId, - const Ark_OnHttpErrorReceiveEvent parameter); - void (*onDownloadStart)(Ark_Int32 nodeId, - const Ark_OnDownloadStartEvent parameter); - void (*onRefreshAccessedHistory)(Ark_Int32 nodeId, - const Ark_OnRefreshAccessedHistoryEvent parameter); - void (*onUrlLoadIntercept)(Ark_Int32 nodeId, - const Opt_Literal_Union_String_WebResourceRequest_data event); - void (*onSslErrorReceive)(Ark_Int32 nodeId, - const Opt_Literal_Function_handler_Object_error event); - void (*onRenderExited0)(Ark_Int32 nodeId, - const Ark_OnRenderExitedEvent parameter); - void (*onRenderExited1)(Ark_Int32 nodeId, - const Opt_Literal_Object_detail event); - void (*onShowFileSelector)(Ark_Int32 nodeId, - const Ark_OnShowFileSelectorEvent parameter); - void (*onFileSelectorShow)(Ark_Int32 nodeId, - const Opt_Literal_Function_callback__Object_fileSelector event); - void (*onResourceLoad)(Ark_Int32 nodeId, - const Ark_OnResourceLoadEvent parameter); - void (*onFullScreenExit)(Ark_Int32 nodeId); - void (*onFullScreenEnter)(Ark_Int32 nodeId, - const Ark_FullScreenEnterEvent event); - void (*onScaleChange)(Ark_Int32 nodeId, - const Ark_OnScaleChangeEvent parameter); - void (*onHttpAuthRequest)(Ark_Int32 nodeId, - const Ark_OnHttpAuthRequestEvent parameter); - void (*onInterceptRequest)(Ark_Int32 nodeId, - const Ark_OnInterceptRequestEvent parameter); - void (*onPermissionRequest)(Ark_Int32 nodeId, - const Ark_OnPermissionRequestEvent parameter); - void (*onScreenCaptureRequest)(Ark_Int32 nodeId, - const Ark_OnScreenCaptureRequestEvent parameter); - void (*onContextMenuShow)(Ark_Int32 nodeId, - const Ark_OnContextMenuShowEvent parameter); - void (*onContextMenuHide)(Ark_Int32 nodeId); - void (*onSearchResultReceive)(Ark_Int32 nodeId, - const Ark_OnSearchResultReceiveEvent parameter); - void (*onScroll)(Ark_Int32 nodeId, - const Ark_OnScrollEvent parameter); - void (*onSslErrorEventReceive)(Ark_Int32 nodeId, - const Ark_OnSslErrorEventReceiveEvent parameter); - void (*onSslErrorEvent)(Ark_Int32 nodeId, - const Ark_SslErrorEvent sslErrorEvent); - void (*onClientAuthenticationRequest)(Ark_Int32 nodeId, - const Ark_OnClientAuthenticationEvent parameter); - void (*onWindowNew)(Ark_Int32 nodeId, - const Ark_OnWindowNewEvent parameter); - void (*onWindowExit)(Ark_Int32 nodeId); - void (*onInterceptKeyEvent)(Ark_Int32 nodeId, - const Ark_KeyEvent parameter); - void (*onTouchIconUrlReceived)(Ark_Int32 nodeId, - const Ark_OnTouchIconUrlReceivedEvent parameter); - void (*onFaviconReceived)(Ark_Int32 nodeId, - const Ark_OnFaviconReceivedEvent parameter); - void (*onPageVisible)(Ark_Int32 nodeId, - const Ark_OnPageVisibleEvent parameter); - void (*onDataResubmitted)(Ark_Int32 nodeId, - const Ark_OnDataResubmittedEvent parameter); - void (*onAudioStateChanged)(Ark_Int32 nodeId, - const Ark_OnAudioStateChangedEvent parameter); - void (*onFirstContentfulPaint)(Ark_Int32 nodeId, - const Ark_OnFirstContentfulPaintEvent parameter); - void (*onFirstMeaningfulPaint)(Ark_Int32 nodeId, - const Ark_FirstMeaningfulPaint firstMeaningfulPaint); - void (*onLargestContentfulPaint)(Ark_Int32 nodeId, - const Ark_LargestContentfulPaint largestContentfulPaint); - void (*onLoadIntercept)(Ark_Int32 nodeId, - const Ark_OnLoadInterceptEvent parameter); - void (*onControllerAttached)(Ark_Int32 nodeId); - void (*onOverScroll)(Ark_Int32 nodeId, - const Ark_OnOverScrollEvent parameter); - void (*onSafeBrowsingCheckResult)(Ark_Int32 nodeId, - const Ark_ThreatType threatType); - void (*onNavigationEntryCommitted)(Ark_Int32 nodeId, - const Ark_LoadCommittedDetails loadCommittedDetails); - void (*onIntelligentTrackingPreventionResult)(Ark_Int32 nodeId, - const Ark_IntelligentTrackingPreventionDetails details); - void (*onNativeEmbedLifecycleChange)(Ark_Int32 nodeId, - const Ark_NativeEmbedDataInfo event); - void (*onNativeEmbedVisibilityChange)(Ark_Int32 nodeId, - const Ark_NativeEmbedVisibilityInfo nativeEmbedVisibilityInfo); - void (*onNativeEmbedGestureEvent)(Ark_Int32 nodeId, - const Ark_NativeEmbedTouchInfo event); - void (*onOverrideUrlLoading)(Ark_Int32 nodeId, - const Ark_WebResourceRequest webResourceRequest); - void (*onRenderProcessNotResponding)(Ark_Int32 nodeId, - const Ark_RenderProcessNotRespondingData data); - void (*onRenderProcessResponding)(Ark_Int32 nodeId); - void (*onViewportFitChanged)(Ark_Int32 nodeId, - const Ark_ViewportFit viewportFit); - void (*onInterceptKeyboardAttach)(Ark_Int32 nodeId, - const Ark_WebKeyboardCallbackInfo keyboardCallbackInfo); - void (*onAdsBlocked)(Ark_Int32 nodeId, - const Ark_AdsBlockedDetails details); - void (*bindSelectionMenu)(Ark_Int32 nodeId); -} GENERATED_ArkUIWebEventsReceiver; - -typedef struct GENERATED_ArkUIXComponentEventsReceiver { - void (*onLoad)(Ark_Int32 nodeId, - const Opt_CustomObject event); - void (*onDestroy)(Ark_Int32 nodeId); -} GENERATED_ArkUIXComponentEventsReceiver; - -typedef struct GENERATED_ArkUISideBarContainerEventsReceiver { - void (*onChange)(Ark_Int32 nodeId, - const Ark_Boolean parameter); - void (*_onChangeEvent_showSideBar)(Ark_Int32 nodeId, - const Ark_Boolean parameter); -} GENERATED_ArkUISideBarContainerEventsReceiver; - -typedef struct GENERATED_ArkUIWaterFlowEventsReceiver { - void (*onReachStart)(Ark_Int32 nodeId); - void (*onReachEnd)(Ark_Int32 nodeId); - void (*onScrollFrameBegin)(Ark_Int32 nodeId, - const Ark_Number offset, - const Ark_ScrollState state); - void (*onScrollIndex)(Ark_Int32 nodeId, - const Ark_Number first, - const Ark_Number last); -} GENERATED_ArkUIWaterFlowEventsReceiver; - -typedef struct GENERATED_ArkUIUIExtensionComponentEventsReceiver { - void (*onRemoteReady)(Ark_Int32 nodeId, - const Ark_UIExtensionProxy parameter); - void (*onResult)(Ark_Int32 nodeId, - const Ark_Literal_Number_code_Want_want parameter); - void (*onRelease)(Ark_Int32 nodeId, - const Ark_Number index); - void (*onError)(Ark_Int32 nodeId, - const Ark_BusinessError err); - void (*onTerminated)(Ark_Int32 nodeId, - const Ark_TerminationInfo parameter); -} GENERATED_ArkUIUIExtensionComponentEventsReceiver; - /** * An API to control an implementation. When making changes modifying binary @@ -23034,7 +22157,6 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIMeasurableAccessor* (*getMeasurableAccessor)(); const GENERATED_ArkUIViewAccessor* (*getViewAccessor)(); const GENERATED_ArkUITextContentControllerBaseAccessor* (*getTextContentControllerBaseAccessor)(); - const GENERATED_ArkUIDynamicNodeAccessor* (*getDynamicNodeAccessor)(); const GENERATED_ArkUIChildrenMainSizeAccessor* (*getChildrenMainSizeAccessor)(); const GENERATED_ArkUIUICommonEventAccessor* (*getUICommonEventAccessor)(); const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); @@ -23140,71 +22262,6 @@ typedef struct GENERATED_ArkUIGraphicsAPI { Ark_Int32 version; } GENERATED_ArkUIGraphicsAPI; -typedef struct GENERATED_ArkUIEventsAPI { - const GENERATED_ArkUIAbilityComponentEventsReceiver* (*getAbilityComponentEventsReceiver)(); - const GENERATED_ArkUIAlphabetIndexerEventsReceiver* (*getAlphabetIndexerEventsReceiver)(); - const GENERATED_ArkUIAnimatorEventsReceiver* (*getAnimatorEventsReceiver)(); - const GENERATED_ArkUICalendarEventsReceiver* (*getCalendarEventsReceiver)(); - const GENERATED_ArkUICalendarPickerEventsReceiver* (*getCalendarPickerEventsReceiver)(); - const GENERATED_ArkUICanvasEventsReceiver* (*getCanvasEventsReceiver)(); - const GENERATED_ArkUICheckboxEventsReceiver* (*getCheckboxEventsReceiver)(); - const GENERATED_ArkUICheckboxGroupEventsReceiver* (*getCheckboxGroupEventsReceiver)(); - const GENERATED_ArkUICommonMethodEventsReceiver* (*getCommonMethodEventsReceiver)(); - const GENERATED_ArkUIScrollableCommonMethodEventsReceiver* (*getScrollableCommonMethodEventsReceiver)(); - const GENERATED_ArkUICounterEventsReceiver* (*getCounterEventsReceiver)(); - const GENERATED_ArkUIDatePickerEventsReceiver* (*getDatePickerEventsReceiver)(); - const GENERATED_ArkUIEmbeddedComponentEventsReceiver* (*getEmbeddedComponentEventsReceiver)(); - const GENERATED_ArkUIFolderStackEventsReceiver* (*getFolderStackEventsReceiver)(); - const GENERATED_ArkUIFormComponentEventsReceiver* (*getFormComponentEventsReceiver)(); - const GENERATED_ArkUIGaugeEventsReceiver* (*getGaugeEventsReceiver)(); - const GENERATED_ArkUIGridEventsReceiver* (*getGridEventsReceiver)(); - const GENERATED_ArkUIGridItemEventsReceiver* (*getGridItemEventsReceiver)(); - const GENERATED_ArkUIGridRowEventsReceiver* (*getGridRowEventsReceiver)(); - const GENERATED_ArkUIImageEventsReceiver* (*getImageEventsReceiver)(); - const GENERATED_ArkUIImageAnimatorEventsReceiver* (*getImageAnimatorEventsReceiver)(); - const GENERATED_ArkUIImageSpanEventsReceiver* (*getImageSpanEventsReceiver)(); - const GENERATED_ArkUIListEventsReceiver* (*getListEventsReceiver)(); - const GENERATED_ArkUIListItemEventsReceiver* (*getListItemEventsReceiver)(); - const GENERATED_ArkUILocationButtonEventsReceiver* (*getLocationButtonEventsReceiver)(); - const GENERATED_ArkUIMarqueeEventsReceiver* (*getMarqueeEventsReceiver)(); - const GENERATED_ArkUIMenuItemEventsReceiver* (*getMenuItemEventsReceiver)(); - const GENERATED_ArkUINavDestinationEventsReceiver* (*getNavDestinationEventsReceiver)(); - const GENERATED_ArkUINavRouterEventsReceiver* (*getNavRouterEventsReceiver)(); - const GENERATED_ArkUIPanelEventsReceiver* (*getPanelEventsReceiver)(); - const GENERATED_ArkUIPasteButtonEventsReceiver* (*getPasteButtonEventsReceiver)(); - const GENERATED_ArkUIPatternLockEventsReceiver* (*getPatternLockEventsReceiver)(); - const GENERATED_ArkUIPluginComponentEventsReceiver* (*getPluginComponentEventsReceiver)(); - const GENERATED_ArkUIRadioEventsReceiver* (*getRadioEventsReceiver)(); - const GENERATED_ArkUIRatingEventsReceiver* (*getRatingEventsReceiver)(); - const GENERATED_ArkUIRefreshEventsReceiver* (*getRefreshEventsReceiver)(); - const GENERATED_ArkUIRichEditorEventsReceiver* (*getRichEditorEventsReceiver)(); - const GENERATED_ArkUIRichTextEventsReceiver* (*getRichTextEventsReceiver)(); - const GENERATED_ArkUISaveButtonEventsReceiver* (*getSaveButtonEventsReceiver)(); - const GENERATED_ArkUIScrollEventsReceiver* (*getScrollEventsReceiver)(); - const GENERATED_ArkUISearchEventsReceiver* (*getSearchEventsReceiver)(); - const GENERATED_ArkUISelectEventsReceiver* (*getSelectEventsReceiver)(); - const GENERATED_ArkUISliderEventsReceiver* (*getSliderEventsReceiver)(); - const GENERATED_ArkUIStepperEventsReceiver* (*getStepperEventsReceiver)(); - const GENERATED_ArkUISwiperEventsReceiver* (*getSwiperEventsReceiver)(); - const GENERATED_ArkUIIndicatorComponentEventsReceiver* (*getIndicatorComponentEventsReceiver)(); - const GENERATED_ArkUITabsEventsReceiver* (*getTabsEventsReceiver)(); - const GENERATED_ArkUITabContentEventsReceiver* (*getTabContentEventsReceiver)(); - const GENERATED_ArkUITextEventsReceiver* (*getTextEventsReceiver)(); - const GENERATED_ArkUITextAreaEventsReceiver* (*getTextAreaEventsReceiver)(); - const GENERATED_ArkUITextClockEventsReceiver* (*getTextClockEventsReceiver)(); - const GENERATED_ArkUITextInputEventsReceiver* (*getTextInputEventsReceiver)(); - const GENERATED_ArkUITextPickerEventsReceiver* (*getTextPickerEventsReceiver)(); - const GENERATED_ArkUITextTimerEventsReceiver* (*getTextTimerEventsReceiver)(); - const GENERATED_ArkUITimePickerEventsReceiver* (*getTimePickerEventsReceiver)(); - const GENERATED_ArkUIToggleEventsReceiver* (*getToggleEventsReceiver)(); - const GENERATED_ArkUIVideoEventsReceiver* (*getVideoEventsReceiver)(); - const GENERATED_ArkUIWebEventsReceiver* (*getWebEventsReceiver)(); - const GENERATED_ArkUIXComponentEventsReceiver* (*getXComponentEventsReceiver)(); - const GENERATED_ArkUISideBarContainerEventsReceiver* (*getSideBarContainerEventsReceiver)(); - const GENERATED_ArkUIWaterFlowEventsReceiver* (*getWaterFlowEventsReceiver)(); - const GENERATED_ArkUIUIExtensionComponentEventsReceiver* (*getUIExtensionComponentEventsReceiver)(); -} GENERATED_ArkUIEventsAPI; - typedef enum GENERATED_Ark_NodeType { GENERATED_ARKUI_CUSTOM_NODE, GENERATED_ARKUI_ABILITY_COMPONENT, @@ -23485,9 +22542,6 @@ typedef struct GENERATED_ArkUIFullNodeAPI { const GENERATED_ArkUINodeModifiers* (*getNodeModifiers)(); const GENERATED_ArkUIAccessors* (*getAccessors)(); const GENERATED_ArkUIGraphicsAPI* (*getGraphicsAPI)(); - const GENERATED_ArkUIEventsAPI* (*getEventsAPI)(); - // TODO: move to service? - void (*setArkUIEventsAPI)(const GENERATED_ArkUIEventsAPI* api); } GENERATED_ArkUIFullNodeAPI; typedef struct GENERATED_ArkUIAnyAPI { diff --git a/arkoala/framework/native/src/generated/bridge_custom.cc b/arkoala/framework/native/src/generated/bridge_custom.cc index a4db546e786063fee1d51300b345e00b835ca383..b2249635f16d86a9759d57fb1d83206952356845 100644 --- a/arkoala/framework/native/src/generated/bridge_custom.cc +++ b/arkoala/framework/native/src/generated/bridge_custom.cc @@ -500,13 +500,59 @@ KVMObjectHandle impl_LoadUserView(KVMContext vm, const KStringPtr& viewClass, co } return (KVMObjectHandle)result; #elif KOALA_ANI - fprintf(stderr, "LoadUserView() is not implemented yet\n"); - return nullptr; + ani_env* env = reinterpret_cast(vm); + std::string className(viewClass.c_str()); + // TODO: hack, fix it! + if (className == "UserApp") { + className = "L@koalaui.arkts-arkui.Application.UserView;"; + } if (className == "EtsHarness") { + className = "L@koalaui.ets-harness.build.unmemoized.src.Page.EtsHarness;"; + } else { + className = "L@koalaui.user.build.unmemoized.src.Page." + className + ";"; + } + std::replace(className.begin(), className.end(), '.', '/'); + ani_class viewClassClass = nullptr; + env->FindClass(className.c_str(), &viewClassClass); + if (!viewClassClass) { + LOGE("Cannot find user class %s\n", viewClass.c_str()); + ani_boolean hasError = false; + env->ExistUnhandledError(&hasError); + if (hasError) { + env->DescribeError(); + env->ResetError(); + } + return nullptr; + } + ani_method viewClassCtor = nullptr; + env->Class_GetMethod(viewClassClass, "", "Lstd/core/String;:V", &viewClassCtor); + if (!viewClassCtor) { + LOGE("Cannot find user class ctor"); + ani_boolean hasError = false; + env->ExistUnhandledError(&hasError); + if (hasError) { + env->DescribeError(); + env->ResetError(); + } + return nullptr; + } + ani_object result = nullptr; + ani_string params = nullptr; + env->String_NewUTF8(viewParams.c_str(), viewParams.length(), ¶ms); + env->Object_New(viewClassClass, viewClassCtor, &result, params); + if (!result) { + LOGE("Cannot instantiate user class"); + ani_boolean hasError = false; + env->ExistUnhandledError(&hasError); + if (hasError) { + env->DescribeError(); + env->ResetError(); + } + return nullptr; + } + return (KVMObjectHandle)result; #else fprintf(stderr, "LoadUserView() is not implemented yet\n"); return nullptr; #endif } KOALA_INTEROP_CTX_2(LoadUserView, KVMObjectHandle, KStringPtr, KStringPtr) - -#define KOALA_INTEROP_MODULE ArkUIGeneratedNativeModule diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index 1b86ee0e2005f5c2d88549ba43685502ea85a22f..431cf9c300abf89d610fc37beb24dae52c3d02a4 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -20,7 +20,6 @@ #include "arkoala_api_generated.h" #include "Serializers.h" #include "callbacks.h" -#include "events.h" const GENERATED_ArkUIAnyAPI* GetAnyImpl(int kind, int version, std::string* result = nullptr); @@ -38,10 +37,6 @@ static const GENERATED_ArkUIAccessors* GetAccessors() { return GetFullImpl()->getAccessors(); } -namespace Generated { - extern const GENERATED_ArkUIEventsAPI* GetArkUiEventsAPI(); -} - Ark_NativePointer impl_Root_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getRootModifier()->construct(id, flags); } @@ -17065,13 +17060,18 @@ Ark_Boolean impl_UnifiedData_hasType(Ark_NativePointer thisPtr, const KStringPtr return GetAccessors()->getUnifiedDataAccessor()->hasType(self, (const Ark_String*) (&UnifiedData_type)); } KOALA_INTEROP_2(UnifiedData_hasType, Ark_Boolean, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_UnifiedData_getTypes(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_UnifiedData_getTypes(Ark_NativePointer thisPtr) { Ark_UnifiedData self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getUnifiedDataAccessor()->getTypes(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getUnifiedDataAccessor()->getTypes(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_String retValue_element = retValue.array[i]; + _retSerializer.writeString(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(UnifiedData_getTypes, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(UnifiedData_getTypes, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_LazyForEachOps_ctor() { return GetAccessors()->getLazyForEachOpsAccessor()->ctor(); } @@ -17855,12 +17855,17 @@ void impl_GlobalScope_ohos_font_registerFont(uint8_t* thisArray, int32_t thisLen GetAccessors()->getGlobalScope_ohos_fontAccessor()->registerFont((const Ark_FontOptions*)&options_value); } KOALA_INTEROP_V2(GlobalScope_ohos_font_registerFont, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_ohos_font_getSystemFontList() { - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getGlobalScope_ohos_fontAccessor()->getSystemFontList(); - // TODO: Value serialization needs to be implemented - return {}; +KInteropReturnBuffer impl_GlobalScope_ohos_font_getSystemFontList() { + const auto &retValue = GetAccessors()->getGlobalScope_ohos_fontAccessor()->getSystemFontList(); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_String retValue_element = retValue.array[i]; + _retSerializer.writeString(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_0(GlobalScope_ohos_font_getSystemFontList, Ark_NativePointer) +KOALA_INTEROP_0(GlobalScope_ohos_font_getSystemFontList, KInteropReturnBuffer) Ark_NativePointer impl_ScaleSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const auto scope_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -18738,13 +18743,18 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, Ark_NativePoin GetAccessors()->getCanvasRendererAccessor()->putImageData1(self, static_cast(imagedata), (const Ark_Union_Number_String*)&dx_value, (const Ark_Union_Number_String*)&dy_value, (const Ark_Union_Number_String*)&dirtyX_value, (const Ark_Union_Number_String*)&dirtyY_value, (const Ark_Union_Number_String*)&dirtyWidth_value, (const Ark_Union_Number_String*)&dirtyHeight_value); } KOALA_INTEROP_V4(CanvasRenderer_putImageData1, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_CanvasRenderer_getLineDash(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_CanvasRenderer_getLineDash(Ark_NativePointer thisPtr) { Ark_CanvasRenderer self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getCanvasRendererAccessor()->getLineDash(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getCanvasRendererAccessor()->getLineDash(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_Number retValue_element = retValue.array[i]; + _retSerializer.writeNumber(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(CanvasRenderer_getLineDash, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(CanvasRenderer_getLineDash, KInteropReturnBuffer, Ark_NativePointer) void impl_CanvasRenderer_setLineDash(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -19946,13 +19956,18 @@ Ark_NativePointer impl_TouchEvent_getFinalizer() { return GetAccessors()->getTouchEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(TouchEvent_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_TouchEvent_getHistoricalPoints(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_TouchEvent_getHistoricalPoints(Ark_NativePointer thisPtr) { Ark_TouchEvent self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getTouchEventAccessor()->getHistoricalPoints(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getTouchEventAccessor()->getHistoricalPoints(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_HistoricalPoint retValue_element = retValue.array[i]; + _retSerializer.writeHistoricalPoint(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(TouchEvent_getHistoricalPoints, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(TouchEvent_getHistoricalPoints, KInteropReturnBuffer, Ark_NativePointer) void impl_TouchEvent_getType(Ark_NativePointer thisPtr) { Ark_TouchEvent self = reinterpret_cast(thisPtr); GetAccessors()->getTouchEventAccessor()->getType(self); @@ -19963,13 +19978,18 @@ void impl_TouchEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { GetAccessors()->getTouchEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(TouchEvent_setType, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_TouchEvent_getTouches(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_TouchEvent_getTouches(Ark_NativePointer thisPtr) { Ark_TouchEvent self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getTouchEventAccessor()->getTouches(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getTouchEventAccessor()->getTouches(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_TouchObject retValue_element = retValue.array[i]; + _retSerializer.writeTouchObject(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(TouchEvent_getTouches, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(TouchEvent_getTouches, KInteropReturnBuffer, Ark_NativePointer) void impl_TouchEvent_setTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -19984,13 +20004,18 @@ void impl_TouchEvent_setTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, i GetAccessors()->getTouchEventAccessor()->setTouches(self, (const Array_TouchObject*)&touches_value); } KOALA_INTEROP_V3(TouchEvent_setTouches, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_TouchEvent_getChangedTouches(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_TouchEvent_getChangedTouches(Ark_NativePointer thisPtr) { Ark_TouchEvent self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getTouchEventAccessor()->getChangedTouches(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getTouchEventAccessor()->getChangedTouches(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_TouchObject retValue_element = retValue.array[i]; + _retSerializer.writeTouchObject(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(TouchEvent_getChangedTouches, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(TouchEvent_getChangedTouches, KInteropReturnBuffer, Ark_NativePointer) void impl_TouchEvent_setChangedTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -20449,28 +20474,6 @@ Ark_Number impl_TextContentControllerBase_getTextContentLineCount(Ark_NativePoin return GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentLineCount(self); } KOALA_INTEROP_1(TextContentControllerBase_getTextContentLineCount, KInteropNumber, Ark_NativePointer) -Ark_NativePointer impl_DynamicNode_ctor() { - return GetAccessors()->getDynamicNodeAccessor()->ctor(); -} -KOALA_INTEROP_0(DynamicNode_ctor, Ark_NativePointer) -Ark_NativePointer impl_DynamicNode_getFinalizer() { - return GetAccessors()->getDynamicNodeAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(DynamicNode_getFinalizer, Ark_NativePointer) -void impl_DynamicNode_onMove(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_DynamicNode self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const auto handler_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_OnMoveHandler handler_value_buf = {}; - handler_value_buf.tag = handler_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (handler_value_buf_runtimeType)) - { - handler_value_buf.value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_OnMoveHandler)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_OnMoveHandler))))}; - } - Opt_OnMoveHandler handler_value = handler_value_buf;; - GetAccessors()->getDynamicNodeAccessor()->onMove(self, (const Opt_OnMoveHandler*)&handler_value); -} -KOALA_INTEROP_V3(DynamicNode_onMove, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_ChildrenMainSize_ctor(KInteropNumber childDefaultSize) { return GetAccessors()->getChildrenMainSizeAccessor()->ctor((const Ark_Number*) (&childDefaultSize)); } @@ -20779,13 +20782,18 @@ Ark_NativePointer impl_BaseGestureEvent_getFinalizer() { return GetAccessors()->getBaseGestureEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(BaseGestureEvent_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_BaseGestureEvent_getFingerList(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_BaseGestureEvent_getFingerList(Ark_NativePointer thisPtr) { Ark_BaseGestureEvent self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getBaseGestureEventAccessor()->getFingerList(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getBaseGestureEventAccessor()->getFingerList(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_FingerInfo retValue_element = retValue.array[i]; + _retSerializer.writeFingerInfo(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(BaseGestureEvent_getFingerList, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(BaseGestureEvent_getFingerList, KInteropReturnBuffer, Ark_NativePointer) void impl_BaseGestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_BaseGestureEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -20986,13 +20994,18 @@ void impl_GestureEvent_setRepeat(Ark_NativePointer thisPtr, Ark_Boolean repeat) GetAccessors()->getGestureEventAccessor()->setRepeat(self, repeat); } KOALA_INTEROP_V2(GestureEvent_setRepeat, Ark_NativePointer, Ark_Boolean) -Ark_NativePointer impl_GestureEvent_getFingerList(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_GestureEvent_getFingerList(Ark_NativePointer thisPtr) { Ark_GestureEvent self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getGestureEventAccessor()->getFingerList(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getGestureEventAccessor()->getFingerList(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_FingerInfo retValue_element = retValue.array[i]; + _retSerializer.writeFingerInfo(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(GestureEvent_getFingerList, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(GestureEvent_getFingerList, KInteropReturnBuffer, Ark_NativePointer) void impl_GestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_GestureEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -21269,13 +21282,18 @@ Ark_NativePointer impl_ImageAnalyzerController_getFinalizer() { return GetAccessors()->getImageAnalyzerControllerAccessor()->getFinalizer(); } KOALA_INTEROP_0(ImageAnalyzerController_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ImageAnalyzerController_getImageAnalyzerSupportTypes(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_ImageAnalyzerController_getImageAnalyzerSupportTypes(Ark_NativePointer thisPtr) { Ark_ImageAnalyzerController self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getImageAnalyzerControllerAccessor()->getImageAnalyzerSupportTypes(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getImageAnalyzerControllerAccessor()->getImageAnalyzerSupportTypes(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_ImageAnalyzerType retValue_element = retValue.array[i]; + _retSerializer.writeInt32(static_cast(retValue_element)); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(ImageAnalyzerController_getImageAnalyzerSupportTypes, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(ImageAnalyzerController_getImageAnalyzerSupportTypes, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_ListScroller_ctor() { return GetAccessors()->getListScrollerAccessor()->ctor(); } @@ -21994,13 +22012,18 @@ void impl_NavPathStack_clear(Ark_NativePointer thisPtr, uint8_t* thisArray, int3 GetAccessors()->getNavPathStackAccessor()->clear(self, (const Opt_Boolean*)&animated_value); } KOALA_INTEROP_V3(NavPathStack_clear, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_NavPathStack_getAllPathName(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_NavPathStack_getAllPathName(Ark_NativePointer thisPtr) { Ark_NavPathStack self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getNavPathStackAccessor()->getAllPathName(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getNavPathStackAccessor()->getAllPathName(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_String retValue_element = retValue.array[i]; + _retSerializer.writeString(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(NavPathStack_getAllPathName, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(NavPathStack_getAllPathName, KInteropReturnBuffer, Ark_NativePointer) KInteropReturnBuffer impl_NavPathStack_getParamByIndex(Ark_NativePointer thisPtr, KInteropNumber index) { Ark_NavPathStack self = reinterpret_cast(thisPtr); const auto &retValue = GetAccessors()->getNavPathStackAccessor()->getParamByIndex(self, (const Ark_Number*) (&index)); @@ -22015,20 +22038,30 @@ KInteropReturnBuffer impl_NavPathStack_getParamByIndex(Ark_NativePointer thisPtr return _retSerializer.toReturnBuffer(); } KOALA_INTEROP_2(NavPathStack_getParamByIndex, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_NavPathStack_getParamByName(Ark_NativePointer thisPtr, const KStringPtr& name) { +KInteropReturnBuffer impl_NavPathStack_getParamByName(Ark_NativePointer thisPtr, const KStringPtr& name) { Ark_NavPathStack self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getNavPathStackAccessor()->getParamByName(self, (const Ark_String*) (&name)); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getNavPathStackAccessor()->getParamByName(self, (const Ark_String*) (&name)); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_CustomObject retValue_element = retValue.array[i]; + _retSerializer.writeCustomObject("Any", retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(NavPathStack_getParamByName, Ark_NativePointer, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_NavPathStack_getIndexByName(Ark_NativePointer thisPtr, const KStringPtr& name) { +KOALA_INTEROP_2(NavPathStack_getParamByName, KInteropReturnBuffer, Ark_NativePointer, KStringPtr) +KInteropReturnBuffer impl_NavPathStack_getIndexByName(Ark_NativePointer thisPtr, const KStringPtr& name) { Ark_NavPathStack self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getNavPathStackAccessor()->getIndexByName(self, (const Ark_String*) (&name)); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getNavPathStackAccessor()->getIndexByName(self, (const Ark_String*) (&name)); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_Number retValue_element = retValue.array[i]; + _retSerializer.writeNumber(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(NavPathStack_getIndexByName, Ark_NativePointer, Ark_NativePointer, KStringPtr) +KOALA_INTEROP_2(NavPathStack_getIndexByName, KInteropReturnBuffer, Ark_NativePointer, KStringPtr) KInteropReturnBuffer impl_NavPathStack_getParent(Ark_NativePointer thisPtr) { Ark_NavPathStack self = reinterpret_cast(thisPtr); const auto &retValue = GetAccessors()->getNavPathStackAccessor()->getParent(self); @@ -22341,7 +22374,7 @@ void impl_RichEditorController_deleteSpans(Ark_NativePointer thisPtr, uint8_t* t GetAccessors()->getRichEditorControllerAccessor()->deleteSpans(self, (const Opt_RichEditorRange*)&value_value); } KOALA_INTEROP_V3(RichEditorController_deleteSpans, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +KInteropReturnBuffer impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -22352,12 +22385,28 @@ Ark_NativePointer impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, value_value_buf.value = thisDeserializer.readRichEditorRange(); } Opt_RichEditorRange value_value = value_value_buf;; - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getRichEditorControllerAccessor()->getSpans(self, (const Opt_RichEditorRange*)&value_value); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getRichEditorControllerAccessor()->getSpans(self, (const Opt_RichEditorRange*)&value_value); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult retValue_element = retValue.array[i]; + Ark_Int32 retValue_element_type = INTEROP_RUNTIME_UNDEFINED; + retValue_element_type = retValue_element.selector; + if (retValue_element_type == 0) { + _retSerializer.writeInt8(0); + const auto retValue_element_0 = retValue_element.value0; + _retSerializer.writeRichEditorImageSpanResult(retValue_element_0); + } + else if (retValue_element_type == 1) { + _retSerializer.writeInt8(1); + const auto retValue_element_1 = retValue_element.value1; + _retSerializer.writeRichEditorTextSpanResult(retValue_element_1); + } + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(RichEditorController_getSpans, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_3(RichEditorController_getSpans, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) +KInteropReturnBuffer impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -22368,11 +22417,16 @@ Ark_NativePointer impl_RichEditorController_getParagraphs(Ark_NativePointer this value_value_buf.value = thisDeserializer.readRichEditorRange(); } Opt_RichEditorRange value_value = value_value_buf;; - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getRichEditorControllerAccessor()->getParagraphs(self, (const Opt_RichEditorRange*)&value_value); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getRichEditorControllerAccessor()->getParagraphs(self, (const Opt_RichEditorRange*)&value_value); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_RichEditorParagraphResult retValue_element = retValue.array[i]; + _retSerializer.writeRichEditorParagraphResult(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(RichEditorController_getParagraphs, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(RichEditorController_getParagraphs, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) KInteropReturnBuffer impl_RichEditorController_getSelection(Ark_NativePointer thisPtr) { Ark_RichEditorController self = reinterpret_cast(thisPtr); const auto &retValue = GetAccessors()->getRichEditorControllerAccessor()->getSelection(self); @@ -22381,13 +22435,29 @@ KInteropReturnBuffer impl_RichEditorController_getSelection(Ark_NativePointer th return _retSerializer.toReturnBuffer(); } KOALA_INTEROP_1(RichEditorController_getSelection, KInteropReturnBuffer, Ark_NativePointer) -Ark_NativePointer impl_RichEditorController_fromStyledString(KVMContext vmContext, Ark_NativePointer thisPtr, Ark_NativePointer value) { +KInteropReturnBuffer impl_RichEditorController_fromStyledString(KVMContext vmContext, Ark_NativePointer thisPtr, Ark_NativePointer value) { Ark_RichEditorController self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(reinterpret_cast(vmContext), self, static_cast(value)); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(reinterpret_cast(vmContext), self, static_cast(value)); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_RichEditorSpan retValue_element = retValue.array[i]; + Ark_Int32 retValue_element_type = INTEROP_RUNTIME_UNDEFINED; + retValue_element_type = retValue_element.selector; + if (retValue_element_type == 0) { + _retSerializer.writeInt8(0); + const auto retValue_element_0 = retValue_element.value0; + _retSerializer.writeRichEditorImageSpanResult(retValue_element_0); + } + else if (retValue_element_type == 1) { + _retSerializer.writeInt8(1); + const auto retValue_element_1 = retValue_element.value1; + _retSerializer.writeRichEditorTextSpanResult(retValue_element_1); + } + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_CTX_2(RichEditorController_fromStyledString, Ark_NativePointer, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_CTX_2(RichEditorController_fromStyledString, KInteropReturnBuffer, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_RichEditorController_toStyledString(KVMContext vmContext, Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -23104,15 +23174,20 @@ KInteropReturnBuffer impl_LayoutManager_getLineMetrics(Ark_NativePointer thisPtr return _retSerializer.toReturnBuffer(); } KOALA_INTEROP_2(LayoutManager_getLineMetrics, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_LayoutManager_getRectsForRange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, Ark_Int32 widthStyle, Ark_Int32 heightStyle) { +KInteropReturnBuffer impl_LayoutManager_getRectsForRange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, Ark_Int32 widthStyle, Ark_Int32 heightStyle) { Ark_LayoutManager self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextRange range_value = thisDeserializer.readTextRange();; - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getLayoutManagerAccessor()->getRectsForRange(self, (const Ark_TextRange*)&range_value, static_cast(widthStyle), static_cast(heightStyle)); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getLayoutManagerAccessor()->getRectsForRange(self, (const Ark_TextRange*)&range_value, static_cast(widthStyle), static_cast(heightStyle)); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_TextBox retValue_element = retValue.array[i]; + _retSerializer.writeTextBox(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_5(LayoutManager_getRectsForRange, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t, Ark_Int32, Ark_Int32) +KOALA_INTEROP_5(LayoutManager_getRectsForRange, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t, Ark_Int32, Ark_Int32) Ark_NativePointer impl_TextMenuItemId_ctor() { return GetAccessors()->getTextMenuItemIdAccessor()->ctor(); } @@ -23182,7 +23257,7 @@ Ark_NativePointer impl_EditMenuOptions_getFinalizer() { return GetAccessors()->getEditMenuOptionsAccessor()->getFinalizer(); } KOALA_INTEROP_0(EditMenuOptions_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +KInteropReturnBuffer impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_EditMenuOptions self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 menuItems_value_buf_length = thisDeserializer.readInt32(); @@ -23193,11 +23268,16 @@ Ark_NativePointer impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, u menuItems_value_buf.array[menuItems_value_buf_i] = thisDeserializer.readTextMenuItem(); } Array_TextMenuItem menuItems_value = menuItems_value_buf;; - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getEditMenuOptionsAccessor()->onCreateMenu(self, (const Array_TextMenuItem*)&menuItems_value); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getEditMenuOptionsAccessor()->onCreateMenu(self, (const Array_TextMenuItem*)&menuItems_value); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_TextMenuItem retValue_element = retValue.array[i]; + _retSerializer.writeTextMenuItem(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(EditMenuOptions_onCreateMenu, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(EditMenuOptions_onCreateMenu, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_EditMenuOptions_onMenuItemClick(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_EditMenuOptions self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -23455,13 +23535,18 @@ void impl_FileSelectorParam_getMode(Ark_NativePointer thisPtr) { GetAccessors()->getFileSelectorParamAccessor()->getMode(self); } KOALA_INTEROP_V1(FileSelectorParam_getMode, Ark_NativePointer) -Ark_NativePointer impl_FileSelectorParam_getAcceptType(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_FileSelectorParam_getAcceptType(Ark_NativePointer thisPtr) { Ark_FileSelectorParam self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getFileSelectorParamAccessor()->getAcceptType(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getFileSelectorParamAccessor()->getAcceptType(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_String retValue_element = retValue.array[i]; + _retSerializer.writeString(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(FileSelectorParam_getAcceptType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(FileSelectorParam_getAcceptType, KInteropReturnBuffer, Ark_NativePointer) Ark_Boolean impl_FileSelectorParam_isCapture(Ark_NativePointer thisPtr) { Ark_FileSelectorParam self = reinterpret_cast(thisPtr); return GetAccessors()->getFileSelectorParamAccessor()->isCapture(self); @@ -23599,13 +23684,18 @@ Ark_String impl_PermissionRequest_getOrigin(Ark_NativePointer thisPtr) { return GetAccessors()->getPermissionRequestAccessor()->getOrigin(self); } KOALA_INTEROP_1(PermissionRequest_getOrigin, KStringPtr, Ark_NativePointer) -Ark_NativePointer impl_PermissionRequest_getAccessibleResource(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_PermissionRequest_getAccessibleResource(Ark_NativePointer thisPtr) { Ark_PermissionRequest self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getPermissionRequestAccessor()->getAccessibleResource(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getPermissionRequestAccessor()->getAccessibleResource(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_String retValue_element = retValue.array[i]; + _retSerializer.writeString(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(PermissionRequest_getAccessibleResource, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(PermissionRequest_getAccessibleResource, KInteropReturnBuffer, Ark_NativePointer) void impl_PermissionRequest_grant(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_PermissionRequest self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); @@ -23828,13 +23918,18 @@ Ark_NativePointer impl_WebResourceRequest_getFinalizer() { return GetAccessors()->getWebResourceRequestAccessor()->getFinalizer(); } KOALA_INTEROP_0(WebResourceRequest_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_WebResourceRequest_getRequestHeader(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_WebResourceRequest_getRequestHeader(Ark_NativePointer thisPtr) { Ark_WebResourceRequest self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getWebResourceRequestAccessor()->getRequestHeader(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getWebResourceRequestAccessor()->getRequestHeader(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_Header retValue_element = retValue.array[i]; + _retSerializer.writeHeader(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(WebResourceRequest_getRequestHeader, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(WebResourceRequest_getRequestHeader, KInteropReturnBuffer, Ark_NativePointer) Ark_String impl_WebResourceRequest_getRequestUrl(Ark_NativePointer thisPtr) { Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->getRequestUrl(self); @@ -23923,13 +24018,18 @@ Ark_String impl_WebResourceResponse_getReasonMessage(Ark_NativePointer thisPtr) return GetAccessors()->getWebResourceResponseAccessor()->getReasonMessage(self); } KOALA_INTEROP_1(WebResourceResponse_getReasonMessage, KStringPtr, Ark_NativePointer) -Ark_NativePointer impl_WebResourceResponse_getResponseHeader(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_WebResourceResponse_getResponseHeader(Ark_NativePointer thisPtr) { Ark_WebResourceResponse self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getWebResourceResponseAccessor()->getResponseHeader(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getWebResourceResponseAccessor()->getResponseHeader(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_Header retValue_element = retValue.array[i]; + _retSerializer.writeHeader(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(WebResourceResponse_getResponseHeader, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(WebResourceResponse_getResponseHeader, KInteropReturnBuffer, Ark_NativePointer) Ark_Number impl_WebResourceResponse_getResponseCode(Ark_NativePointer thisPtr) { Ark_WebResourceResponse self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceResponseAccessor()->getResponseCode(self); @@ -24392,13 +24492,18 @@ Ark_Boolean impl_WaterFlowSections_update(Ark_NativePointer thisPtr, KInteropNum return GetAccessors()->getWaterFlowSectionsAccessor()->update(self, (const Ark_Number*) (§ionIndex), (const Ark_SectionOptions*)§ion_value); } KOALA_INTEROP_4(WaterFlowSections_update, Ark_Boolean, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) -Ark_NativePointer impl_WaterFlowSections_values(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_WaterFlowSections_values(Ark_NativePointer thisPtr) { Ark_WaterFlowSections self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getWaterFlowSectionsAccessor()->values(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getWaterFlowSectionsAccessor()->values(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_SectionOptions retValue_element = retValue.array[i]; + _retSerializer.writeSectionOptions(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(WaterFlowSections_values, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(WaterFlowSections_values, KInteropReturnBuffer, Ark_NativePointer) Ark_Number impl_WaterFlowSections_length(Ark_NativePointer thisPtr) { Ark_WaterFlowSections self = reinterpret_cast(thisPtr); return GetAccessors()->getWaterFlowSectionsAccessor()->length(self); @@ -24543,7 +24648,7 @@ Ark_String impl_StyledString_getString(Ark_NativePointer thisPtr) { return GetAccessors()->getStyledStringAccessor()->getString(self); } KOALA_INTEROP_1(StyledString_getString, KStringPtr, Ark_NativePointer) -Ark_NativePointer impl_StyledString_getStyles(KVMContext vmContext, Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { +KInteropReturnBuffer impl_StyledString_getStyles(KVMContext vmContext, Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto styledKey_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -24554,11 +24659,16 @@ Ark_NativePointer impl_StyledString_getStyles(KVMContext vmContext, Ark_NativePo styledKey_value_buf.value = static_cast(thisDeserializer.readInt32()); } Opt_StyledStringKey styledKey_value = styledKey_value_buf;; - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getStyledStringAccessor()->getStyles(reinterpret_cast(vmContext), self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Opt_StyledStringKey*)&styledKey_value); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getStyledStringAccessor()->getStyles(reinterpret_cast(vmContext), self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Opt_StyledStringKey*)&styledKey_value); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_SpanStyle retValue_element = retValue.array[i]; + _retSerializer.writeSpanStyle(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_CTX_5(StyledString_getStyles, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +KOALA_INTEROP_CTX_5(StyledString_getStyles, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_StyledString_equals(Ark_NativePointer thisPtr, Ark_NativePointer other) { Ark_StyledString self = reinterpret_cast(thisPtr); return GetAccessors()->getStyledStringAccessor()->equals(self, static_cast(other)); @@ -24588,10 +24698,13 @@ Ark_String impl_StyledString_toHtml(KVMContext vmContext, Ark_NativePointer styl return GetAccessors()->getStyledStringAccessor()->toHtml(reinterpret_cast(vmContext), static_cast(styledString)); } KOALA_INTEROP_CTX_1(StyledString_toHtml, KStringPtr, Ark_NativePointer) -void impl_StyledString_marshalling(Ark_NativePointer styledString) { - GetAccessors()->getStyledStringAccessor()->marshalling(static_cast(styledString)); +KInteropReturnBuffer impl_StyledString_marshalling(Ark_NativePointer styledString) { + const auto &retValue = GetAccessors()->getStyledStringAccessor()->marshalling(static_cast(styledString)); + Serializer _retSerializer {}; + _retSerializer.writeBuffer(retValue); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_V1(StyledString_marshalling, Ark_NativePointer) +KOALA_INTEROP_1(StyledString_marshalling, KInteropReturnBuffer, Ark_NativePointer) void impl_StyledString_unmarshalling(KVMContext vmContext, uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_Buffer buffer_value = static_cast(thisDeserializer.readBuffer());; @@ -24718,13 +24831,18 @@ Ark_NativePointer impl_TextShadowStyle_getFinalizer() { return GetAccessors()->getTextShadowStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(TextShadowStyle_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_TextShadowStyle_getTextShadow(Ark_NativePointer thisPtr) { +KInteropReturnBuffer impl_TextShadowStyle_getTextShadow(Ark_NativePointer thisPtr) { Ark_TextShadowStyle self = reinterpret_cast(thisPtr); - [[maybe_unused]] const auto &_api_call_result = GetAccessors()->getTextShadowStyleAccessor()->getTextShadow(self); - // TODO: Value serialization needs to be implemented - return {}; + const auto &retValue = GetAccessors()->getTextShadowStyleAccessor()->getTextShadow(self); + Serializer _retSerializer {}; + _retSerializer.writeInt32(retValue.length); + for (int i = 0; i < retValue.length; i++) { + const Ark_ShadowOptions retValue_element = retValue.array[i]; + _retSerializer.writeShadowOptions(retValue_element); + } + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(TextShadowStyle_getTextShadow, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(TextShadowStyle_getTextShadow, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_BackgroundColorStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_TextBackgroundStyle textBackgroundStyle_value = thisDeserializer.readTextBackgroundStyle();; diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index 426367e79f5ee4ce75b2f0a5682bc6a1822012b8..0d9f656cc688d326a1e68c1c762e7b4da14ed4d8 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -131,6 +131,23 @@ constexpr TreeNode *AsNode(From ptr) { return reinterpret_cast(ptr); } +void EmitOnClick(Ark_NativePointer node, Ark_ClickEvent event) { + LOGE("EmitOnclick %p", node); + auto frameNode = AsNode(node); + frameNode->callClickEvent(event); +} +void RegisterOnClick(Ark_NativePointer node, const Callback_ClickEvent_Void* event) { + auto frameNode = AsNode(node); + auto callback = *event; + callback.resource.hold(callback.resource.resourceId); + auto onEvent = [frameNode, callback](Ark_ClickEvent event) { + if (callback.call) { + callback.call(callback.resource.resourceId, event); + } + }; + frameNode->setClickEvent(std::move(onEvent)); +} + void DumpTree(TreeNode *node, Ark_Int32 indent) { ARKOALA_LOG("%s[%s: %d]\n", string(indent * 2, ' ').c_str(), node->namePtr(), node->id()); for (auto child: *node->children()) { @@ -697,11 +714,6 @@ Ark_Float32 ConvertLengthMetricsUnit(Ark_Float32 value, Ark_Int32 originUnit, Ar return result; } -void EmitOnClick(Ark_NativePointer node, Ark_ClickEvent event) { - auto frameNode = AsNode(node); - frameNode->callClickEvent(event); -} - void SetCustomMethodFlag(Ark_NodeHandle node, Ark_Int32 flag) {} Ark_Int32 GetCustomMethodFlag(Ark_NodeHandle node) { return 0; @@ -819,13 +831,6 @@ void SetCurrentIndex(Ark_NativePointer nodePtr, data->updater.call(data->updater.resource.resourceId, index, mark, 1000); } } - - -namespace GeneratedEvents { - const GENERATED_ArkUIEventsAPI* g_OverriddenEventsImpl = nullptr; - const GENERATED_ArkUIEventsAPI* GENERATED_GetArkUiEventsAPI() { return g_OverriddenEventsImpl; } - void GENERATED_SetArkUiEventsAPI(const GENERATED_ArkUIEventsAPI* api) { g_OverriddenEventsImpl = api; } -} } // handWritten implementations @@ -26203,48 +26208,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { return {42}; } } // TextContentControllerBaseAccessor - namespace DynamicNodeAccessor { - void DestroyPeerImpl(Ark_DynamicNode peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_DynamicNode CtorImpl() - { - if (!needGroupedLog(1)) - return (Ark_DynamicNode) 100; - string out("new DynamicNode("); - out.append(") \n"); - out.append("[return (Ark_DynamicNode) 100] \n"); - appendGroupedLog(1, out); - return (Ark_DynamicNode) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - Ark_CustomObject OnMoveImpl(Ark_DynamicNode peer, - const Opt_OnMoveHandler* handler) - { - if (!needGroupedLog(1)) - return {}; - string out("onMove("); - WriteToString(&out, handler); - out.append(") \n"); - out.append("[return {}] \n"); - appendGroupedLog(1, out); - return {}; - } - } // DynamicNodeAccessor namespace ChildrenMainSizeAccessor { void DestroyPeerImpl(Ark_ChildrenMainSize peer) { @@ -35540,20 +35503,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TextContentControllerBasePeer { virtual ~TextContentControllerBasePeer() = default; }; - const GENERATED_ArkUIDynamicNodeAccessor* GetDynamicNodeAccessor() - { - static const GENERATED_ArkUIDynamicNodeAccessor DynamicNodeAccessorImpl { - DynamicNodeAccessor::DestroyPeerImpl, - DynamicNodeAccessor::CtorImpl, - DynamicNodeAccessor::GetFinalizerImpl, - DynamicNodeAccessor::OnMoveImpl, - }; - return &DynamicNodeAccessorImpl; - } - - struct DynamicNodePeer { - virtual ~DynamicNodePeer() = default; - }; const GENERATED_ArkUIChildrenMainSizeAccessor* GetChildrenMainSizeAccessor() { static const GENERATED_ArkUIChildrenMainSizeAccessor ChildrenMainSizeAccessorImpl { @@ -37384,7 +37333,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetMeasurableAccessor, GetViewAccessor, GetTextContentControllerBaseAccessor, - GetDynamicNodeAccessor, GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, @@ -37555,9 +37503,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GENERATED_ARKUI_FULL_API_VERSION, // version GENERATED_GetArkUINodeModifiers, GENERATED_GetArkUIAccessors, - nullptr, - OHOS::Ace::NG::GeneratedEvents::GENERATED_GetArkUiEventsAPI, - OHOS::Ace::NG::GeneratedEvents::GENERATED_SetArkUiEventsAPI }; return &fullAPIImpl; } diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index c9c0dc11f803bc24986fd19b06b63282248d1317..2d9da5d33138925d892e2b38999081cd25020031 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -131,6 +131,23 @@ constexpr TreeNode *AsNode(From ptr) { return reinterpret_cast(ptr); } +void EmitOnClick(Ark_NativePointer node, Ark_ClickEvent event) { + LOGE("EmitOnclick %p", node); + auto frameNode = AsNode(node); + frameNode->callClickEvent(event); +} +void RegisterOnClick(Ark_NativePointer node, const Callback_ClickEvent_Void* event) { + auto frameNode = AsNode(node); + auto callback = *event; + callback.resource.hold(callback.resource.resourceId); + auto onEvent = [frameNode, callback](Ark_ClickEvent event) { + if (callback.call) { + callback.call(callback.resource.resourceId, event); + } + }; + frameNode->setClickEvent(std::move(onEvent)); +} + void DumpTree(TreeNode *node, Ark_Int32 indent) { ARKOALA_LOG("%s[%s: %d]\n", string(indent * 2, ' ').c_str(), node->namePtr(), node->id()); for (auto child: *node->children()) { @@ -697,11 +714,6 @@ Ark_Float32 ConvertLengthMetricsUnit(Ark_Float32 value, Ark_Int32 originUnit, Ar return result; } -void EmitOnClick(Ark_NativePointer node, Ark_ClickEvent event) { - auto frameNode = AsNode(node); - frameNode->callClickEvent(event); -} - void SetCustomMethodFlag(Ark_NodeHandle node, Ark_Int32 flag) {} Ark_Int32 GetCustomMethodFlag(Ark_NodeHandle node) { return 0; @@ -819,13 +831,6 @@ void SetCurrentIndex(Ark_NativePointer nodePtr, data->updater.call(data->updater.resource.resourceId, index, mark, 1000); } } - - -namespace GeneratedEvents { - const GENERATED_ArkUIEventsAPI* g_OverriddenEventsImpl = nullptr; - const GENERATED_ArkUIEventsAPI* GENERATED_GetArkUiEventsAPI() { return g_OverriddenEventsImpl; } - void GENERATED_SetArkUiEventsAPI(const GENERATED_ArkUIEventsAPI* api) { g_OverriddenEventsImpl = api; } -} } // handWritten implementations @@ -13109,28 +13114,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { return {}; } } // TextContentControllerBaseAccessor - namespace DynamicNodeAccessor { - void DestroyPeerImpl(Ark_DynamicNode peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_DynamicNode CtorImpl() - { - return new DynamicNodePeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - Ark_CustomObject OnMoveImpl(Ark_DynamicNode peer, - const Opt_OnMoveHandler* handler) - { - return {}; - } - } // DynamicNodeAccessor namespace ChildrenMainSizeAccessor { void DestroyPeerImpl(Ark_ChildrenMainSize peer) { @@ -18006,20 +17989,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TextContentControllerBasePeer { virtual ~TextContentControllerBasePeer() = default; }; - const GENERATED_ArkUIDynamicNodeAccessor* GetDynamicNodeAccessor() - { - static const GENERATED_ArkUIDynamicNodeAccessor DynamicNodeAccessorImpl { - DynamicNodeAccessor::DestroyPeerImpl, - DynamicNodeAccessor::CtorImpl, - DynamicNodeAccessor::GetFinalizerImpl, - DynamicNodeAccessor::OnMoveImpl, - }; - return &DynamicNodeAccessorImpl; - } - - struct DynamicNodePeer { - virtual ~DynamicNodePeer() = default; - }; const GENERATED_ArkUIChildrenMainSizeAccessor* GetChildrenMainSizeAccessor() { static const GENERATED_ArkUIChildrenMainSizeAccessor ChildrenMainSizeAccessorImpl { @@ -19850,7 +19819,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetMeasurableAccessor, GetViewAccessor, GetTextContentControllerBaseAccessor, - GetDynamicNodeAccessor, GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, @@ -20021,9 +19989,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GENERATED_ARKUI_FULL_API_VERSION, // version GENERATED_GetArkUINodeModifiers, GENERATED_GetArkUIAccessors, - nullptr, - OHOS::Ace::NG::GeneratedEvents::GENERATED_GetArkUiEventsAPI, - OHOS::Ace::NG::GeneratedEvents::GENERATED_SetArkUiEventsAPI }; return &fullAPIImpl; } diff --git a/arkoala/framework/src/generated/TestNativeModule.ts b/arkoala/framework/src/generated/TestNativeModule.ts index 20f740953f97e592aeeaf5d177de90a243b9c2ab..2a56ada0251e75ba4da8a870a4f9230ced71869f 100644 --- a/arkoala/framework/src/generated/TestNativeModule.ts +++ b/arkoala/framework/src/generated/TestNativeModule.ts @@ -62,34 +62,6 @@ export class TestNativeModule { } throw new Error("Not implemented") } - static _Test_SetEventsApi(): void { - if ((this._LoadOnce()) == (true)) - { - return this._Test_SetEventsApi() - } - throw new Error("Not implemented") - } - static _Test_Common_OnChildTouchTest(arr: Uint8Array, arg: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._Test_Common_OnChildTouchTest(arr, arg) - } - throw new Error("Not implemented") - } - static _Test_List_OnScrollVisibleContentChange(arr: Uint8Array, arg: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._Test_List_OnScrollVisibleContentChange(arr, arg) - } - throw new Error("Not implemented") - } - static _Test_TextPicker_OnAccept(arr: Uint8Array, arg: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._Test_TextPicker_OnAccept(arr, arg) - } - throw new Error("Not implemented") - } static _TestWithBuffer(buffer: ArrayBuffer): void { if ((this._LoadOnce()) == (true)) { diff --git a/arkoala/framework/src/generated/TestNativeModuleEmpty.ts b/arkoala/framework/src/generated/TestNativeModuleEmpty.ts index 486ec94a5a9801fda02abc17b962c7def782d897..47bda41a6e8491ffa78e9ff3377209c799776828 100644 --- a/arkoala/framework/src/generated/TestNativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/TestNativeModuleEmpty.ts @@ -36,18 +36,6 @@ export class TestNativeModuleEmpty { console.log("_TestCallIntMemory") return 0 } - _Test_SetEventsApi(): void { - console.log("_Test_SetEventsApi") - } - _Test_Common_OnChildTouchTest(arr: Uint8Array, arg: int32): void { - console.log("_Test_Common_OnChildTouchTest") - } - _Test_List_OnScrollVisibleContentChange(arr: Uint8Array, arg: int32): void { - console.log("_Test_List_OnScrollVisibleContentChange") - } - _Test_TextPicker_OnAccept(arr: Uint8Array, arg: int32): void { - console.log("_Test_TextPicker_OnAccept") - } _TestWithBuffer(buffer: ArrayBuffer): void { console.log("_TestWithBuffer") } diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index f55b30d0b0d324d383454ca56f190e168ce0b8e8..1713853dfe37f78456e727c2940e9d139d6c9ec3 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -2,9 +2,9 @@ "name": "peer-generator", "description": "", "config": { - "idlizer_version": "2.0.37", + "idlizer_version": "2.0.40", "idlizer_current": "../../../../arkgen", - "api_version": "121", + "api_version": "122", "input_dir": "../../arkui-common/interface_sdk-js/api/@internal/component/ets/,../../arkui-common/interface_sdk-js/api/global" }, "scripts": {